public void On_ClickCombination(IUIObject a_cObject) { SolCombination_Dlg solCombination_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLCOMBINATION_DLG) as SolCombination_Dlg; if (solCombination_Dlg == null) { Debug.LogError("ERROR, SolGuide_Dlg.cs, On_ClickCombination(), SolCombination_Dlg is Null"); return; } if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP) { solCombination_Dlg.MakeCombinationSolUI(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetOwnBattleMinePossibleKindList(), -1); } else if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_NEWEXPLORATION) { PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg; if (plunderSolListDlg != null) { solCombination_Dlg.MakeCombinationSolUI(SoldierBatch_SolList.GetSolKindList(eSOLDIER_BATCH_MODE.MODE_NEWEXPLORATION), -1); } } else { solCombination_Dlg.MakeCombinationSolUI(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetOwnBattleReadyAndReadySolKindList(), -1); } }
public override void ChangedResolution() { base.ChangedResolution(); PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg; if (plunderSolListDlg != null) { base.SetLocation(plunderSolListDlg.GetLocationX() + plunderSolListDlg.GetSizeX(), 0f, base.GetLocation().z); } }
public override void SetComponent() { this.m_btAuto = (base.GetControl("BT_AUTOBATCH") as Button); Button expr_1C = this.m_btAuto; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnClickAuto)); this.m_btInitiative = (base.GetControl("BT_Initiative") as Button); Button expr_59 = this.m_btInitiative; expr_59.Click = (EZValueChangedDelegate)Delegate.Combine(expr_59.Click, new EZValueChangedDelegate(this.OnClickInitiative)); this.m_btChat = (base.GetControl("BT_Chat") as Button); Button expr_96 = this.m_btChat; expr_96.Click = (EZValueChangedDelegate)Delegate.Combine(expr_96.Click, new EZValueChangedDelegate(this.OnClickChat)); 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() { PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg; if (plunderSolListDlg != null) { base.SetLocation(plunderSolListDlg.GetLocationX() + plunderSolListDlg.GetSizeX(), base.GetLocationY(), base.GetLocation().z); } this.cl_party = (base.GetControl("CL_Party") as ChatLabel); this.cl_party.RemoveBoxCollider(); this.cl_guild = (base.GetControl("CL_Guild") as ChatLabel); this.cl_guild.RemoveBoxCollider(); this.bt_ChatChange = (base.GetControl("BT_ChatChange") as Button); this.bt_ChatChange2 = (base.GetControl("BT_ChatChange2") as Button); this.bt_ChatChange.Click = new EZValueChangedDelegate(this.OnClickChangeChatType); this.bt_ChatChange2.Click = new EZValueChangedDelegate(this.OnClickChangeChatType); this.lb_Chat = (base.GetControl("LB_Chat") as Label); this.lb_Chat.Text = NrTSingleton <CTextParser> .Instance.GetTextColor(ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL)) + NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2138"); this.box_chat = (base.GetControl("BOX_Chat") as Box); this.box_chat.Visible = false; base.SetShowLayer(2, false); }
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); }