示例#1
0
 private void OnPushedYesButton()
 {
     if (null == GUIManager.CheckTopDialog("CMDWebWindow", null))
     {
         if (this.OnPushedYesAction != null)
         {
             this.OnPushedYesAction();
         }
         if (this.onPushYesButton != null)
         {
             if (this.beEnough)
             {
                 this.onPushYesButton(this);
             }
             else
             {
                 base.SetWindowClosedAction(delegate
                 {
                     GUIMain.ShowCommonDialog(delegate(int n)
                     {
                         GUIPlayerStatus.RefreshParams_S(false);
                     }, "CMD_Shop", null);
                 });
                 this.ClosePanel(true);
             }
         }
     }
 }
示例#2
0
 private void OnPushedNoButton()
 {
     if (this.OnPushedNoAction != null && null == GUIManager.CheckTopDialog("CMDWebWindow", null))
     {
         this.OnPushedNoAction();
     }
     this.ClosePanel(true);
 }
示例#3
0
 public void OnClickedFriend()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_FriendTop", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             this.PartsMenuShowDialog(null, "CMD_FriendTop");
         });
     }
 }
示例#4
0
 private void OnClicked_VS()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_PvPTop", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             FarmColosseum.ShowPvPTop();
         });
     }
 }
示例#5
0
 private void AfterGetDungeonInfo(bool complate)
 {
     RestrictionInput.EndLoad();
     if (GUIManager.CheckTopDialog("CMD_MultiRecruitTop", null) == null)
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             CMD_MultiRecruitTop.Create();
         });
     }
 }
示例#6
0
 private void OnClickedClearingHouse()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_ClearingHouse", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             this.PartsMenuShowDialog(null, "CMD_ClearingHouse");
         });
     }
 }
示例#7
0
 public void OnClickedTraining()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_ReinforcementTOP", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             this.PartsMenuShowDialog(null, "CMD_ReinforcementTOP");
         });
     }
 }
示例#8
0
 private void OnClickedOthers()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_OtherTOP", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             this.PartsMenuShowDialog(null, "CMD_OtherTOP");
         });
     }
 }
示例#9
0
 private void OnClickedHelp()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_HelpCategory", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             CMD_HelpCategory.Data = MasterDataMng.Instance().RespDataMA_HelpCategoryM;
             this.PartsMenuShowDialog(null, "CMD_HelpCategory");
         });
     }
 }
示例#10
0
    public void OnClickedArousal()
    {
        this.ForceHide(true);
        CommonDialog y = GUIManager.CheckTopDialog("CMD_ArousalTOP", null);

        if (null == y)
        {
            GUIManager.CloseAllCommonDialog(delegate
            {
                this.PartsMenuShowDialog(null, "CMD_ArousalTOP");
            });
        }
    }
示例#11
0
    public void OnClickedTrainingMenu()
    {
        this.ForceHide(true);
        CommonDialog y = GUIManager.CheckTopDialog("CMD_Training_Menu", null);

        if (null == y)
        {
            GUIManager.CloseAllCommonDialog(delegate
            {
                this.PartsMenuShowDialog(null, "CMD_Training_Menu");
            });
        }
    }
示例#12
0
 private void OnClickedParty()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_PartyEdit", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
             CMD_PartyEdit.ModeType = CMD_PartyEdit.MODE_TYPE.EDIT;
             this.PartsMenuShowDialog(null, "CMD_PartyEdit");
         });
     }
 }
示例#13
0
    public void OnClickedEvo()
    {
        this.ForceHide(true);
        CommonDialog y = GUIManager.CheckTopDialog("CMD_BaseSelect", null);

        if (null == y || CMD_BaseSelect.BaseType != CMD_BaseSelect.BASE_TYPE.EVOLVE)
        {
            GUIManager.CloseAllCommonDialog(delegate
            {
                CMD_BaseSelect.BaseType = CMD_BaseSelect.BASE_TYPE.EVOLVE;
                this.PartsMenuShowDialog(null, "CMD_BaseSelect");
            });
        }
    }
示例#14
0
 private void OnClickedShop()
 {
     this.ForceHide(true);
     if (null == GUIManager.CheckTopDialog("CMD_Shop", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             this.PartsMenuShowDialog(null, "CMD_Shop");
             FarmRoot farmRoot = FarmRoot.Instance;
             if (null != farmRoot)
             {
                 farmRoot.ClearSettingFarmObject();
             }
         });
     }
 }
示例#15
0
 public void OnClickedQuestType(int uiType)
 {
     this.ForceHide(true);
     this.questUITypeBackup = uiType;
     if (null == GUIManager.CheckTopDialog("CMD_QuestSelect", null))
     {
         GUIManager.CloseAllCommonDialog(delegate
         {
             RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
             List <string> worldIdList = new List <string>
             {
                 "1",
                 "3",
                 "8"
             };
             ClassSingleton <QuestData> .Instance.GetWorldDungeonInfo(worldIdList, new Action <bool>(this.OnResponseQuestInfo));
         });
     }
 }
