public void ChangeRaidBattlePos(byte iChangeCurSelectIndex, byte iChangeOldSelectIndex) { ApplyInfo applyInfoFromMilitaryID = this.GetApplyInfoFromMilitaryID(this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex]); GUILDWAR_APPLY_MILITARY_DETAIL_INFO gUILDWAR_APPLY_MILITARY_DETAIL_INFO = null; ApplyInfo applyInfoFromMilitaryID2 = this.GetApplyInfoFromMilitaryID(this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex]); GUILDWAR_APPLY_MILITARY_DETAIL_INFO gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 = null; long num = this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex]; this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex] = this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex]; this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex] = num; if (applyInfoFromMilitaryID != null) { gUILDWAR_APPLY_MILITARY_DETAIL_INFO = applyInfoFromMilitaryID.GetDetailInfo(0); if (applyInfoFromMilitaryID.GetLeader() == 1) { this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = true; } else { this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = false; } } if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO != null) { this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO, this.m_itAllySelectSolSmall[(int)iChangeOldSelectIndex]); } else { this.m_itAllySelectSolSmall[(int)iChangeOldSelectIndex].ClearData(); this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = false; } if (applyInfoFromMilitaryID2 != null) { gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 = applyInfoFromMilitaryID2.GetDetailInfo(0); if (applyInfoFromMilitaryID2.GetLeader() == 1) { this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = true; } else { this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = false; } } if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 != null) { this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO2, this.m_itAllySelectSolSmall[this.m_iChangeCurSelectIndex]); } else { this.m_itAllySelectSolSmall[this.m_iChangeCurSelectIndex].ClearData(); this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = false; } }
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); } } } }