public void _close() { dockMode = DockMode.Close; _uiBg.mainTexture = (Resources.Load("Textures/Arsenal/dock/kenzo_bg_none") as Texture2D); _uiBg2.alpha = 0f; _uiGetBtn.transform.localScale = Vector3.zero; _uiStartBtn.transform.localScale = Vector3.zero; _uiHighBtn.transform.localScale = Vector3.zero; _uiTurnLabel.alpha = 0f; _lockObj.SetActive(true); _lockFrameObj.SetActive(true); _lockBtn.transform.localScale = Vector3.zero; btnLight.StopAnim(); }
private void ChkButtonState() { if (_uiNameInput.value == string.Empty || _uiNameInput.value.Replace(" ", string.Empty).Replace("\u3000", string.Empty) == string.Empty) { _uiDecideButton.state = UIButtonColor.State.Disabled; _btnLight.StopAnim(); } else if (Utils.ChkNGWard(_uiNameInput.value)) { _uiDecideButton.state = UIButtonColor.State.Disabled; _btnLight.StopAnim(); } else { _uiDecideButton.state = UIButtonColor.State.Normal; _btnLight.PlayAnim(); } ((Collider)_uiDecideButton.GetComponent <BoxCollider>()).enabled = ((_uiDecideButton.state == UIButtonColor.State.Normal) ? true : false); }
private void UpdateStartButtonEnabled() { mButton_Start.enabled = (GetSetShipModels().Count > 0 && CanModernize()); if (mButton_Start.enabled) { btnLight.PlayAnim(); } else { btnLight.StopAnim(); } mButton_Start.SetState((!mButton_Start.enabled) ? UIButtonColor.State.Disabled : UIButtonColor.State.Normal, immediate: true); }
public void Init(bool isGoeiChange) { mIsEndPhase = false; if (keyController == null) { keyController = new KeyControl(0, 2); } SingletonMonoBehaviour <Live2DModel> .Instance.Enable(); SetLandscape(); TankerNum.text = top.TankerCount.ToString(); deployMaterials.updateMaterials(top.areaID, top.TankerCount, EscortOrganizeTaskManager.GetEscortManager()); KeyControlManager.Instance.KeyController = keyController; EscortDeckModel editDeck = EscortOrganizeTaskManager.GetEscortManager().EditDeck; InitializeEscortDeckIcons(editDeck); StrategyTopTaskManager.Instance.UIModel.OverCamera.SetActive(isActive: true); top.isChangeMode = false; btnManager.setFocus(0); if (isGoeiChange) { keyController.IsRun = false; ChangeCharactertoEscortFlagShip(); } this.DelayAction(0.3f, delegate { if (EscortOrganize == null) { GameObject gameObject = Util.Instantiate(StrategyTopTaskManager.GetCommandMenu().EscortOrganize, base.transform.parent.gameObject); gameObject.SetActive(false); gameObject.transform.localPositionX(9999f); EscortOrganize = gameObject; } if (StrategyTopTaskManager.GetLogicManager().IsValidDeploy(StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID, top.TankerCount, EscortOrganizeTaskManager.GetEscortManager())) { btnLight.PlayAnim(); } else { btnLight.StopAnim(); } }); }
private void OnPopStateShipDestroyConfirm() { _ShikakuON = false; _dismantleBtnLight.StopAnim(); }