private void OnAction(UIRemodeModernzationTargetShip.ActionType actionType, UIRemodeModernzationTargetShip calledObject)
 {
     if (base.get_enabled() && this.mUIRemodeModernzationTargetShipAction != null)
     {
         this.mUIRemodeModernzationTargetShipAction(actionType, calledObject);
     }
 }
コード例 #2
0
 public void Show(bool animation)
 {
     UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
     for (int i = 0; i < array.Length; i++)
     {
         UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
         uIRemodeModernzationTargetShip.Refresh();
     }
     base.get_gameObject().SetActive(true);
     base.set_enabled(true);
     this.SwitchChildEnabled();
     this.isShown = true;
     if (animation)
     {
         this.mPanelThis.widgetsAreStatic = true;
         RemodelUtils.MoveWithManual(base.get_gameObject(), this.showPos, 0.2f, delegate
         {
             this.mPanelThis.widgetsAreStatic = false;
         });
     }
     else
     {
         base.get_transform().set_localPosition(this.showPos);
     }
     if (this.mCurrentFocusTargetShipSlot != null)
     {
         this.mCurrentFocusTargetShipSlot.Hover();
     }
     this.UpdateStartButtonEnabled();
 }
コード例 #3
0
 public void Hide(bool animation)
 {
     base.enabled = false;
     SwitchChildEnabled();
     _BeforeTargetSlot = mUIRemodeModernzationTargetShip_TargetShips[0];
     isShown           = false;
     if (animation)
     {
         if (UserInterfaceRemodelManager.instance.status != ScreenStatus.MODE_KINDAIKA_KAISHU_KAKUNIN)
         {
             RemodelUtils.MoveWithManual(base.gameObject, hidePos, 0.2f, delegate
             {
                 if (!isShown)
                 {
                     base.gameObject.SetActive(false);
                 }
             });
         }
     }
     else
     {
         base.transform.localPosition = hidePos;
         base.gameObject.SetActive(false);
     }
 }
コード例 #4
0
 public void Hide(bool animation)
 {
     base.set_enabled(false);
     this.SwitchChildEnabled();
     this._BeforeTargetSlot = this.mUIRemodeModernzationTargetShip_TargetShips[0];
     this.isShown           = false;
     if (animation)
     {
         if (UserInterfaceRemodelManager.instance.status != ScreenStatus.MODE_KINDAIKA_KAISHU_KAKUNIN)
         {
             RemodelUtils.MoveWithManual(base.get_gameObject(), this.hidePos, 0.2f, delegate
             {
                 if (!this.isShown)
                 {
                     base.get_gameObject().SetActive(false);
                 }
             });
         }
     }
     else
     {
         base.get_transform().set_localPosition(this.hidePos);
         base.get_gameObject().SetActive(false);
     }
 }
コード例 #5
0
 private void OnAction(ActionType actionType, UIRemodeModernzationTargetShip calledObject)
 {
     if (base.enabled && mUIRemodeModernzationTargetShipAction != null)
     {
         mUIRemodeModernzationTargetShipAction(actionType, calledObject);
     }
 }
コード例 #6
0
 public void SwitchChildEnabled()
 {
     this.mButton_TouchBack.SetActive(base.get_enabled());
     UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
     for (int i = 0; i < array.Length; i++)
     {
         UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
         uIRemodeModernzationTargetShip.SetEnabled(base.get_enabled());
     }
 }
コード例 #7
0
 public void UnSetAll()
 {
     UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
     for (int i = 0; i < array.Length; i++)
     {
         UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
         uIRemodeModernzationTargetShip.UnSet();
     }
     this.mButton_Start.SetState(UIButtonColor.State.Normal, true);
     this.UpdateStartButtonEnabled();
 }
コード例 #8
0
        public CommonShipBanner[] GetBanner()
        {
            List <CommonShipBanner> list = new List <CommonShipBanner>();

            UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
            for (int i = 0; i < array.Length; i++)
            {
                UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
                CommonShipBanner banner = uIRemodeModernzationTargetShip.GetBanner();
                list.Add(banner);
            }
            return(list.ToArray());
        }
コード例 #9
0
 private void Awake()
 {
     mPanelThis = GetComponent <UIPanel>();
     base.transform.localPosition = hidePos;
     _BeforeTargetSlot            = mUIRemodeModernzationTargetShip_TargetShips[0];
     mButton_TouchBack.SetActive(isActive: false);
     UIRemodeModernzationTargetShip[] array = mUIRemodeModernzationTargetShip_TargetShips;
     foreach (UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip in array)
     {
         uIRemodeModernzationTargetShip.SetOnUIRemodeModernzationTargetShipActionListener(UIRemodeModernzationTargetShipAction);
     }
     _CursorDown = 0;
 }
