public void SetUserTextureUpdate(Texture2D _Texture, long i64PersonID) { for (int i = 0; i < this.m_MemberList.Count; i++) { NewGuildMember newGuildMember = this.m_MemberList[i]; if (newGuildMember == null) { return; } if (i64PersonID == newGuildMember.GetPersonID()) { NewListItem newListItem = new NewListItem(this.m_nlbMember.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, true); newListItem.SetListItemData(1, _Texture, null, null, null, null); newListItem.SetListItemData(2, newGuildMember.GetCharName(), null, null, null); newListItem.SetListItemData(3, string.Empty, newGuildMember, new EZValueChangedDelegate(this.ClickRightMenu), null); string empty = string.Empty; string empty2 = string.Empty; NewGuildMemberDlg.CurrentLocationName(newGuildMember, ref empty, ref empty2); newListItem.SetListItemData(4, NrTSingleton <CTextParser> .Instance.GetTextColor(empty2) + empty, null, null, null); string rankText = newGuildMember.GetRankText(); newListItem.SetListItemData(5, rankText, null, null, null); newListItem.SetListItemData(6, newGuildMember.GetLevel().ToString(), null, null, null); newListItem.SetListItemData(7, newGuildMember.GetContribute().ToString(), null, null, null); newListItem.Data = newGuildMember; this.m_nlbMember.RemoveAdd(i, newListItem); this.m_nlbMember.RepositionItems(); break; } } }
public bool SetGuildMemberUpdate(NewGuildMember GuildMember, int iIndex) { if (GuildMember == null) { return(false); } NewListItem newListItem = new NewListItem(this.m_nlbMember.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, true); if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(GuildMember.GetFaceCharKind()) == null) { return(false); } EVENT_HERODATA eventHeroCharFriendCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharFriendCode(GuildMember.GetFaceCharKind()); if (eventHeroCharFriendCode != null) { newListItem.SetListItemData(0, "Win_I_EventSol", null, null, null); newListItem.EventMark = true; } newListItem.SetListItemData(1, this.GetGuildMemberPortraitInfo(GuildMember), null, null, null); newListItem.SetListItemData(2, GuildMember.GetCharName(), null, null, null); newListItem.SetListItemData(3, string.Empty, GuildMember, new EZValueChangedDelegate(this.ClickRightMenu), null); string empty = string.Empty; string empty2 = string.Empty; bool result = NewGuildMemberDlg.CurrentLocationName(GuildMember, ref empty, ref empty2); newListItem.SetListItemData(4, NrTSingleton <CTextParser> .Instance.GetTextColor(empty2) + empty, null, null, null); string rankText = GuildMember.GetRankText(); newListItem.SetListItemData(5, rankText, null, null, null); newListItem.SetListItemData(6, GuildMember.GetLevel().ToString(), null, null, null); newListItem.SetListItemData(7, GuildMember.GetContribute().ToString(), null, null, null); newListItem.Data = GuildMember; this.m_nlbMember.Add(newListItem); this.m_nlbMember.RepositionItems(); return(result); }
public void SetInfo() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } string text = string.Empty; string text2 = string.Empty; BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo(this.m_GuildBossFloor); if (babelGuildBossinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(babelGuildBossinfo.m_nBossKind); this.m_laGuildBossName.Text = charKindInfo.GetName(); this.m_dtBossImg.SetTexture(eCharImageType.LARGE, charKindInfo.GetCharKind(), -1, string.Empty); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1808"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", ANNUALIZED.Convert(this.m_i32CurBossHp), "count2", ANNUALIZED.Convert(babelGuildBossinfo.m_nBossMaxHP) }); this.m_laGuildBossHp.Text = text2; float num = (float)this.m_i32CurBossHp / (float)babelGuildBossinfo.m_nBossMaxHP; this.m_dtBossCurHP.SetSize(this.BOSSHP_BAR_WIDTH * num, this.m_dtBossCurHP.GetSize().y); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelGuildBossinfo.m_nBaseReward_ItemUnique), "count", babelGuildBossinfo.m_nBaseReward_ItemNum }); this.m_lbRewardBaseItemNum.Text = text2; int num2 = (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel() >= babelGuildBossinfo.m_nReward_BaseMoney_Max) ? babelGuildBossinfo.m_nReward_BaseMoney_Max : (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel()); this.m_laBasicReward.Text = ANNUALIZED.Convert(num2); this.m_dtRewardBaseItem.SetTexture(NrTSingleton <ItemManager> .Instance.GetItemTexture(babelGuildBossinfo.m_nBaseReward_ItemUnique)); this.SortMemberInfo(); int num3 = 1; bool flag = false; bool flag2 = false; this.m_lbGuildMemberList.Clear(); for (int i = 0; i < this.m_listMemberInfo.Count; i++) { NEWGUILD_BOSS_PLAYER_INFO nEWGUILD_BOSS_PLAYER_INFO = this.m_listMemberInfo[i]; NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(nEWGUILD_BOSS_PLAYER_INFO.i64PersonID); if (memberInfoFromPersonID != null) { if (this.m_byRoomState != 3 && nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID) { flag2 = true; } bool flag3 = false; NewListItem newListItem = new NewListItem(this.m_lbGuildMemberList.ColumnNum, true, string.Empty); Texture2D portrait = memberInfoFromPersonID.GetPortrait(); if (this.m_byRoomState == 3) { if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID) { flag = true; } if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == this.ClearPersonID) { this.m_itClearUserFace.Visible = true; if (portrait != null) { this.m_itClearUserFace.SetTexture(portrait); } else { NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = memberInfoFromPersonID.GetFaceCharKind(); nkListSolInfo.SolLevel = memberInfoFromPersonID.GetLevel(); nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique()); nkListSolInfo.SolGrade = -1; this.m_itClearUserFace.SetSolImageTexure(eCharImageType.SMALL, nkListSolInfo, false); } this.m_lbClearUserName.SetText(memberInfoFromPersonID.GetCharName()); this.m_lbClearUserName.Visible = true; newListItem.SetListItemData(21, true); newListItem.SetListItemData(8, false); flag3 = true; } } if (!flag3) { newListItem.SetListItemData(12, false); } newListItem.SetListItemData(2, memberInfoFromPersonID.GetCharName(), null, null, null); text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1915"); newListItem.SetListItemData(3, text2, null, null, null); float num4 = (float)nEWGUILD_BOSS_PLAYER_INFO.i32Damage / (float)babelGuildBossinfo.m_nBossMaxHP; float num5 = num4 * 340f; newListItem.SetListItemData(5, string.Empty, num5, null, null); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1916"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", ANNUALIZED.Convert(nEWGUILD_BOSS_PLAYER_INFO.i32Damage), "count2", (int)(num4 * 100f) }); newListItem.SetListItemData(6, text2, null, null, null); if (portrait != null) { newListItem.SetListItemData(7, portrait, null, null, null, null); } else { newListItem.SetListItemData(7, new NkListSolInfo { SolCharKind = memberInfoFromPersonID.GetFaceCharKind(), SolLevel = memberInfoFromPersonID.GetLevel(), SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique()), SolGrade = -1 }, null, null, null); } if (!flag3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1186"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count", num3 }); newListItem.SetListItemData(9, text2, null, null, null); } else { newListItem.SetListItemData(9, false); } newListItem.SetListItemData(10, memberInfoFromPersonID.GetRankText(), null, null, null); this.m_lbGuildMemberList.Add(newListItem); num3++; } } this.m_lbGuildMemberList.RepositionItems(); if (flag2 && !flag) { this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3292")); } else { this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("633")); } if (!flag) { Button expr_596 = this.m_btGuildBossStart; expr_596.Click = (EZValueChangedDelegate)Delegate.Combine(expr_596.Click, new EZValueChangedDelegate(this.OnClickStart)); } else { this.m_btGuildBossStart.SetEnabled(false); } if (this.m_byRoomState == 3) { this.m_dtBossVictoyImg.Visible = true; this.m_dtClearUserBG.Visible = true; this.m_dtClearBG.Visible = true; } }