void OnScrollInfo(DialogMenuItem _item) { Dialog newDialog = Dialog.Create(DialogType.DialogScrollInfo); newDialog.SetDialogText(DialogTextType.Title, "スクロール情報"); newDialog.AddScrollInfoImage("http://sample/sample.png"); newDialog.AddScrollInfoText("サンプルテキスト\n\rさんぷるだよ"); newDialog.AddScrollInfoIconList("たいとるだよ", new uint[] { 2, 3, 4, 5, 6, 7, 8, 9 }); 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(); }