public static BannerData Create(JsonDAO jdao, ListItemModel listItemModel) { BannerData d = new BannerData(listItemModel); d.banner = String.Format("{0}/{1}", GlobalDefine.GetBaseBannerUrl(), jdao.GetStr("banner")); d.priority = jdao.GetInt("priority"); d.link = jdao.GetStr("link"); #if BUILD_TYPE_DEBUG Debug.Log("CALL BatchData#Create banner:" + d.banner + " priority:" + d.priority); #endif return(d); }
public void openBossInfo() { SoundUtil.PlaySE(SEID.SE_MENU_OK); if (m_RecvData == null || m_RecvData.guerrilla == null ) { return; } PacketStructGuerrilla _info = m_RecvData.guerrilla; Dialog _newDialog = Dialog.Create(DialogType.DialogScrollInfo); _newDialog.SetDialogText(DialogTextType.Title, GameTextUtil.GetText("gerira_dialog_title")); if (_info.image != null) { for (int i = 0; i < _info.image.Length; i++) { if (!ChkTiming(_info.image[i].timing_start, _info.image[i].timing_end)) { continue; } _newDialog.AddScrollInfoImage(String.Format("{0}/{1}", GlobalDefine.GetBaseBannerUrl(), _info.image[i].url)); break; } } if (_info.text != null) { for (int i = 0; i < _info.text.Length; i++) { if (!ChkTiming(_info.text[i].timing_start, _info.text[i].timing_end)) { continue; } _newDialog.AddScrollInfoText(_info.text[i].message); } } _newDialog.Show(); }
private void openUnitInfo() { SoundUtil.PlaySE(SEID.SE_MENU_OK); if (m_RecvData == null || m_RecvData.new_unit == null ) { return; } PacketStructNewUnit _info = m_RecvData.new_unit; Dialog _newDialog = Dialog.Create(DialogType.DialogScrollInfo); _newDialog.SetDialogText(DialogTextType.Title, GameTextUtil.GetText("newunit_dialog_title")); if (_info.image != null) { for (int i = 0; i < _info.image.Length; i++) { if (!ChkTiming(_info.image[i].timing_start, _info.image[i].timing_end)) { continue; } _newDialog.AddScrollInfoImage(String.Format("{0}/{1}", GlobalDefine.GetBaseBannerUrl(), _info.image[i].url)); break; } } if (_info.icon != null) { for (int i = 0; i < _info.icon.Length; i++) { if (!ChkTiming(_info.icon[i].timing_start, _info.icon[i].timing_end)) { continue; } _newDialog.AddScrollInfoIconList(_info.icon[i].title, _info.icon[i].ids); } } _newDialog.Show(); }