示例#16
0
    private void ShowServerMaintenance(string maintenanceMessage)
    {
        CMD_maintenance cmd_maintenance = (CMD_maintenance)GUIManager.CheckTopDialog("CMD_maintenance", null);

        if (cmd_maintenance != null)
        {
            RestrictionInput.EndLoad();
            cmd_maintenance.Info = maintenanceMessage;
            if (!AlertManager.ShowAlertDialog(null, "E-AL15"))
            {
                AlertManager.ShowAlertDialog(null, StringMaster.GetString("Maintenance-01"), StringMaster.GetString("Maintenance-02"), AlertManager.ButtonActionType.Close, false);
            }
        }
        else
        {
            cmd_maintenance      = (GUIMain.ShowCommonDialog(null, "CMD_maintenance", null) as CMD_maintenance);
            cmd_maintenance.Info = maintenanceMessage;
        }
    }
示例#17
0
 public void OnClickedClearing()
 {
     this.ForceHide(true);
     if (FarmRoot.Instance.Scenery.GetFacilityCount(22) > 0)
     {
         if (null == GUIManager.CheckTopDialog("CMD_ClearingHouseTOP", null))
         {
             GUIManager.CloseAllCommonDialog(delegate
             {
                 this.PartsMenuShowDialog(null, "CMD_ClearingHouseTOP");
             });
         }
     }
     else
     {
         CMD_ModalMessage cmd_ModalMessage = this.PartsMenuShowDialog(null, "CMD_ModalMessage") as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("ExchangeMissingAlertTitle");
         cmd_ModalMessage.Info  = StringMaster.GetString("ExchangeMissingAlertInfo");
     }
 }
示例#18
0
    private void OpenPageByParam(CMDWebWindow.WebParam param)
    {
        global::Debug.Log("Tag :" + param.Tag);
        global::Debug.Log("URL :" + param.Url);
        string tag = param.Tag;

        switch (tag)
        {
        case "MoveGacha":
            if (GUIManager.CheckTopDialog("CMD_GashaTOP", null) == null)
            {
                this.ClosePanelNotEndShow(true);
                base.SetCloseAction(delegate(int i)
                {
                    if (this.callbackAction != null)
                    {
                        this.callbackAction();
                    }
                    GUIMain.BarrierOFF();
                    GUIMain.ShowCommonDialog(null, "CMD_GashaTOP", null);
                });
            }
            this.ClosePanel(true);
            break;

        case "MoveQuest":
            if (CMD_QuestSelect.instance == null)
            {
                this.ClosePanelNotEndShow(true);
                RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
                List <string> list = new List <string>();
                list.Add("1");
                list.Add("3");
                list.Add("8");
                ClassSingleton <QuestData> .Instance.GetWorldDungeonInfo(list, new Action <bool>(this.actCBQuest));
            }
            else
            {
                this.ClosePanel(true);
            }
            break;

        case "MoveExchange":
            if (GUIManager.CheckTopDialog("CMD_ClearingHouseTOP", null) == null)
            {
                this.ClosePanelNotEndShow(true);
                base.SetCloseAction(delegate(int i)
                {
                    if (this.callbackAction != null)
                    {
                        this.callbackAction();
                    }
                    GUIMain.BarrierOFF();
                    GUIMain.ShowCommonDialog(null, "CMD_ClearingHouseTOP", null);
                });
            }
            this.ClosePanel(true);
            break;

        case "ToggleBGM":
            this.ToggleBGM(false);
            break;

        case "Link":
            if (base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSING && base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSED)
            {
                string text = param.Url;
                text = this.DecodeUrl(text);
                if (CMDWebWindow.webViewObject != null)
                {
                    CMDWebWindow.webViewObject.Close();
                }
                this.StartWebView(ConstValue.APP_WEB_DOMAIN + text);
            }
            break;

        case "ExLink":
            Application.OpenURL(param.Url);
            break;

        case "PlayMovie":
        {
            this.isMute = false;
            this.ToggleBGM(true);
            PlayMovie component = base.GetComponent <PlayMovie>();
            component.actionFinishedMovie = new Action <bool>(this.ToggleBGM);
            NpMovie.TouchFinish           = true;
            NpMovie.SoundEnable           = true;
            NpMovie.ControllerEnabled     = false;
            string path = ConstValue.APP_ASSET_DOMAIN + this.DecodeUrl(param.Url);
            NpMovie.PlayStreaming(path, base.gameObject, component);
            break;
        }
        }
    }