private void SetData(CHAT_TYPE type, string name, string msg, ITEM linkItem, string color) { this.type = type; this.name = ChatManager.GetChatFrontString(name, type); this.msg = msg; this.linkItem = linkItem; if (string.Empty != color && string.Empty != color) { this.color = color; } else { this.color = MainChatDlg.GetChatColorKey(type); } }
public void SetChatFocus() { IKeyFocusable keyFocusable = NrTSingleton <UIManager> .Instance.FocusObject as IKeyFocusable; if (keyFocusable != null) { TextField y = keyFocusable as TextField; if (this._tfInput != y) { return; } } if (this.HideControl) { return; } if (this.bNotTextKeypadEnter) { this._tfInput.ClearFocus(); } else { this._tfInput.SetFocus(); } this.bNotTextKeypadEnter = !this.bNotTextKeypadEnter; bool flag; if (!this._tfInput.Visible) { AutoSpriteControlBase arg_A3_0 = this._tfInput; flag = true; this._dtInputBG.Visible = flag; flag = flag; this.lbChatType.Visible = flag; arg_A3_0.Visible = flag; } this._tfInput.ColorText = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(this.m_SelectTab)); UIPanelManager arg_E5_0 = this._ToolBar; flag = !this.bNotTextKeypadEnter; this._btOption.Visible = flag; arg_E5_0.Visible = flag; if (0 < this._tfInput.Text.Length) { this.OnInputText(null); } }
private void OnClickTab(IUIObject obj) { UIPanelTab uIPanelTab = obj as UIPanelTab; CHAT_TYPE cHAT_TYPE = (CHAT_TYPE)uIPanelTab.panel.index; if (cHAT_TYPE == this.m_SelectTab) { return; } this.m_SelectTab = cHAT_TYPE; base.ShowLayer((int)(this.m_SelectTab + 1), 5); string arg = string.Empty; switch (cHAT_TYPE) { case CHAT_TYPE.NORMAL: arg = this._ChatTabDefine.TabName[0]; break; case CHAT_TYPE.GUILD: arg = this._ChatTabDefine.TabName[1]; break; case CHAT_TYPE.PARTY: arg = this._ChatTabDefine.TabName[2]; break; case CHAT_TYPE.BATTLE: arg = this._ChatTabDefine.TabName[3]; break; case CHAT_TYPE.WATCH: arg = this._ChatTabDefine.TabName[6]; break; } this.lbChatType.SetText(string.Format("{0}[{1}]", NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(this.m_SelectTab)), arg)); if (cHAT_TYPE != CHAT_TYPE.NORMAL && this._Manager.GetUniqueFromMegType(cHAT_TYPE) <= 0) { this._ToolBar.SetSelectTabIndex((int)this.m_SelectTab); return; } this.ChangeTab(cHAT_TYPE); }
public void GetToolBab() { this._ChatTabDefine.UserLoadChatTab(); this._ToolBar.Control_Tab[0].Text = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(CHAT_TYPE.NORMAL)) + this._ChatTabDefine.TabName[0]; this._ToolBar.Control_Tab[1].Text = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(CHAT_TYPE.GUILD)) + this._ChatTabDefine.TabName[1]; this._ToolBar.Control_Tab[2].Text = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(CHAT_TYPE.PARTY)) + this._ChatTabDefine.TabName[2]; this._ToolBar.Control_Tab[3].Text = NrTSingleton <CTextParser> .Instance.GetTextColor(MainChatDlg.GetChatColorKey(CHAT_TYPE.BATTLE)) + this._ChatTabDefine.TabName[3]; }