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.
ERSChatTab enum¶
ERSChatTab = enum(NONE, ALL, GAME, PUB, PRIV, CHANNEL, CLAN, TRADE);
Enum representing each of the chat tabs available.
ERSChatTabState enum¶
ERSChatTabState = 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:
TRSChatTabs¶
Record responsible with interacting with the ChatTabs.
In TRSChat you have a Tabs variable of this type.
Chat.Tabs.SetupInterface¶
procedure TRSChatTabs.SetupInterface();
Internal method used to setup the TRSChatTabs coordinates.
This is automatically called for you on the Chat.Tabs variable.
Chat.Tabs.GetActive¶
function TRSChatTabs.GetActive(): ERSChatTab;
Returns the TRSChatTab that is active right now.
Example:
WriteLn Chat.Tabs.GetActive();
Chat.Tabs.IsActive¶
function TRSChatTabs.IsActive(tab: ERSChatTab): Boolean;
Returns True/False if the specified ERSChatTab enum is active right now.
Example:
WriteLn Chat.Tabs.IsActive(ERSChatTab.ALL);
Chat.Tabs.Open¶
function TRSChatTabs.Open(tab: ERSChatTab): Boolean;
Attempts to open the specified ERSChatTab enum.
Example:
WriteLn Chat.Tabs.Open(ERSChatTab.ALL);
Chat.Tabs.GetState¶
function TRSChatTabs.GetState(tab: ERSChatTab): ERSChatTabState;
Returns the ERSChatTabState enum of the specified ERSChatTab enum.
Example:
WriteLn Chat.Tabs.GetState(ERSChatTab.PUBLIC_);
Chat.Tabs.ChangeState¶
function TRSChatTabs.ChangeState(tab: ERSChatTab; state: ERSChatTabState): Boolean;
Attempts to change the state of the specified ERSChatTab enum to the specified ERSChatTabState enum.
Example:
WriteLn Chat.Tabs.GetState(ERSChatTab.PUBLIC_, ERSChatTabState.ENABLED);