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.

_images/chattabs.png

ERSChatTab

ERSChatTab = enum(NONE, ALL, GAME, PUBLIC_, PRIVATE_, CHANNEL, CLAN, TRADE);

Enum representing each of the chat tabs available.


ERSChatTabState

ERSChatTabState = (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:

_images/chattab_filter.png

TRSChatTab

Helper record to interact with a 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.Get

function TRSChatTabs.Get(tab: ERSChatTab): TRSChatTab;

Returns the TRSChatTab that is represented by the specified ERSChatTab.

This is mostly for internal use.

Example:

WriteLn Chat.Tabs.Get(ERSChatTab.GAME);

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 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.

Example:

WriteLn Chat.Tabs.Open(ERSChatTab.ALL);

Chat.Tabs.GetState

function TRSChatTabs.GetState(tab: ERSChatTab): ERSChatTabState;

Returns the ERSChatTabState of the specified ERSChatTab.

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 to the specified ERSChatTabState.

Example:

WriteLn Chat.Tabs.GetState(ERSChatTab.PUBLIC_, ERSChatTabState.ENABLED);