public void Show(bool animation) { UIRemodeModernzationTargetShip[] array = mUIRemodeModernzationTargetShip_TargetShips; foreach (UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip in array) { uIRemodeModernzationTargetShip.Refresh(); } base.gameObject.SetActive(true); base.enabled = true; SwitchChildEnabled(); isShown = true; if (animation) { mPanelThis.widgetsAreStatic = true; RemodelUtils.MoveWithManual(base.gameObject, showPos, 0.2f, delegate { mPanelThis.widgetsAreStatic = false; }); } else { base.transform.localPosition = showPos; } if (mCurrentFocusTargetShipSlot != null) { mCurrentFocusTargetShipSlot.Hover(); } UpdateStartButtonEnabled(); }
private void ChangeFocusSlot(UIRemodeModernzationTargetShip target, bool mute) { if (mCurrentFocusTargetShipSlot != null) { mCurrentFocusTargetShipSlot.RemoveHover(); } mCurrentFocusTargetShipSlot = target; if (mCurrentFocusTargetShipSlot != null) { mCurrentFocusTargetShipSlot.Hover(); } if (target != _BeforeTargetSlot) { if (!mute) { SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } _BeforeTargetSlot = target; } }