# Lobby The lobby screen is the first screen you see after logging in: ```{figure} ../../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: ```{figure} ../../images/lobbydebug.png ``` - - - ## Lobby.Setup ```pascal procedure TLobbyScreen.Setup(); ``` Internal function that sets up the lobby screen coordinates. This is automatically called for you on the {ref}`Lobby variable`. - - - ## Lobby.IsOpen ```pascal function TLobbyScreen.IsOpen(): Boolean; ``` Returns True/False depending on whether the lobby screen is currently open. Example: ```pascal if Lobby.IsOpen() then Lobby.EnterGame(); ``` - - - ## Lobby.WaitOpen ```pascal function TLobbyScreen.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean; ``` Returns True/False if the lobby screen opens within `time` milliseconds. Example: ```pascal if Lobby.WaitOpen(2000) then Lobby.EnterGame(); ``` - - - ## Lobby.EnterGame ```pascal function TLobbyScreen.EnterGame(): Boolean; ``` Attempts to enter the game from the lobby screen. This is automatically called for you with {ref}`Login.DoLogin`. Example: ```pascal WriteLn Lobby.EnterGame(); ``` - - - ## Lobby variable Global {ref}`TLobbyScreen` variable.