コード例 #10
0
 private void Awake()
 {
     this.mPanelThis = base.GetComponent <UIPanel>();
     base.get_transform().set_localPosition(this.hidePos);
     this._BeforeTargetSlot = this.mUIRemodeModernzationTargetShip_TargetShips[0];
     this.mButton_TouchBack.SetActive(false);
     UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
     for (int i = 0; i < array.Length; i++)
     {
         UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
         uIRemodeModernzationTargetShip.SetOnUIRemodeModernzationTargetShipActionListener(new UIRemodeModernzationTargetShip.UIRemodeModernzationTargetShipAction(this.UIRemodeModernzationTargetShipAction));
     }
     this._CursorDown = 0;
 }
コード例 #11
0
        public List <ShipModel> GetSetShipModels()
        {
            List <ShipModel> list = new List <ShipModel>();

            UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
            for (int i = 0; i < array.Length; i++)
            {
                UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
                if (uIRemodeModernzationTargetShip.GetSlotInShip() != null)
                {
                    list.Add(uIRemodeModernzationTargetShip.GetSlotInShip());
                }
            }
            return(list);
        }
コード例 #12
0
 public void Initialize(KeyControl keyController, ShipModel shipModel)
 {
     if (keyController != null)
     {
         keyController.ClearKeyAll();
         keyController.firstUpdate = true;
     }
     this.mKeyController         = keyController;
     this.mModernzationShipModel = shipModel;
     UIRemodeModernzationTargetShip[] array = this.mUIRemodeModernzationTargetShip_TargetShips;
     for (int i = 0; i < array.Length; i++)
     {
         UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip = array[i];
         uIRemodeModernzationTargetShip.UnSet();
     }
     this.UpdateStartButtonEnabled();
 }
コード例 #13
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mButton_Start);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mButton_TouchBack);
     if (this.mUIRemodeModernzationTargetShip_TargetShips != null)
     {
         for (int i = 0; i < this.mUIRemodeModernzationTargetShip_TargetShips.Length; i++)
         {
             this.mUIRemodeModernzationTargetShip_TargetShips[i] = null;
         }
     }
     this.mUIRemodeModernzationTargetShip_TargetShips = null;
     this.btnLight = null;
     this.mCurrentFocusTargetShipSlot = null;
     this._BeforeTargetSlot           = null;
     this.mKeyController         = null;
     this.mModernzationShipModel = null;
 }
コード例 #14
0
 private void ChangeFocusSlot(UIRemodeModernzationTargetShip target, bool mute)
 {
     if (this.mCurrentFocusTargetShipSlot != null)
     {
         this.mCurrentFocusTargetShipSlot.RemoveHover();
     }
     this.mCurrentFocusTargetShipSlot = target;
     if (this.mCurrentFocusTargetShipSlot != null)
     {
         this.mCurrentFocusTargetShipSlot.Hover();
     }
     if (target != this._BeforeTargetSlot)
     {
         if (!mute)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
         this._BeforeTargetSlot = target;
     }
 }
コード例 #15
0
 private void UIRemodeModernzationTargetShipAction(UIRemodeModernzationTargetShip.ActionType actionType, UIRemodeModernzationTargetShip calledObject)
 {
     if (this.mKeyController == null)
     {
         return;
     }
     if (actionType == UIRemodeModernzationTargetShip.ActionType.OnTouch)
     {
         this.ChangeFocusSlot(calledObject);
         this.Forward4Select();
     }
 }
コード例 #16
0
 private void ChangeFocusSlot(UIRemodeModernzationTargetShip target)
 {
     ChangeFocusSlot(target, mute: false);
 }
コード例 #17
0
 private void UIRemodeModernzationTargetShipAction(UIRemodeModernzationTargetShip.ActionType actionType, UIRemodeModernzationTargetShip calledObject)
 {
     if (mKeyController != null && actionType == UIRemodeModernzationTargetShip.ActionType.OnTouch)
     {
         ChangeFocusSlot(calledObject);
         Forward4Select();
     }
 }
コード例 #18
0
 private void ChangeFocusSlot(UIRemodeModernzationTargetShip target)
 {
     this.ChangeFocusSlot(target, false);
 }