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.


TLogout

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


Logout.SetupGameTab

procedure TLogout.SetupGameTab();

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


TLogout.Ratings

Ratings: array [ERSRating] of TButton;

TButton 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

TLogout.Buttons

Buttons: array [ERSLogoutButton] of TButton;

TButton 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 TLogout.IsOpen(): Boolean;

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

Example:

WriteLn Logout.IsOpen();

Logout.Open

function TLogout.Open(): Boolean;

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

Example:

WriteLn Logout.Open();

Logout.IsRated

function TLogout.IsRated(): Boolean;

Returns true if a star button was clicked.

Example:

WriteLn Logout.IsRated();

Logout.Rate

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

Click a star button to rate the game.

Example:

WriteLn Logout.Rate(ERSRating.FOUR);

Logout.Logout

function TLogout.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 TLogout variable.