Esempio n. 1
0
        public void openDeckNameInput()
        {
            if (OrganizeTaskManager.Instance.GetDetailTask().CheckBtnEnabled() && base.isRun)
            {
                SoundUtils.PlaySE(SEFIleInfos.SE_001);
                _state       = OrganizeState.System;
                controlState = "system";
                BannerIndex  = 0;
                SystemIndex  = 2;
                UpdateSystemButtons();
                UpdateChangeBanner();
                App.OnlyController  = KeyController;
                KeyController.IsRun = false;
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : true);

                this.DelayActionFrame(1, delegate
                {
                    Ime.OnGotIMEDialogResult += OnGotIMEDialogResult;
                    Ime.Open(new Ime.ImeDialogParams
                    {
                        supportedLanguages = (Ime.FlagsSupportedLanguages.LANGUAGE_JAPANESE | Ime.FlagsSupportedLanguages.LANGUAGE_ENGLISH_GB),
                        languagesForced    = true,
                        type          = Ime.EnumImeDialogType.TYPE_DEFAULT,
                        option        = Ime.FlagsTextBoxOption.OPTION_DEFAULT,
                        canCancel     = true,
                        textBoxMode   = Ime.FlagsTextBoxMode.TEXTBOX_MODE_WITH_CLEAR,
                        enterLabel    = Ime.EnumImeDialogEnterLabel.ENTER_LABEL_DEFAULT,
                        maxTextLength = 12,
                        title         = "艦隊名を入力してください。(12文字まで)",
                        initialText   = mEditName
                    });
                });
            }
        }
Esempio n. 2
0
 private void OnDestroy()
 {
     _bgPanel                 = null;
     _bannerPanel             = null;
     _allUnsetBtn             = null;
     _tenderBtn               = null;
     _fleetNameBtn            = null;
     _fleetNameLabel          = null;
     mTransform_TurnEndStamp  = null;
     _displaySwipeEventRegion = null;
     deckChangeArrows         = null;
     deckIcon                 = null;
     Mem.DelDictionarySafe(ref StateControllerDic);
     _bannerManager   = null;
     SystemIndex      = 0;
     prevControlState = string.Empty;
     changeState      = string.Empty;
     _state           = OrganizeState.Top;
     Mem.Del(ref BannerIndex);
     Mem.Del(ref controlState);
     uiCamera          = null;
     TenderManager     = null;
     currentDeck       = null;
     deckSwitchManager = null;
     decks             = null;
     allShip           = null;
     KeyController     = null;
 }
Esempio n. 3
0
 public void TenderBtnEL()
 {
     CreateTender();
     if (OrganizeTaskManager.Instance.GetDetailTask().CheckBtnEnabled() && IsTenderBtn())
     {
         BannerIndex = 0;
         SystemIndex = 0;
         UpdateSystemButtons();
         UpdateChangeBanner();
         TenderManager.ShowSelectTender();
         OrganizeTaskManager.Instance.GetTopTask().setControlState();
         _state = OrganizeState.Tender;
     }
 }
Esempio n. 4
0
 public void setControlState()
 {
     if (TenderManager != null && TenderManager.State != 0)
     {
         controlState = "tender";
         _state       = OrganizeState.Tender;
     }
     else if (BannerIndex == 0)
     {
         controlState = "system";
         _state       = OrganizeState.System;
     }
     else
     {
         controlState = "banner";
         _state       = OrganizeState.Top;
     }
     UpdateDeckSwitchManager();
 }
Esempio n. 5
0
        protected override bool Run()
        {
            Main.Update();
            if (isEnd)
            {
                if (changeState == "detail")
                {
                    OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Detail);
                    _state2 = OrganizeState.Detail;
                }
                else if (changeState == "list")
                {
                    OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
                    _state2 = OrganizeState.List;
                }
                isEnd = false;
                return(false);
            }
            if (controlState != null)
            {
                if (isTenderAnimation())
                {
                    return(true);
                }
                switch (_state)
                {
                case OrganizeState.Top:
                    _state2 = OrganizeState.Top;
                    return(StateKeyControl_Banner());

                case OrganizeState.System:
                    _state2 = OrganizeState.System;
                    return(StateKeyControl_System());

                case OrganizeState.Tender:
                    _state2 = OrganizeState.Tender;
                    return(StateKeyControl_Tender());
                }
            }
            return(true);
        }