public UIBattleNavigation SetNavigationInCommand(BattleCommandMode iCommandMode)
 {
     if (!this.settingModel.GuideDisplay)
     {
         return(this);
     }
     this.SetAnchor(UINavigation <UIBattleNavigation> .Anchor.BottomLeft);
     if (iCommandMode != BattleCommandMode.SurfaceBox)
     {
         if (iCommandMode == BattleCommandMode.UnitList)
         {
             this.AddDetail(HowToKey.arrow_UDLR, "指揮コマンド選択");
             this.AddDetail(HowToKey.btn_maru, "決定");
             this.AddDetail(HowToKey.btn_batsu, "戻る");
         }
     }
     else
     {
         this.AddDetail(HowToKey.arrow_LR, "指揮ボックス選択");
         this.AddDetail(HowToKey.btn_maru, "決定");
         this.AddDetail(HowToKey.btn_batsu, "外す");
         this.AddDetail(HowToKey.btn_shikaku, "一括解除");
     }
     return(this.DrawRefresh());
 }
示例#2
0
 private bool OnKeyModeDecideSurface()
 {
     if (_uiCommandBox.isSelectBattleStart)
     {
         return(_uiCommandBox.DecideStartBattle());
     }
     _uiCommandUnitList.Active2FocusUnit2(_uiCommandBox.focusSurface, _listInvalidCommands);
     commandMode = BattleCommandMode.UnitList;
     return(false);
 }
示例#3
0
        private bool InitKeyMode(object data)
        {
            inputMode   = InputMode.Key;
            commandMode = BattleCommandMode.SurfaceBox;
            BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera;

            cutInCamera.eventMask = Generics.Layers.CutIn;
            _uiCommandBox.SetBattleStartButtonLayer();
            _uiCommandBox.FocusSurfaceMagnify();
            return(false);
        }
示例#4
0
 private bool Init(CommandPhaseModel model)
 {
     this._listInvalidCommands = this.GetInvalidCommands(model.GetSelectableCommands());
     this._clsCommandModel     = model;
     this._iInputMode          = InputMode.Key;
     this._uiCommandBox.Init(model, new Predicate <List <BattleCommand> >(this.OnStartBattle));
     this._uiCommandBox.isColliderEnabled = false;
     this._uiCommandUnitList.Init(model, new Action(this.OnUnitListDnDRelease));
     this._uiCommandUnitList.isColliderEnabled = false;
     this._uiOverlay.alpha = 0f;
     this._uiBlur.set_enabled(false);
     this.commandMode = BattleCommandMode.SurfaceBox;
     this._clsState   = new StatementMachine();
     return(true);
 }
示例#5
0
 private bool OnKeyModeDecideUnit()
 {
     if (!_uiCommandUnitList.focusUnitIcon.isValid)
     {
         KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
         return(false);
     }
     _uiCommandBox.AbsodedUnitIcon2FocusSurface();
     _uiCommandBox.SetFocusUnitIcon2FocusSurface();
     _uiCommandUnitList.Reset2Unit();
     _uiCommandUnitList.ActiveAll2Unit(isActive: false);
     _uiCommandBox.FocusSurfaceMagnify();
     commandMode = BattleCommandMode.SurfaceBox;
     return(false);
 }
示例#6
0
 private bool Init(CommandPhaseModel model)
 {
     _listInvalidCommands = GetInvalidCommands(model.GetSelectableCommands());
     _clsCommandModel     = model;
     _iInputMode          = InputMode.Key;
     _uiCommandBox.Init(model, OnStartBattle);
     _uiCommandBox.isColliderEnabled = false;
     _uiCommandUnitList.Init(model, OnUnitListDnDRelease);
     _uiCommandUnitList.isColliderEnabled = false;
     _uiOverlay.alpha = 0f;
     _uiBlur.enabled  = false;
     commandMode      = BattleCommandMode.SurfaceBox;
     _clsState        = new StatementMachine();
     return(true);
 }
        public UIBattleNavigation SetNavigationInCommand(BattleCommandMode iCommandMode)
        {
            if (!settingModel.GuideDisplay)
            {
                return(this);
            }
            this.SetAnchor(Anchor.BottomLeft);
            switch (iCommandMode)
            {
            case BattleCommandMode.SurfaceBox:
                AddDetail(HowToKey.arrow_LR, "指揮ボックス選択");
                AddDetail(HowToKey.btn_maru, "決定");
                AddDetail(HowToKey.btn_batsu, "外す");
                AddDetail(HowToKey.btn_shikaku, "一括解除");
                break;

            case BattleCommandMode.UnitList:
                AddDetail(HowToKey.arrow_UDLR, "指揮コマンド選択");
                AddDetail(HowToKey.btn_maru, "決定");
                AddDetail(HowToKey.btn_batsu, "戻る");
                break;
            }
            return(DrawRefresh());
        }
示例#8
0
 private bool OnKeyModeCancelUnit()
 {
     _uiCommandUnitList.ActiveAll2Unit(isActive: false);
     commandMode = BattleCommandMode.SurfaceBox;
     return(false);
 }