Logout

Methods to interact with the logout tab.

_images/inventory.png

ERSRating

ERSRating = (ONE, TWO, THREE, FOUR, FIVE);

Enum representing the star buttons on the Logout gametab.


ERSLogoutButton

ERSLogoutButton = (WORLD_SWITCHER, CLICK_HERE);

Enum representing the buttons available on the Logout gametab.


TRSLogout

Main record that holds and the methods to interact with the logout gametab.


Logout.SetupGameTab

procedure TRSLogout.SetupGameTab();

Internal method used to setup TRSLogout coordinates. This is called automatically for you on the Logout variable.


TRSLogout.Ratings

Ratings: array [ERSRating] of TRSButton;

TRSButton for each of the Logout rating buttons.

Example:

ShowOnTarget(Logout.Ratings);
_images/logout_ratings.png

You can also access each button with an index or, more conveniently, with a ERSRating.

Example:

ShowOnTarget(Logout.Ratings[ERSRating.THREE]);
_images/logout_rating.png

TRSLogout.Buttons

Buttons: array [ERSLogoutButton] of TRSButton;

TRSButton for each of the Logout buttons.

Example:

ShowOnTarget(Logout.Buttons);
_images/logout_buttons.png

You can also access each button with an index or, more conveniently, with a ERSLogoutButton.

Example:

ShowOnTarget(Logout.Buttons[ERSLogoutButton.WORLD_SWITCHER]);
_images/logout_button.png

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

function TRSLogout.IsRated(): Boolean;

Returns true if a star button was clicked.

Example:

WriteLn Logout.IsRated();

Logout.Rate

function TRSLogout.Rate(star: ERSRating): Boolean;

Click a star button to rate the game.

Example:

WriteLn Logout.Rate(ERSRating.FOUR);

Logout.Logout

function TRSLogout.Logout(attempts: UInt32 = 5; time: UInt32 = 20000): Boolean;

Attempts to logout of the game. Returns true if we succesfully logout of the game. If the WorldSwitcher is open, we will use WorldSwitcher.Logout instead.

Example:

WriteLn Logout.Logout();

Logout variable

Global TRSLogout variable.