コード例 #1
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();
             }
         }
     }
 }
コード例 #2
0
    public void ClickLeaderRaidBattlePosChange(IUIObject obj)
    {
        bool flag = false;

        if (this.m_eMode == NewGuildWarDetailInfoDlg.eMODE.eMODE_NORMAL)
        {
            this.m_eMode = NewGuildWarDetailInfoDlg.eMODE.eMODE_CHANGE;
            this.m_btLeaderChange.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2514"));
        }
        else
        {
            this.m_eMode = NewGuildWarDetailInfoDlg.eMODE.eMODE_NORMAL;
            this.m_btLeaderChange.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2513"));
            flag = this.ShowChangeMessageBox();
        }
        if (!flag)
        {
            this.ChangeMode(this.m_eMode);
        }
    }