ChatTabs¶
Chat tabs refer to the tabs/buttons that are below the Chat box.
You can use these to change the current chat being viewed.
EChatTab enum¶
EChatTab = enum(NONE, ALL, GAME, PUB, PRIV, CHANNEL, CLAN, TRADE);
Enum representing each of the chat tabs available.
EChatTabState enum¶
EChatTabState = enum(NONE, ENABLED, FILTERED, DISABLED, HIDE, AUTOCHAT);
Enum representing each of the filters a chat tab can have.
You can see the filters when you right click the tab:
TChatTabs¶
Record responsible with interacting with the ChatTabs.
In TChat you have a Tabs variable of this type.
Chat.Tabs.SetupInterface¶
procedure TChatTabs.SetupInterface();
Internal method used to setup the TChatTabs coordinates.
This is automatically called for you on the Chat.Tabs variable.
Chat.Tabs.GetActive¶
function TChatTabs.GetActive(): EChatTab;
Returns the TChatTab that is active right now.
Example:
WriteLn Chat.Tabs.GetActive();
Chat.Tabs.IsActive¶
function TChatTabs.IsActive(tab: EChatTab): Boolean;
Returns True/False if the specified EChatTab enum is active right now.
Example:
WriteLn Chat.Tabs.IsActive(EChatTab.ALL);
Chat.Tabs.Open¶
function TChatTabs.Open(tab: EChatTab): Boolean;
Attempts to open the specified EChatTab enum.
Example:
WriteLn Chat.Tabs.Open(EChatTab.ALL);
Chat.Tabs.GetState¶
function TChatTabs.GetState(tab: EChatTab): EChatTabState;
Returns the EChatTabState enum of the specified EChatTab enum.
Example:
WriteLn Chat.Tabs.GetState(EChatTab.PUBLIC_);
Chat.Tabs.ChangeState¶
function TChatTabs.ChangeState(tab: EChatTab; state: EChatTabState): Boolean;
Attempts to change the state of the specified EChatTab enum to the specified EChatTabState enum.
Example:
WriteLn Chat.Tabs.GetState(EChatTab.PUBLIC_, EChatTabState.ENABLED);