コード例 #1
0
    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;
        }
    }
コード例 #2
0
 public void ChangeMode(NewGuildWarDetailInfoDlg.eMODE eMode)
 {
     this.m_iChangeCurSelectIndex = -1;
     this.m_iChangeOldSelectIndex = -1;
     for (int i = 0; i < 9; i++)
     {
         this.m_i64ChangeMilitaryID[i] = 0L;
     }
     if (eMode == NewGuildWarDetailInfoDlg.eMODE.eMODE_NORMAL)
     {
         this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true;
         this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true;
         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_btLeaderCancel.Visible = true;
         for (int i = 0; i < 9; i++)
         {
             this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall));
             this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos));
         }
         this.SetDetailInfoSub(this.m_iCurSelectIndex);
     }
     else
     {
         this.m_dtAllySelectImage[this.m_iCurSelectIndex].Visible    = false;
         this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false;
         this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false;
         this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible    = false;
         this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true;
         this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true;
         ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)this.m_iCurSelectIndex);
         if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetLeader() == 1)
         {
             this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = true;
         }
         this.m_btLeaderCancel.Visible = false;
         for (int i = 0; i < 9; i++)
         {
             this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall));
             this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos));
             applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)i);
             if (applyInfoFromRaidBattlePos != null)
             {
                 this.m_i64ChangeMilitaryID[i] = applyInfoFromRaidBattlePos.GetMilitaryID();
             }
         }
     }
 }
コード例 #3
0
    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);
                }
            }
        }
    }
コード例 #4
0
    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);
            }
        }
    }