public void SetLevel(byte i8Level, bool bVipLevelUpCheck) { if (bVipLevelUpCheck) { NrTSingleton <FormsManager> .Instance.RequestAttachUIEffect("Effect/Instant/fx_firework_mobile", this.m_dtEffect, this.m_dtEffect.GetSize()); this.m_bVipLevelUp = true; } if (i8Level <= 0 || (int)i8Level > this.MAX_SLOT_COUNT) { this.m_nCurrMyVipLevel = 0; base.ShowLayer(1, 3); } else { this.m_nCurrMyVipLevel = i8Level; base.ShowLayer(1, 4); } VipSubInfo vipSubInfo = NrTSingleton <NrVipSubInfoManager> .Instance.Get_VipSubInfo(i8Level); if (vipSubInfo == null) { return; } this.m_dtMyVipMark.SetTextureFromBundle(string.Format("UI/etc/{0}", vipSubInfo.strIconPath)); this.m_lVipLevel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strTitle.ToString()); this.SetVipExp(i8Level); this.SetData(i8Level); }
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)); }
public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { VipSubInfo vipSubInfo = new VipSubInfo(); vipSubInfo.SetData(data); NrTSingleton <NrVipSubInfoManager> .Instance.Set_Value(vipSubInfo); } return(true); }
public void Set_Value(VipSubInfo a_cValue) { if (this.m_dicVipSubInfo.ContainsKey(a_cValue.byVipLevel)) { TsLog.LogError("VipSubInfo Duplicate Data Level={0}!!!!!!", new object[] { a_cValue.byVipLevel }); this.m_dicVipSubInfo.Remove(a_cValue.byVipLevel); } this.m_dicVipSubInfo.Add(a_cValue.byVipLevel, a_cValue); }
public void SetData(byte i8Level) { for (int i = 0; i < 11; i++) { VipSubInfo vipSubInfo = NrTSingleton <NrVipSubInfoManager> .Instance.Get_VipSubInfo((byte)i); NewListItem newListItem = new NewListItem(this.m_nlbVip.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(vipSubInfo.strTitle.ToString()), vipSubInfo.byVipLevel, new EZValueChangedDelegate(this.ClickVip), null); newListItem.SetListItemData(1, false); if ((int)this.m_nCurrMyVipLevel == i) { newListItem.SetListItemData(2, true); } else { newListItem.SetListItemData(2, false); } this.m_nlbVip.Add(newListItem); } this.m_nlbVip.RepositionItems(); this.SetVipInfo(i8Level); }