private void openSupportDialog() { uint uid = LocalSaveManager.Instance.LoadFuncUserID(); string userIdText = string.Format(GameTextUtil.GetText("mt21q_content"), UnityUtil.CreateDrawUserID(uid)); Dialog newDialog = Dialog.Create(DialogType.DialogYesNo).SetStrongYes(); newDialog.SetDialogTextFromTextkey(DialogTextType.Title, "mt21q_title"); newDialog.SetDialogText(DialogTextType.MainText, userIdText); newDialog.SetDialogTextFromTextkey(DialogTextType.YesText, "common_button4"); newDialog.SetDialogTextFromTextkey(DialogTextType.NoText, "common_button5"); newDialog.SetDialogEvent(DialogButtonEventType.YES, new System.Action(() => { ResetButtons(); //DG0-1944 お問い合わせは強制的に外部ブラウザーで表示する string support_url = MasterDataUtil.GetMasterDataGlobalParamTextFromID(GlobalDefine.WEB_LINK_SUPPORT); URLManager.OpenURL(support_url, true); })); newDialog.EnableFadePanel(); newDialog.DisableCancelButton(); newDialog.Show(); newDialog.SetDialogEvent(DialogButtonEventType.NO, () => { ResetButtons(); }); }
// ダイアログ ガイドライン public void OnClickProbability() { if (ServerApi.IsExists) { return; } URLManager.OpenURL(m_ProbabilityUrl); }
public void OnClick() { if (ButtonBlocker.Instance.IsActive()) { return; } SoundUtil.PlaySE(SEID.SE_MENU_OK); #if BUILD_TYPE_DEBUG Debug.Log("CALL Banner#OnClick:" + gameObject.name + " link:" + Context.link); #endif if (Context.link.StartsWith("http")) { URLManager.OpenURL(Context.link); return; } else { switch (Context.JumpToInApp_Place) { case "areamap": MainMenuParam.m_RegionID = MasterDataUtil.GetRegionIDFromCategory(MasterDataDefineLabel.REGION_CATEGORY.STORY); MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_QUEST_SELECT_AREA_STORY, false, false); break; case "scratch": MainMenuParam.m_GachaMaster = MasterDataUtil.GetActiveGachaMaster().FirstOrDefault(g => g.fix_id == Context.JumpToInApp_Id); MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_GACHA_MAIN, false, false); break; case "area": MainMenuParam.SetQuestSelectParam(Context.JumpToInApp_Id); MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_QUEST_SELECT, false, false, false); break; case "challenge": MainMenuParam.SetChallengeSelectParamFromEventID(Context.JumpToInApp_Id); MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_CHALLENGE_SELECT, false, false, false); break; } return; } }
void OnShowAgreementDialog() { Dialog newDialog = Dialog.Create(DialogType.DialogYesNo); newDialog.SetDialogTextFromTextkey(DialogTextType.Title, "pp6q_title"); if (m_firstAgreement == true) { // 初回時 newDialog.SetDialogTextFromTextkey(DialogTextType.MainText, "pp6q_content"); Debug.LogError("Agreement first"); } else { // バージョン更新時 newDialog.SetDialogTextFromTextkey(DialogTextType.MainText, "pp6q_content2"); Debug.LogError("Agreement ver update"); } newDialog.SetDialogTextFromTextkey(DialogTextType.YesText, "common_button2"); newDialog.SetDialogTextFromTextkey(DialogTextType.NoText, "common_button3"); newDialog.SetMenuInButton(true); newDialog.SetDialogTextFromTextkey(DialogTextType.InButtonText, "pp6q_button"); newDialog.SetDialogEvent(DialogButtonEventType.YES, new System.Action(() => { //---------------------------------------- // 利用規約に同意したことをセーブ //---------------------------------------- LocalSaveManager.Instance.SaveFuncInformationOK(LocalSaveManager.AGREEMENT.AGREE_OK); newDialog.Hide(); SceneSplashFSM.Instance.SendFsmPositiveEvent(); })); newDialog.SetDialogEvent(DialogButtonEventType.NO, new System.Action(() => { newDialog.Hide(); SceneSplashFSM.Instance.SendFsmNegativeEvent(); })); newDialog.SetDialogEvent(DialogButtonEventType.INBUTTON, new System.Action(() => { string url = Patcher.Instance.GetAgreementUrl(); URLManager.OpenURL(url); })); newDialog.EnableFadePanel(); newDialog.DisableCancelButton(); newDialog.DisableAutoHide(); newDialog.Show(); }
void OnClickWebView(OthersInfoListContext item) { SoundUtil.PlaySE(SEID.SE_MENU_OK2); URLManager.OpenURL(item.URL); }