public void ShowMyGradeList()
    {
        NrMyCharInfo     kMyCharInfo    = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        this.m_lbMyRankList.Clear();
        if (kMyCharInfo.ColosseumGrade == 0)
        {
            this.m_dtBronzeExplain.Visible  = true;
            this.m_laBronzeExplain1.Visible = true;
            this.m_laBronzeExplain2.Visible = true;
            this.m_laBronzeWinCount.Visible = true;
            string text  = string.Empty;
            string empty = string.Empty;
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2208");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "count1",
                kMyCharInfo.ColosseumWinCount,
                "count2",
                COLOSSEUM_CONSTANT_Manager.GetInstance().GetValue(eCOLOSSEUM_CONSTANT.eCOLOSSEUM_CONSTANT_BRONZE_UPGRADE_WINCOUNT)
            });

            this.m_laBronzeWinCount.SetText(empty);
        }
        else
        {
            List <COLOSSEUM_MYGRADE_USERINFO> list = kMyCharInfo.GeColosseumMyGradeUserList();
            if (list == null)
            {
                return;
            }
            int num = 1;
            foreach (COLOSSEUM_MYGRADE_USERINFO current in list)
            {
                NewListItem item;
                if (kMyCharInfo.GetColosseumMyGradeRank() == num)
                {
                    item = this.SetColosseumListInfo(new COLOSSEUM_MYGRADE_USERINFO
                    {
                        i64PersonID            = charPersonInfo.GetPersonID(),
                        szCharName             = TKString.StringChar(charPersonInfo.GetCharName()),
                        i32ColosseumGradePoint = kMyCharInfo.ColosseumGradePoint
                    }, num);
                }
                else
                {
                    item = this.SetColosseumListInfo(current, num);
                }
                this.m_lbMyRankList.Add(item);
                num++;
            }
            this.m_lbMyRankList.RepositionItems();
        }
    }
    public void ShowMyinfo()
    {
        string       text        = string.Empty;
        string       empty       = string.Empty;
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        if (charPersonInfo == null)
        {
            return;
        }
        if (this.show_type == eCOLOSSEUMRANK_SHOWTYPE.eCOLOSSEUMRANK_SHOWTYPE_ROTALLEAGUERANK || this.show_type == eCOLOSSEUMRANK_SHOWTYPE.eCOLOSSEUMRANK_SHOWTYPE_TOPSCORERANK)
        {
            this.m_laTargetRank.Text     = " ";
            this.m_laTargetCharName.Text = " ";
            this.m_laMatchPoint.Text     = " ";
            this.m_dtMyrankBG.Visible    = false;
            this.m_dtMyRankBG1.Visible   = false;
            this.m_dtMyRankBG2.Visible   = false;
        }
        else if (kMyCharInfo.ColosseumGrade == 0)
        {
            this.m_laTargetRank.Text     = " ";
            this.m_laTargetCharName.Text = " ";
            this.m_laMatchPoint.Text     = " ";
            this.m_dtMyrankBG.Visible    = false;
            this.m_dtMyRankBG1.Visible   = false;
            this.m_dtMyRankBG2.Visible   = false;
        }
        else
        {
            this.m_dtMyrankBG.Visible    = true;
            this.m_dtMyRankBG1.Visible   = true;
            this.m_dtMyRankBG2.Visible   = true;
            this.m_laTargetRank.Text     = kMyCharInfo.GetColosseumMyGradeRank().ToString();
            this.m_laTargetCharName.Text = charPersonInfo.GetCharName();
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2091");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "ratingpoint",
                1000 + kMyCharInfo.ColosseumGradePoint
            });

            this.m_laMatchPoint.Text = empty;
        }
    }
    public void SetInfo()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        this.m_laGradeRank.Text = myCharInfo.GetColosseumMyGradeRank().ToString();
        this.m_laCharName.Text  = charPersonInfo.GetCharName();
        int num = 1000 + myCharInfo.ColosseumGradePoint;

        this.m_laGradePoint.Text = num.ToString();
        if (this.m_OldGradeRank <= 0 || this.m_OldGradeRank > myCharInfo.GetColosseumMyGradeRank())
        {
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_RANKUP", this.m_dtRankChange, this.m_dtRankChange.GetSize());

            NrSound.ImmedatePlay("UI_SFX", "COLOSSEUM", "RANKUP");
        }
        else
        {
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_RANKDOWN", this.m_dtRankChange, this.m_dtRankChange.GetSize());

            NrSound.ImmedatePlay("UI_SFX", "COLOSSEUM", "RANKDOWN");
        }
    }
