protected override void OnInit()
 {
     this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) {
         this.resultType = data.type;
         WindowUI.CloseWindow(WindowID.WindowID_EventFirstGold);
     };
 }
Ejemplo n.º 2
0
 protected override void OnInit()
 {
     this.mTurnCtrl.TurnEnd = delegate(TurnTableType type) {
         this.resultType = type;
         WindowUI.CloseWindow(WindowID.WindowID_EventChect1);
     };
 }
Ejemplo n.º 3
0
    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)
     {
Ejemplo n.º 5
0
 private void Update()
 {
     if (this.bStartLogin && (LocalSave.Instance.GetServerUserID() > 0L))
     {
         WindowUI.CloseWindow(WindowID.WindowID_VideoPlay);
         WindowUI.ShowWindow(WindowID.WindowID_Login);
     }
 }
Ejemplo n.º 6
0
    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);
    }
Ejemplo n.º 7
0
 private void OnClickClose()
 {
     if (this.onEventClose != null)
     {
         this.onEventClose();
     }
     WindowUI.CloseWindow(WindowID.WindowID_CardLevelUp);
 }
Ejemplo n.º 8
0
    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);
    }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 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);
     };
 }
Ejemplo n.º 11
0
 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)
     {
Ejemplo n.º 12
0
    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);
    }
Ejemplo n.º 13
0
 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();
         }
     };
 }
Ejemplo n.º 15
0
 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();
             }
         }
     };
 }
Ejemplo n.º 16
0
    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);
            }
        }
    }
Ejemplo n.º 17
0
 private void CloseWindowInternal()
 {
     WindowUI.CloseWindow(WindowID.WindowID_BattleReborn);
     this.bStart = false;
 }
Ejemplo n.º 18
0
 private void OnClickClose()
 {
     WindowUI.CloseWindow(WindowID.WindowID_MailInfo);
 }
Ejemplo n.º 19
0
 private void OnClickCanccel()
 {
     WindowUI.CloseWindow(WindowID.WindowID_EventDemon);
 }
Ejemplo n.º 20
0
 private void CloseUI()
 {
     WindowUI.CloseWindow(WindowID.WindowID_BoxOpenOne);
 }