private void Set_Init() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (kMyCharInfo.GetAutoBattle() == E_BF_AUTO_TYPE.AUTO) { this.m_bIsAuto = true; } else { this.m_bIsAuto = false; } this.Set_AutoBattleTexture(this.m_bIsAuto); PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg; if (plunderSolListDlg != null) { base.SetLocation(plunderSolListDlg.GetLocationX() + plunderSolListDlg.GetSizeX(), GUICamera.height - base.GetSizeY(), base.GetLocation().z); } }
public override void SetComponent() { this.m_btInvite = (base.GetControl("BT_InviteAlly") as Button); this.m_btInvite.Click = new EZValueChangedDelegate(this.OnClickInviteFriend); this.m_btInvite.Hide(true); this.m_btInvite.EffectAni = false; this.m_btInitiative = (base.GetControl("BT_Initiative") as Button); Button expr_61 = this.m_btInitiative; expr_61.Click = (EZValueChangedDelegate)Delegate.Combine(expr_61.Click, new EZValueChangedDelegate(this.OnClickSetInitiative)); this.m_btInitiative.EffectAni = false; this.m_btChat = (base.GetControl("BT_Chat") as Button); this.m_btChat.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1922"); Button expr_C4 = this.m_btChat; expr_C4.Click = (EZValueChangedDelegate)Delegate.Combine(expr_C4.Click, new EZValueChangedDelegate(this.ChatDlg)); this.m_bChatNew = (base.GetControl("Box_New") as Box); this.m_bChatNew.Visible = false; this.m_lbChat = (base.GetControl("Label_Chat") as Label); this.m_lbInvite = (base.GetControl("Label_InviteAlly") as Label); this.m_lbInitiative = (base.GetControl("Label_Initiative") as Label); this.tf_chat = (base.GetControl("TF_Chat") as TextField); this.tf_chat.SetCommitDelegate(new EZKeyboardCommitDelegate(this.OnInputText)); this.tf_chat.Visible = false; this.m_btAuto = (base.GetControl("BT_AUTO") as Button); this.m_btAuto.Click = new EZValueChangedDelegate(this.ClickAutoBattleCheck); this.m_dtAuto = (base.GetControl("DT_AUTO") as DrawTexture); if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID) { this.tf_chat.Visible = true; MYTHRAID_PERSON mythRaidLeaderInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidLeaderInfo(); if (mythRaidLeaderInfo != null) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID) { this.m_btInvite.Click = new EZValueChangedDelegate(this.OnClickInviteFriend_MythRaid); this.m_btInvite.Hide(false); } else { this.m_btInvite.Hide(false); this.m_btInvite.SetEnabled(false); } } } else { BABELTOWER_PERSON babelLeaderInfo = SoldierBatch.BABELTOWER_INFO.GetBabelLeaderInfo(); if (babelLeaderInfo != null) { NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (char2.GetPersonID() == babelLeaderInfo.nPartyPersonID) { this.m_btInvite.Hide(false); } else { this.m_btInvite.Hide(false); this.m_btInvite.SetEnabled(false); } } } PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg; if (plunderSolListDlg != null) { base.SetLocation(plunderSolListDlg.GetLocationX() + plunderSolListDlg.GetSizeX(), -(GUICamera.height - base.GetSizeY()), base.GetLocation().z); } base.DonotDepthChange(1005f); if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP) { this.m_btChat.Visible = false; this.m_lbChat.Visible = false; this.m_btInvite.Visible = false; this.m_lbInvite.Visible = false; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (kMyCharInfo.GetAutoBattle() == E_BF_AUTO_TYPE.AUTO) { this.isAutoOn = true; } else { this.isAutoOn = false; } this.SetAutoBattleTexture(this.isAutoOn); }