Ejemplo n.º 1
0
 public UIBattleCutNavigation SetNavigationInCommand(CtrlBCCommandSelect.CtrlMode iMode)
 {
     if (!this.settingModel.GuideDisplay)
     {
         return(this);
     }
     this.SetAnchor(UINavigation <UIBattleCutNavigation> .Anchor.BottomLeft);
     if (iMode != CtrlBCCommandSelect.CtrlMode.Surface)
     {
         if (iMode == CtrlBCCommandSelect.CtrlMode.Command)
         {
             this.AddDetail(HowToKey.arrow_upDown, "選択");
             this.AddDetail(HowToKey.btn_maru, "決定");
             this.AddDetail(HowToKey.btn_batsu, "戻る");
         }
     }
     else
     {
         this.AddDetail(HowToKey.arrow_upDown, "選択");
         this.AddDetail(HowToKey.btn_maru, "決定");
         this.AddDetail(HowToKey.btn_batsu, "外す");
         this.AddDetail(HowToKey.btn_shikaku, "一括解除");
     }
     return(this.DrawRefresh());
 }
Ejemplo n.º 2
0
 private bool Init(CommandPhaseModel model)
 {
     this._clsState            = new StatementMachine();
     this._listInvalidCommands = this.GetInvalidCommands(model.GetSelectableCommands());
     this._clsCommandModel     = model;
     this._iCtrlModel          = CtrlBCCommandSelect.CtrlMode.Surface;
     this._isInputPossible     = false;
     this._uiCommandSurfaceList.Init(model.GetPresetCommand(), new Action <UICommandLabelButton>(this.OnSelectedSurface), new Predicate <List <BattleCommand> >(this.OnStartBattle));
     this._uiCommandSurfaceList.isColliderEnabled = false;
     this._uiCommandUnitSelect = UICommandUnitSelect.Instantiate(this._prefabUICommandUnitSelect.GetComponent <UICommandUnitSelect>(), base.get_transform(), model.GetSelectableCommands(), new Action <BattleCommand>(this.OnDecideUnitSelect), new Action(this.OnCancelUnitSelect));
     this.InitEnemyFleetInfos();
     this.panel.alpha            = 0f;
     this.panel.widgetsAreStatic = true;
     return(true);
 }
Ejemplo n.º 3
0
        public UIBattleCutNavigation SetNavigationInCommand(CtrlBCCommandSelect.CtrlMode iMode)
        {
            if (!settingModel.GuideDisplay)
            {
                return(this);
            }
            this.SetAnchor(Anchor.BottomLeft);
            switch (iMode)
            {
            case CtrlBCCommandSelect.CtrlMode.Command:
                AddDetail(HowToKey.arrow_upDown, "選択");
                AddDetail(HowToKey.btn_maru, "決定");
                AddDetail(HowToKey.btn_batsu, "戻る");
                break;

            case CtrlBCCommandSelect.CtrlMode.Surface:
                AddDetail(HowToKey.arrow_upDown, "選択");
                AddDetail(HowToKey.btn_maru, "決定");
                AddDetail(HowToKey.btn_batsu, "外す");
                AddDetail(HowToKey.btn_shikaku, "一括解除");
                break;
            }
            return(DrawRefresh());
        }