public void showHighSpeedDialog(int dockNum) { base.get_transform().GetComponent <UIPanel>().alpha = 1f; this.IsShow = true; this.Index = 0; this.updateSpeedDialogBtn(0); this._maskPanel.get_transform().set_localPosition(Vector3.get_zero()); this._maskBg.SafeGetTweenAlpha(0f, 0.5f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, base.get_gameObject(), string.Empty); base.get_transform().set_localPosition(Vector3.get_zero()); ArsenalTaskManager.GetDialogPopUp().Open(base.get_gameObject(), 0f, 0f, 1f, 1f); this._uiOverlayBtn.GetComponent <Collider2D>().set_isTrigger(true); ArsenalManager arsenalManager = new ArsenalManager(); arsenalManager.LargeState = arsenalManager.GetDock(dockNum + 1).IsLarge(); int buildKit = arsenalManager.GetMaxForCreateShip().BuildKit; int buildKit2 = ArsenalTaskManager.GetLogicManager().Material.BuildKit; this._fromLabel.textInt = buildKit2; this._toLabel.textInt = buildKit2 - buildKit; }
public void showHighSpeedDialog(int dockNum) { ((Component)base.transform).GetComponent <UIPanel>().alpha = 1f; IsShow = true; Index = 0; updateSpeedDialogBtn(0); _maskPanel.transform.localPosition = Vector3.zero; _maskBg.SafeGetTweenAlpha(0f, 0.5f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, base.gameObject, string.Empty); base.transform.localPosition = Vector3.zero; ArsenalTaskManager.GetDialogPopUp().Open(base.gameObject, 0f, 0f, 1f, 1f); _uiOverlayBtn.GetComponent <Collider2D>().isTrigger = true; ArsenalManager arsenalManager = new ArsenalManager(); arsenalManager.LargeState = arsenalManager.GetDock(dockNum + 1).IsLarge(); MaterialInfo maxForCreateShip = arsenalManager.GetMaxForCreateShip(); int buildKit = maxForCreateShip.BuildKit; int buildKit2 = ArsenalTaskManager.GetLogicManager().Material.BuildKit; _fromLabel.textInt = buildKit2; _toLabel.textInt = buildKit2 - buildKit; }