示例#1
0
    public void SetVipInfo(byte i8Level)
    {
        VipSubInfo vipSubInfo = NrTSingleton <NrVipSubInfoManager> .Instance.Get_VipSubInfo(i8Level);

        if (vipSubInfo == null)
        {
            return;
        }
        string empty  = string.Empty;
        string empty2 = string.Empty;
        string empty3 = string.Empty;

        this.m_listVipInfo = NrTSingleton <NrTableVipManager> .Instance.GetValue();

        for (int i = 0; i < this.m_listVipInfo.Count; i++)
        {
            if (this.m_listVipInfo[i].i8VipLevel == i8Level)
            {
                this.m_currVipInfo = this.m_listVipInfo[i];
            }
        }
        if (i8Level == 0)
        {
            this.m_dtVIPMark1.SetTextureFromBundle(string.Format("UI/etc/{0}", vipSubInfo.strIconPath));
        }
        else
        {
            COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance();
            int num = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BATTLE_REPEAT) + (int)this.m_currVipInfo.i8Battle_Repeat_Add;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3345"),
                "count",
                this.m_currVipInfo.i8FriendSupportNum
            });

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3345"),
                "count",
                this.m_currVipInfo.i16FastBattle
            });

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty3, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3346"),
                "count",
                num
            });

            this.m_dtVIPMark2.SetTextureFromBundle(string.Format("UI/etc/{0}", vipSubInfo.strIconPath));
            this.m_lheart.SetText(empty);
            this.m_lSpeedUp.SetText(empty2);
            this.m_lBabelTower.SetText(empty3);
        }
        this.m_lVip.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strNote));
        this.m_lVipState.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strState));
        this.m_lVipTile.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strTitle));
    }
示例#2
0
    public void AddVipInfo(VIP_INFODATA _VipInfo)
    {
        VIP_INFODATA vIP_INFODATA = new VIP_INFODATA();

        vIP_INFODATA.i8VipLevel            = _VipInfo.i8VipLevel;
        vIP_INFODATA.i64NeedExp            = _VipInfo.i64NeedExp;
        vIP_INFODATA.i8MaxWill             = _VipInfo.i8MaxWill;
        vIP_INFODATA.i8WillChangeTime      = _VipInfo.i8WillChangeTime;
        vIP_INFODATA.i32FriendSupportItem  = _VipInfo.i32FriendSupportItem;
        vIP_INFODATA.i8FriendSupportNum    = _VipInfo.i8FriendSupportNum;
        vIP_INFODATA.i16FastBattle         = _VipInfo.i16FastBattle;
        vIP_INFODATA.i8Battle_Repeat_Add   = _VipInfo.i8Battle_Repeat_Add;
        vIP_INFODATA.i8TimeShopCount       = _VipInfo.i8TimeShopCount;
        vIP_INFODATA.i8TimeShopFreeRefresh = _VipInfo.i8TimeShopFreeRefresh;
        vIP_INFODATA.i8DailyDungeonReset   = _VipInfo.i8DailyDungeonReset;
        vIP_INFODATA.i8DailyDungeonDc      = _VipInfo.i8DailyDungeonDc;
        vIP_INFODATA.i8NewExplorationReset = _VipInfo.i8NewExplorationReset;
        this.m_VipInfoList.Add(vIP_INFODATA);
    }