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

TRSLobbyScreen¶
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:

Lobby.Setup¶
procedure TRSLobbyScreen.Setup();
Internal function that sets up the lobby screen coordinates. This is automatically called for you on the Lobby variable.
Lobby.IsOpen¶
function TRSLobbyScreen.IsOpen(): Boolean;
Returns True/False depending on whether the lobby screen is currently open.
Example:
if Lobby.IsOpen() then
Lobby.EnterGame();
Lobby.WaitOpen¶
function TRSLobbyScreen.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 TRSLobbyScreen.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 TRSLobbyScreen variable.