protected override void OnInit() { this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) { this.resultType = data.type; WindowUI.CloseWindow(WindowID.WindowID_EventFirstGold); }; }
protected override void OnInit() { this.mTurnCtrl.TurnEnd = delegate(TurnTableType type) { this.resultType = type; WindowUI.CloseWindow(WindowID.WindowID_EventChect1); }; }
protected override void OnInit() { this.adx = this.mAdTurnCtrl.transform.localPosition.x; this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) { this.resultType = data.type; if (LocalSave.Instance.BattleAd_CanShow()) { SdkManager.send_event_ad(ADSource.eTurntable, "SHOW", 0, 0, string.Empty, string.Empty); TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.SetUpdate <Sequence>(this.mSeqPool.Get(), true), 0.5f), TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.gameturnparent.transform, -this.adx, 0.5f, false), 0x1b)), 0.5f), new TweenCallback(this, this.< OnInit > m__3)); } else { WindowUI.CloseWindow(WindowID.WindowID_GameTurnTable); } }; RectTransform transform = base.transform as RectTransform; RectTransform transform2 = this.gameturnparent.transform as RectTransform; transform2.sizeDelta = transform.sizeDelta; RectTransform transform3 = this.mAdTurnCtrl.transform as RectTransform; transform3.sizeDelta = transform.sizeDelta; this.mAdTurnCtrl.Init(); if (< > f__am$cache0 == null) {
protected override void OnInit() { this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) { this.resultType = data.type; WindowUI.CloseWindow(WindowID.WindowID_EventRewardTurn); }; if (< > f__am$cache0 == null) {
private void Update() { if (this.bStartLogin && (LocalSave.Instance.GetServerUserID() > 0L)) { WindowUI.CloseWindow(WindowID.WindowID_VideoPlay); WindowUI.ShowWindow(WindowID.WindowID_Login); } }
private void OnClickOK1() { GameLogic.Self.AddSkill(this.mData.getid, Array.Empty <object>()); GameLogic.Release.Form.RemoveID("AngelSkill", this.mData.formid); CInstance <TipsManager> .Instance.ShowSkill(this.mData.getid); WindowUI.CloseWindow(WindowID.WindowID_EventAngel); }
private void OnClickClose() { if (this.onEventClose != null) { this.onEventClose(); } WindowUI.CloseWindow(WindowID.WindowID_CardLevelUp); }
private void OnClickOK() { GameLogic.Self.AddSkill(this.mGetid, Array.Empty <object>()); GameLogic.Release.Form.RemoveID("DemonSkill", this.mFormid); CInstance <TipsManager> .Instance.ShowSkill(this.mGetid); GameLogic.Self.GetGoods(this.mLoseid); WindowUI.CloseWindow(WindowID.WindowID_EventDemon); }
private void OnClickButton() { WindowUI.CloseWindow(WindowID.WindowID_Active); GameLogic.Hold.BattleData.ActiveID = this.mData.ID; Debugger.Log("ActiveID = " + GameLogic.Hold.BattleData.ActiveID); GameLogic.Hold.BattleData.SetMode(this.mData.GetMode(), BattleSource.eActivity); GameLogic.Hold.Sound.PlayUI(0xf4243); WindowUI.ShowWindow(WindowID.WindowID_Battle); }
private void Awake() { this.Button_Challenge.onClick = delegate { WindowUI.CloseWindow(WindowID.WindowID_Challenge); GameLogic.Hold.BattleData.Challenge_UpdateMode(this.m_ID); GameLogic.Hold.Sound.PlayUI(0xf4243); WindowUI.ShowWindow(WindowID.WindowID_Battle); }; }
protected override void OnInit() { this.Button_Sure.onClick = delegate { WindowUI.CloseWindow(WindowID.WindowID_PopWindowOne); if ((this.mTransfer != null) && (this.mTransfer.callback != null)) { this.mTransfer.callback(); } }; if (< > f__am$cache0 == null) {
private void OnClickOK2() { int num = 40; if (GameLogic.Random((float)0f, (float)1f) < GameLogic.Self.m_EntityData.attribute.AngelR2Rate.Value) { num *= 2; } object[] args = new object[] { "HPRecoverFixed%", num }; GameLogic.Self.m_EntityData.ExcuteAttributes(Utils.FormatString("{0} + {1}", args)); CInstance <TipsManager> .Instance.ShowSkill(this.mRecoverHPId); WindowUI.CloseWindow(WindowID.WindowID_EventAngel); }
public virtual void CurrentOver(int index) { if ((index == (this.guidecount - 1)) && (this.process == 2)) { this.show_guide(false); this.process = 3; this.OnGuideEnd(); WindowUI.CloseWindow(WindowID.WindowID_Guide); } else if (!this.IsGuideOver()) { this.show_guide(false); } }
protected override void OnInit() { this.Button_Sure.onClick = delegate { if ((this.mTransfer != null) && (this.mTransfer.callback_sure != null)) { this.mTransfer.callback_sure(); } }; this.Button_Refuse.onClick = delegate { WindowUI.CloseWindow(WindowID.WindowID_ChangeAccount); if ((this.mTransfer != null) && (this.mTransfer.callback_confirm != null)) { this.mTransfer.callback_confirm(); } }; }
protected override void OnInit() { base.mWindowID = WindowID.WindowID_BoxOpen; this.copyitems.SetActive(false); this.mBoxCtrl.mScrollCtrl.OnScrollEnd = new Action(this.OnScrollEnd); this.Button_Shadow.onClick = new Action(this.OnClickShadow); this.mButtonClose.onClick = () => WindowUI.CloseWindow(base.mWindowID); this.mButtonRetry.onClick = delegate { if ((this.mTransfer != null) && (this.mTransfer.retry_callback != null)) { if (LocalSave.Instance.GetDiamond() < this.mTransfer.GetCurrentDiamond()) { WindowUI.ShowShopSingle(ShopSingleProxy.SingleType.eDiamond, null); } else { this.mTransfer.retry_callback(); } } }; }
public override void OnHandleNotification(INotification notification) { string name = notification.Name; object body = notification.Body; if (name != null) { if (name == "BATTLE_CHOOSESKILL_ACTION_END") { this.OnSkillActionEnd(); } else if (name == "BATTLE_CHOOSESKILL_SKILL_CHOOSE") { LocalSave.Instance.BattleIn_UpdateLevelUpSkills(0, null); int skillId = (int)body; GameLogic.Self.AddSkill(skillId, Array.Empty <object>()); CInstance <TipsManager> .Instance.ShowSkill(skillId); WindowUI.CloseWindow(WindowID.WindowID_ChooseSkill); } } }
private void CloseWindowInternal() { WindowUI.CloseWindow(WindowID.WindowID_BattleReborn); this.bStart = false; }
private void OnClickClose() { WindowUI.CloseWindow(WindowID.WindowID_MailInfo); }
private void OnClickCanccel() { WindowUI.CloseWindow(WindowID.WindowID_EventDemon); }
private void CloseUI() { WindowUI.CloseWindow(WindowID.WindowID_BoxOpenOne); }