The Login include contains all Login related functions
function RSReady: Boolean;
Returns true if we are ready to auto (on loginscreen or logged in). Useful for waiting until RS has fully loaded.
Note
by ZephyrsFury
Example:
procedure Login_SetAudio(Volume, SFX, Area: Integer; SMSetting: (Stereo, Mono, NoChange) );
Sets audio options through the login screen. Use: Enter the desired Setting for the desired Option. Make option 0 for no change. EG. Login_SetAudio(1, 5, 2, NoChange);
1 2 3 4 5 <-o—o—o—o—o-> Volume, SFX, Area:
Note
by ZephyrsFury, fixed by Markus
Example:
procedure Login_SetGraphics(Brightness: Integer);
Sets graphic options in the login screen.
Note
by ZephyrsFury Fixed by TRiLeZ, Markus
Example:
procedure SetAudioOff;
Sets the Audio to off (1 for each bar). Works logged in and out.
Note
by ZephyrsFury
Example:
procedure SetAutoingDefaults;
Sets the graphic options for best SRL compatibility. Works both logged in and out.
Note
by ZephyrsFury
Example:
function LobbyScreen: Boolean;
Returns true if we are at the Lobby Screen
Note
by IceFire908 & Bionicle1800
Example:
function ExitToLobby: Boolean;
Exits to the Lobby (for breaks?)
Note
by Starblaster100, Raymond, IceFire908, & Tarajunky
Example:
function LeaveLobby: Boolean;
Logs you out from lobby screen.
Note
by IceFire908
Example:
function Logout: Boolean;
Logs you all the way out from ingame.
Note
by Starblaster100, Raymond, IceFire908, & Tarajunky
Example:
function LoginPlayerToLob: Boolean;
Like LoginPlayer but only to the lobbyscreen.
Note
by The SRL Team
Example:
procedure LoginPlayer;
Logs in the Player[CurrentPlayer]. Detects most Client Login Errors
Note
by The SRL Team
Example:
function NextPlayerIndex: Integer;
Returns the player number of the next active player.
Note
by Dankness, Ron, Raymond & ZephyrsFury
Example:
function RandomPlayerIndex: Integer;
Returns the Player number of a random active player.
Note
by Dankness, Ron, Raymond & ZephyrsFury
Example:
function SwitchToPlayer(PlayerNo: Integer; Active: Boolean): Boolean;
Note
by Dankness, Ron, Raymond & ZephyrsFury
Example:
procedure NextPlayer(Active: Boolean);
Logs in the next player that isn’t inactive. Boolean: True - Current player is ok. False - Current player is false.
Note
by ZephyrsFury
Example:
procedure RandomNextPlayer(Active: Boolean);
Logs in a random player that isn’t inactive. Boolean: True - Current player is ok. False - Current player is false.
Note
by ZephyrsFury
Example:
procedure CheckUserNicks;
Checks if all nicks are set correct.
Note
by Sumilion, Raymond, and Nava2
Example: