public void HideTwinOther() { this._twinPanel.get_gameObject().SafeGetTweenAlpha(1f, 0f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._twinPanel.get_gameObject(), string.Empty); this._otherBg.get_gameObject().SafeGetTweenAlpha(0.6f, 0f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._otherBg.get_gameObject(), string.Empty); OrganizeTaskManager.GetDialogPopUp().Close(this._twinPanel.get_gameObject(), 1f, 1f, 0f, 0f); this.State = OrganizeTender.TenderState.Select; }
public void ShowTwinOther() { this._twinPanel.get_transform().set_localPosition(Vector3.get_zero()); this._otherBg.get_transform().set_localPosition(Vector3.get_zero()); this._twinPanel.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._twinPanel.get_gameObject(), string.Empty); this._otherBg.get_gameObject().SafeGetTweenAlpha(0f, 0.6f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._otherBg.get_gameObject(), string.Empty); OrganizeTaskManager.GetDialogPopUp().Open(this._twinPanel.get_gameObject(), 0f, 0f, 1f, 1f); int num = Random.Range(0, 2); int voiceNum = -1; int num2 = num; if (num2 != 0) { if (num2 == 1) { voiceNum = 16; } } else { voiceNum = 15; } ShipUtils.PlayPortVoice(voiceNum); this.setIndex2 = 0; this.State = OrganizeTender.TenderState.Twin; this.setTwinUseDialog(); this.updateTwinBtn(); }
public void Hide() { this._mainBg.get_gameObject().SafeGetTweenAlpha(0.6f, 0f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, base.get_gameObject(), "compHideAnimation"); this._tenderPanel.get_gameObject().SafeGetTweenAlpha(1f, 0f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._tenderPanel.get_gameObject(), string.Empty); OrganizeTaskManager.GetDialogPopUp().Close(this._tenderPanel.get_gameObject(), 1f, 1f, 0f, 0f); this.State = OrganizeTender.TenderState.None; }
public void ShowOther(OrganizeTender.TenderState state) { this._mamiyaPanel.get_transform().set_localPosition(Vector3.get_zero()); this._otherBg.get_transform().set_localPosition(Vector3.get_zero()); this._mamiyaPanel.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._mamiyaPanel.get_gameObject(), string.Empty); this._otherBg.get_gameObject().SafeGetTweenAlpha(0f, 0.6f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._otherBg.get_gameObject(), string.Empty); OrganizeTaskManager.GetDialogPopUp().Open(this._mamiyaPanel.get_gameObject(), 0f, 0f, 1f, 1f); this.setIndex2 = 0; this.State = state; if (this.State == OrganizeTender.TenderState.Maimiya) { int num = Random.Range(0, 2); int voiceNum = -1; int num2 = num; if (num2 != 0) { if (num2 == 1) { voiceNum = 12; } } else { voiceNum = 11; } ShipUtils.PlayPortVoice(voiceNum); this.setUseDialog(); } else if (this.State == OrganizeTender.TenderState.Irako) { this.State = OrganizeTender.TenderState.Irako; int num3 = Random.Range(0, 2); int voiceNum2 = -1; int num2 = num3; if (num2 != 0) { if (num2 == 1) { voiceNum2 = 14; } } else { voiceNum2 = 13; } ShipUtils.PlayPortVoice(voiceNum2); this.setUseDialog(); } this.updateSubBtn(); }
public void ShowSelectTender() { base.get_transform().GetComponent <UIPanel>().alpha = 1f; this.State = OrganizeTender.TenderState.Select; SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); base.get_transform().GetComponent <UIPanel>().widgetsAreStatic = false; this.tenderDic = OrganizeTaskManager.Instance.GetLogicManager().GetAvailableSweets(OrganizeTaskManager.Instance.GetTopTask().GetDeckID()); this._tenderPanel.get_transform().set_localPosition(new Vector3(0f, 0f)); this._mainBg.get_transform().set_localPosition(new Vector3(0f, 0f)); this._mainBg.get_gameObject().SafeGetTweenAlpha(0f, 0.6f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._mainBg.get_gameObject(), string.Empty); this._tenderPanel.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._tenderPanel.get_gameObject(), string.Empty); OrganizeTaskManager.GetDialogPopUp().Open(this._tenderPanel.get_gameObject(), 0f, 0f, 1f, 1f); this.CheckMainDialog(); }
public void init() { if (this._tenderPanel == null) { this._tenderPanel = base.get_transform().FindChild("TenderDialog").get_gameObject(); } if (this._mamiyaPanel == null) { this._mamiyaPanel = base.get_transform().FindChild("MamiyaDialog").get_gameObject(); } if (this._twinPanel == null) { this._twinPanel = base.get_transform().FindChild("TwinDialog").get_gameObject(); } if (this._animatePanel == null) { this._animatePanel = base.get_transform().FindChild("AnimatePanel").get_gameObject(); } Util.FindParentToChild <UISprite>(ref this._allBtn, this._tenderPanel.get_transform(), "AllBtn"); Util.FindParentToChild <UISprite>(ref this._mamiyaBtn, this._tenderPanel.get_transform(), "MamiyaBtn"); Util.FindParentToChild <UISprite>(ref this._irakoBtn, this._tenderPanel.get_transform(), "IrakoBtn"); Util.FindParentToChild <UITexture>(ref this._allC1, this._tenderPanel.get_transform(), "All1"); Util.FindParentToChild <UITexture>(ref this._allC2, this._tenderPanel.get_transform(), "All2"); Util.FindParentToChild <UITexture>(ref this._mainBg, base.get_transform(), "Bg"); Util.FindParentToChild <UITexture>(ref this._otherBg, base.get_transform(), "UseBg"); this._ship = this._mamiyaPanel.get_transform().FindChild("Ship").GetComponent <UITexture>(); this._topLabel = this._mamiyaPanel.get_transform().FindChild("Label_Mamiya").GetComponent <UILabel>(); this._item = this._mamiyaPanel.get_transform().FindChild("Item").GetComponent <UISprite>(); this._btnYes = this._mamiyaPanel.get_transform().FindChild("YesBtn").GetComponent <UISprite>(); this._btnNo = this._mamiyaPanel.get_transform().FindChild("NoBtn").GetComponent <UISprite>(); this._labelFrom = this._mamiyaPanel.get_transform().FindChild("LabelFrom").GetComponent <UILabel>(); this._labelTo = this._mamiyaPanel.get_transform().FindChild("LabelTo").GetComponent <UILabel>(); this._tBtnYes = this._twinPanel.get_transform().FindChild("YesBtn").GetComponent <UISprite>(); this._tBtnNo = this._twinPanel.get_transform().FindChild("NoBtn").GetComponent <UISprite>(); this._labelFrom1 = this._twinPanel.get_transform().FindChild("Frame1_1/LabelFrom").GetComponent <UILabel>(); this._labelTo1 = this._twinPanel.get_transform().FindChild("Frame1_2/LabelTo").GetComponent <UILabel>(); this._labelFrom2 = this._twinPanel.get_transform().FindChild("Frame2_1/LabelFrom").GetComponent <UILabel>(); this._labelTo2 = this._twinPanel.get_transform().FindChild("Frame2_2/LabelTo").GetComponent <UILabel>(); this._ship1 = this._animatePanel.get_transform().FindChild("Ship/Ship1").GetComponent <UITexture>(); this._ship2 = this._animatePanel.get_transform().FindChild("Ship/Ship2").GetComponent <UITexture>(); this._animation = base.get_gameObject().GetComponent <Animation>(); this._animation.Stop(); this._parSystem = this._animatePanel.get_transform().FindChild("Circle/Par").GetComponent <ParticleSystem>(); this._parSystem2 = this._animatePanel.get_transform().FindChild("Par2").GetComponent <ParticleSystem>(); this._parSystem.Stop(); this._parSystem2.Stop(); this.setButtonMessage(this._allBtn.get_gameObject(), "AllBtnEL"); this.setButtonMessage(this._irakoBtn.get_gameObject(), "IrakoBtnEL"); this.setButtonMessage(this._mamiyaBtn.get_gameObject(), "MamiyaBtnEL"); this.setButtonMessage(this._mainBg.get_gameObject(), "MainBackEL"); this.setButtonMessage(this._otherBg.get_gameObject(), "OtherBackEL"); this.setButtonMessage(this._btnYes.get_gameObject(), "BtnYesEL"); this.setButtonMessage(this._tBtnYes.get_gameObject(), "BtnYesEL"); this.setButtonMessage(this._btnNo.get_gameObject(), "BtnNoEL"); this.setButtonMessage(this._tBtnNo.get_gameObject(), "BtnNoEL"); this.State = OrganizeTender.TenderState.None; this.setIndex = 0; this.setIndex2 = 0; this.isAnimation = false; this._GuideOff = false; base.get_transform().GetComponent <UIPanel>().alpha = 0f; }