Lobby

The lobby screen is the first screen you see after logging in:

../../images/lobby.png

TLobbyScreen

Simple record that handles the login lobby screen.

The lobby screen is the screen you see after logging in with the large red button with “CLICK HERE TO PLAY”.

The record is extremely simply and basically only has information about the bounds of the lobby screen and the bounds ofthe “CLICK HERE TO PLAY” button, as you can see in this image:

../../images/lobbydebug.png

Lobby.Setup

procedure TLobbyScreen.Setup();

Internal function that sets up the lobby screen coordinates. This is automatically called for you on the Lobby variable.


Lobby.IsOpen

function TLobbyScreen.IsOpen(): Boolean;

Returns True/False depending on whether the lobby screen is currently open.

Example:

if Lobby.IsOpen() then
  Lobby.EnterGame();

Lobby.WaitOpen

function TLobbyScreen.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean;

Returns True/False if the lobby screen opens within time milliseconds.

Example:

if Lobby.WaitOpen(2000) then
  Lobby.EnterGame();

Lobby.EnterGame

function TLobbyScreen.EnterGame(): Boolean;

Attempts to enter the game from the lobby screen. This is automatically called for you with Login.DoLogin.

Example:

WriteLn Lobby.EnterGame();

Lobby variable

Global TLobbyScreen variable.