예제 #1
0
    private void M_requestLaddersInfo(string msg)
    {
        if (!msg.Equals("ok"))
        {
            return;
        }
        LaddersGetInfoFPort fport = FPortManager.Instance.getFPort <LaddersGetInfoFPort> ();

        fport.apply((hasApply) => {
            if (hasApply)
            {
                UiManager.Instance.switchWindow <LaddersWindow> ((win) => {
                    win.init();
                    win.lastPrestigeLevel = LaddersManagement.Instance.M_getCurrentPlayerTitle().index;
                    if (LaddersManagement.Instance.Award.canReceive)
                    {
                        UiManager.Instance.openDialogWindow <LaddersRankRewardWindow> ((win1) => {
                            win1.closeCallback = win.showPrestigeLevel;
                        });
                    }
                });
            }
            else
            {
                M_clickLadders();
            }
        });
    }
예제 #2
0
    /// <summary>
    /// 领完奖励看看声望是否能升级
    /// </summary>
    private void showHapply()
    {
        LaddersGetInfoFPort newFport = FPortManager.Instance.getFPort <LaddersGetInfoFPort> ();

        newFport.apply((hasApply) => {
            if (fatherWindow != null)
            {
                (fatherWindow as LaddersWindow).M_updateView();
                (fatherWindow as LaddersWindow).M_onReceiveChestBox();
            }
        });
    }
예제 #3
0
 /// <summary>
 /// 刷新对手后回调
 /// </summary>
 /// <param name="_msg">_msg.</param>
 private void M_onRefreshCmp(string _msg)
 {
     if (_msg == "ok")
     {
         LaddersGetInfoFPort fport = FPortManager.Instance.getFPort <LaddersGetInfoFPort> ();
         fport.apply(M_onReGetInfoCmp);
     }
     else
     {
         MaskWindow.UnlockUI();
     }
 }
예제 #4
0
    /// <summary>
    /// 断线重连
    /// </summary>
    public override void OnNetResume()
    {
        base.OnNetResume();
        tempV = StorageManagerment.Instance.tmpStorageVersion;
        LaddersGetInfoFPort newFport = FPortManager.Instance.getFPort <LaddersGetInfoFPort> ();

        newFport.apply((hasApply) =>
        {
            //LaddersManagement.Instance.CurrentOppPlayer = null;
            M_updateView();
            lastLadderRank = LaddersManagement.Instance.currentPlayerRank;
        });
        M_updateView();
    }