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 openInfomationDialog() { Dialog newDialog = Dialog.Create(DialogType.DialogScrollInfo); newDialog.SetDialogText(DialogTextType.Title, GameTextUtil.GetText("mm31q_title")); string _message = MasterDataUtil.GetInformationMessage(MasterDataDefineLabel.InfomationType.NORMAL, false); newDialog.AddScrollInfoText(_message); newDialog.SetDialogTextFromTextkey(DialogTextType.OKText, "common_button1"); newDialog.DisableCancelButton(); newDialog.Show(); newDialog.SetDialogEvent(DialogButtonEventType.OK, () => { ResetButtons(); }); }
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(); }
// レコードの受領ボタンのフィードバック public void OnClickedRecordButton(PresentRecordListItemContex contex) { if (ServerApi.IsExists == true) { return; } if (GlobalMenuManager.Instance.IsPageClosing() == true) { return; } if (GlobalMenuManager.Instance.IsCangeTime()) { return; } long[] ids = { contex.FixId }; if (contex.NoticeEnable == false) { presentOpen(ids, false); } else { Dialog newDialog = Dialog.Create(DialogType.DialogScrollInfo); newDialog.SetDialogText(DialogTextType.Title, contex.CaptionText01); newDialog.SetDialogText(DialogTextType.OKText, GameTextUtil.GetText("BTN_RECON")); newDialog.AddScrollInfoText(contex.NoticeText); newDialog.SetDialogEvent(DialogButtonEventType.OK, new Action(() => { if (contex.Category == 0) { presentOpen(ids, false, true); } })); newDialog.Show(); } SoundUtil.PlaySE(SEID.SE_MENU_OK); }
void OnPatchUpdate() { Patcher.Instance.Load( () => { #if BUILD_TYPE_DEBUG string format_text = Patcher.Instance.checkFormat(); if (format_text.Length > 0) { Dialog dialog = Dialog.Create(DialogType.DialogScrollInfo); dialog.SetDialogText(DialogTextType.Title, "Patcher"); dialog.AddScrollInfoText(format_text); dialog.SetDialogText(DialogTextType.OKText, GameTextUtil.GetText("common_button7")); dialog.EnableFadePanel(); dialog.DisableAutoHide(); dialog.SetOkEvent(() => { SceneSplashFSM.Instance.SendFsmEvent_FailRetry(); }); dialog.Show(); return; } #endif LocalSaveManagerRN.Instance.PatcherCounter = Patcher.Instance.GetUpdateCounter(); LocalSaveManagerRN.Instance.Save(); if (LocalSaveManager.Instance.LoadFuncInformationVer() != "") { m_firstAgreement = false; } if (LocalSaveManager.Instance.LoadFuncInformationPolicyVer() != "") { m_firstPolicy = false; } SceneSplashFSM.Instance.SendFsmEvent_Success(); }, (error) => { Debug.LogError("ERROR:" + error); SceneSplashFSM.Instance.SendFsmEvent_FailQuit(); /* * DivRNUtil.ShowRetryDialog( * () => * { #if BUILD_TYPE_DEBUG * DialogManager.Open1B_Direct("Patcher", * "Patchファイルの取得エラー\n" + * "通信をOFFにしていると場合にPatcが取得できず\n" + * "このエラーがが発生します\n\n" + * "Patchファイルのフォーマットエラー\n" + * "パッチファイルの構造が壊れている可能性が\n" + * "あります。確認及び修正してください\n\n" + * "HTTPS接続時に端末時間を変更すると\n" + * "このエラーになる場合があります\n " + * "端末時間を現在時間に修正してアクセスしてください", * "common_button7", true, true). * SetOkEvent(() => * { * SceneSplashFSM.Instance.SendFsmEvent_FailRetry(); * }); #else * SceneSplashFSM.Instance.SendFsmEvent_FailRetry(); #endif * }); */ }); }