Example #4
0
    public override bool CheckGameGuideOnce()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        int @int = PlayerPrefs.GetInt("Colosseum GradeRank", 0);
        int int2 = PlayerPrefs.GetInt("Colosseum Grade", 0);

        if (myCharInfo.ColosseumGrade > 0)
        {
            if ((int)myCharInfo.ColosseumGrade == int2)
            {
                if (@int != myCharInfo.GetColosseumMyGradeRank() || @int == 0)
                {
                    return(true);
                }
            }
            else
            {
                PlayerPrefs.SetInt("Colosseum GradeRank", myCharInfo.GetColosseumMyGradeRank());
                PlayerPrefs.SetInt("Colosseum Grade", (int)myCharInfo.ColosseumGrade);
            }
        }
        return(false);
    }
Example #5
0
    public override void ExcuteGameGuide()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        int @int = PlayerPrefs.GetInt("Colosseum GradeRank", 0);
        ColosseumChangeRankDlg colosseumChangeRankDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COLOSSEUM_CHANGERANK_DLG) as ColosseumChangeRankDlg;

        if (colosseumChangeRankDlg != null)
        {
            colosseumChangeRankDlg.ShowChangeRank(@int);
            int colosseumMyGradeRank = myCharInfo.GetColosseumMyGradeRank();
            int colosseumGrade       = (int)myCharInfo.ColosseumGrade;
            PlayerPrefs.SetInt("Colosseum GradeRank", colosseumMyGradeRank);
            PlayerPrefs.SetInt("Colosseum Grade", colosseumGrade);
        }
        this.InitData();
    }
Example #6
0
    public void ShowInfo()
    {
        string       text       = string.Empty;
        string       text2      = string.Empty;
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo.ColosseumGrade == 0)
        {
            this.m_laBronzeExplain.Visible = true;
        }
        else
        {
            this.m_laBronzeExplain.Visible = false;
        }
        string gradeTexture = NrTSingleton <NrTable_ColosseumRankReward_Manager> .Instance.GetGradeTexture(myCharInfo.ColosseumGrade);

        this.m_dtLeagureIcon.SetTexture(gradeTexture);
        string gradeTextKey = NrTSingleton <NrTable_ColosseumRankReward_Manager> .Instance.GetGradeTextKey(myCharInfo.ColosseumGrade);

        this.m_lbLeague.SetText(gradeTextKey);
        int num = 1000 + myCharInfo.ColosseumGradePoint;

        if (myCharInfo.ColosseumOldRank > 0)
        {
            base.SetShowLayer(1, true);
        }
        else
        {
            base.SetShowLayer(1, false);
        }
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("446");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "point",
            num
        });

        this.m_lbColosseumMatchPoint.SetText(text2);
        if (myCharInfo.ColosseumGrade <= 0)
        {
            this.m_lbColosseumRank.Visible = false;
        }
        else
        {
            int colosseumMyGradeRank = myCharInfo.GetColosseumMyGradeRank();
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("447");

            if (colosseumMyGradeRank > 0)
            {
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                {
                    text,
                    "rank",
                    colosseumMyGradeRank
                });
            }
            else
            {
                text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("292");
            }
            this.m_lbColosseumRank.SetText(text2);
        }
    }