コード例 #1
0
 public bool Run()
 {
     if (!this._isDecide && this._isInputPossible)
     {
         using (List <UIHexButton> .Enumerator enumerator = this._listHexBtns.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 UIHexButton current = enumerator.get_Current();
                 current.Run();
             }
         }
         if (this._clsInput.keyState.get_Item(14).down)
         {
             this._btnIndex = this._setButtonIndex(true);
             KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             this.SetAdvancingWithdrawalBtnState(this._btnIndex);
         }
         else if (this._clsInput.keyState.get_Item(10).down)
         {
             this._btnIndex = this._setButtonIndex(false);
             KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             this.SetAdvancingWithdrawalBtnState(this._btnIndex);
         }
         else if (this._clsInput.GetDown(KeyControl.KeyName.MARU))
         {
             this.DecideAdvancingWithDrawalBtn(this._listHexBtns.get_Item(this._btnIndex));
         }
     }
     return(!this._isDecide);
 }
コード例 #2
0
        public bool Run()
        {
            KeyControl keyControl = BattleTaskManager.GetKeyControl();

            if (!this._isDecide && this._isInputPossible)
            {
                using (List <UIHexButton> .Enumerator enumerator = this._listHexBtns.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        UIHexButton current = enumerator.get_Current();
                        current.Run();
                    }
                }
                if (keyControl.GetDown(KeyControl.KeyName.LEFT))
                {
                    this._btnIndex = this._setButtonIndex(this._btnIndex, false);
                    KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
                    this.SetAdvancingWithdrawalBtnState(this._btnIndex);
                }
                if (keyControl.GetDown(KeyControl.KeyName.RIGHT))
                {
                    this._btnIndex = this._setButtonIndex(this._btnIndex, true);
                    KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
                    this.SetAdvancingWithdrawalBtnState(this._btnIndex);
                }
                if (keyControl.GetDown(KeyControl.KeyName.MARU))
                {
                    this.DecideAdvancingWithDrawalBtn(this._listHexBtns.get_Item(this._btnIndex));
                }
            }
            return(!this._isDecide);
        }