public void SetDetailInfoSub_RaidLeader(int iIndex, ApplyInfo Info, int iSelectIndex) { this.m_dtAllySelectImage[iIndex].Visible = false; this.m_itAllySelectSolLarge[iIndex].ClearData(); this.m_itAllySelectSolLarge[iIndex].Visible = false; this.m_btAllySelectSolLarge[iIndex].Visible = false; this.m_dtAllyLeaderLarge[iIndex].Visible = false; this.m_dtAllyLeaderSmall[iIndex].Visible = false; this.m_itAllySelectSolSmall[iIndex].ClearData(); if (Info == null) { return; } if (Info.GetLeader() == 1) { if (iIndex == iSelectIndex) { this.m_dtAllyLeaderLarge[iIndex].Visible = true; } else { this.m_dtAllyLeaderSmall[iIndex].Visible = true; } } GUILDWAR_APPLY_MILITARY_DETAIL_INFO gUILDWAR_APPLY_MILITARY_DETAIL_INFO = Info.GetDetailInfo(0); if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO != null) { this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO, this.m_itAllySelectSolLarge[iIndex]); this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO, this.m_itAllySelectSolSmall[iIndex]); if (iIndex == iSelectIndex) { this.m_itAllySelectSolSmall[iIndex].Visible = false; this.m_btAllySelectSolSmall[iIndex].Visible = false; this.m_itAllySelectSolLarge[iIndex].Visible = true; this.m_btAllySelectSolLarge[iIndex].Visible = true; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1639"), "count", Info.GetCharLevel(), "targetname", Info.GetCharName() }); this.m_lbUserName.SetText(this.m_strText); } else { this.m_itAllySelectSolSmall[iIndex].Visible = true; this.m_btAllySelectSolSmall[iIndex].Visible = true; } } if (iIndex == iSelectIndex) { for (int i = 0; i < 9; i++) { gUILDWAR_APPLY_MILITARY_DETAIL_INFO = Info.GetDetailInfoBattlePos(i); if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO == null) { this.m_itSolInfo[i].Visible = false; } else if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO.i16BattlePos >= 0 && gUILDWAR_APPLY_MILITARY_DETAIL_INFO.i16BattlePos < 9) { NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.ShowCombat = true; nkListSolInfo.FightPower = gUILDWAR_APPLY_MILITARY_DETAIL_INFO.i64FightPower; nkListSolInfo.SolLevel = gUILDWAR_APPLY_MILITARY_DETAIL_INFO.i16level; nkListSolInfo.SolCharKind = gUILDWAR_APPLY_MILITARY_DETAIL_INFO.i32CharKind; nkListSolInfo.SolGrade = (int)gUILDWAR_APPLY_MILITARY_DETAIL_INFO.ui8grade; nkListSolInfo.ShowLevel = false; this.m_itSolInfo[i].Visible = true; this.m_itSolInfo[i].SetSolImageTexure(eCharImageType.SMALL, nkListSolInfo, false); } } } }
public void SelectAllyUserInfo(int iSelectIndex) { if (iSelectIndex < 0 || iSelectIndex >= 9) { return; } ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)iSelectIndex); if (applyInfoFromRaidBattlePos == null) { return; } ApplyInfo applyInfoFromRaidBattlePos2 = this.GetApplyInfoFromRaidBattlePos((byte)this.m_iOldSelectIndex); this.m_iCurSelectIndex = iSelectIndex; this.m_itAllySelectSolLarge[this.m_iOldSelectIndex].Visible = false; this.m_btAllySelectSolLarge[this.m_iOldSelectIndex].Visible = false; this.m_dtAllyLeaderLarge[this.m_iOldSelectIndex].Visible = false; this.m_itAllySelectSolSmall[this.m_iOldSelectIndex].Visible = true; this.m_btAllySelectSolSmall[this.m_iOldSelectIndex].Visible = true; if (applyInfoFromRaidBattlePos2 != null && applyInfoFromRaidBattlePos2.GetLeader() == 1) { this.m_dtAllyLeaderSmall[this.m_iOldSelectIndex].Visible = true; } this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetLeader() == 1) { this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible = true; } this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = false; this.m_iOldSelectIndex = iSelectIndex; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1639"), "count", applyInfoFromRaidBattlePos.GetCharLevel(), "targetname", applyInfoFromRaidBattlePos.GetCharName() }); this.m_lbUserName.SetText(this.m_strText); for (int i = 0; i < 9; i++) { GUILDWAR_APPLY_MILITARY_DETAIL_INFO detailInfoBattlePos = applyInfoFromRaidBattlePos.GetDetailInfoBattlePos(i); if (detailInfoBattlePos == null) { this.m_itSolInfo[i].ClearData(); this.m_itSolInfo[i].Visible = false; } else if (detailInfoBattlePos.i16BattlePos >= 0 && detailInfoBattlePos.i16BattlePos < 9) { NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.ShowCombat = true; nkListSolInfo.FightPower = detailInfoBattlePos.i64FightPower; nkListSolInfo.SolLevel = detailInfoBattlePos.i16level; nkListSolInfo.SolCharKind = detailInfoBattlePos.i32CharKind; nkListSolInfo.SolGrade = (int)detailInfoBattlePos.ui8grade; nkListSolInfo.ShowLevel = false; this.m_itSolInfo[i].Visible = true; this.m_itSolInfo[i].SetSolImageTexure(eCharImageType.SMALL, nkListSolInfo, false); } } }