Logout

Methods to interact with the logout tab.


Logout.IsOpen

function TRSLogout.IsOpen(): Boolean;

Returns true if the logout gametab is open, false if it’s not.

Example:

WriteLn Logout.IsOpen();

Logout.Open

function TRSLogout.Open(): Boolean;

Attempts to open the logout tab, returns true if it succeeds.

Example:

WriteLn Logout.Open();

Logout.GetButtons

function TRSLogout.GetButtons(): TRSButtonArray;

Returns the logout and world switcher buttons.

Example:

Debug(Logout.GetButtons());

Logout.GetButton

function TRSLogout.GetButton(button: ERSLogoutButton): TRSButton;

Returns a logout button.

Example:

Debug([Logout.GetButton(ERSLogoutButton.CLICK_HERE)]);

Logout.GetStarButtons

function TRSLogout.GetStarButtons(): TRSButtonArray;

Returns the rating star buttons.

Example:

Debug(Logout.GetStarButtons());

Logout.GetStarButton

function TRSLogout.GetStarButton(star: Int32): TRSButton;

Returns a star button.

Example:

Debug([Logout.GetStarButton(3)]);

Logout.IsRated

function TRSLogout.IsRated(): Boolean;

Returns true if a star button was clicked.

Example:

WriteLn Logout.IsRated();

Logout.GetWorldSwitcherButtons

function TRSLogout.GetWorldSwitcherButtons(): TRSButtonArray;

Returns world switcher buttons.

Example:

Debug(Logout.GetWorldSwitcherButtons());

Logout.GetWorldSwitcherButton

function TRSLogout.GetWorldSwitcherButton(button: ERSLogoutWorldSwitcherButton): TRSButton;

Returns a world switcher button.

Example:

Debug([Logout.GetWorldSwitcherButton(ERSLogoutWorldSwitcherButton.CLOSE)]);

Logout.IsWorldSwitcherOpen

function TRSLogout.IsWorldSwitcherOpen(): Boolean;

Returns true if the world switcher is open.

Example:

WriteLn Logout.IsWorldSwitcherOpen();

Logout.CloseWorldSwitcher

function TRSLogout.CloseWorldSwitcher(): Boolean;

Closes the world switcher.

Example:

Logout.CloseWorldSwitcher();

Logout.ClickLogout

function TRSLogout.ClickLogout(attempts: Int32 = 5; time: Int32 = 20000): Boolean;

Clicks the logout button. Returns true if we succesfully logout of the game.

Example:

WriteLn Logout.ClickLogout();

var Logout

Global TRSLogout variable.