The Worldswitcher include contains all kinds of functions to control the built-in RS world switcher.
function Worldscreen: boolean;
Returns true if the Worldswitcher screen is open
Note
by Icefire908
Example:
function: OpenWorldScreen: Boolean;
Opens the Worldswitcher screen. Returns true if it is succesfully opened.
Note
by Bionicle1800
Example:
procedure UpdateWorlds;
Parses the worlds page into Worlds.ini
Note
by mixster
Example:
procedure LoadWorldArrays;
Loads the world array into Worldarray from Worlds.ini
..note:
by Narcle; Edits by Nava2;
Example:
function WS_CurrentWorld(var World: Integer): Boolean;
Results true if the current world is members,returns world number. World returns -1 if failed. Only works at world screen.
..note:
by Icefire908
Example:
function FindWorld(W: integer): Boolean;
Scrolls to area and returns true if world was found.
..note:
by Narcle fixed by Shuttleu
Example:
function GetWorldInfo(World: Integer; var WorldRec: TWorld): Boolean;
Records World info into TWorld record, also Results true if world was found.
..note:
by Narcle
Example:
Function SelectWorld(W: Integer): Boolean;
Switches to the specified world. Returns true if successful.
..note:
by Narcle & ZephyrsFury
Example:
function RandomWorld(Members, PvP: Boolean): Integer;
Returns a random world by paramaters.
..note:
by Narcle & mixster
Example:
function ChangeWorld(W: Integer): Boolean;
Changes to world W. Returns True if successful.
..note:
by Nava2
Example:
Procedure OrderWorlds(by: string; Descending: boolean);
Orders worlds by ‘by’ in order ‘Descending’, Check function for valid params of ‘by’, Descending = true means the left button
..note:
by NaumanAkhlaQ
Example:
Function ChooseWorldBy(SettingsNames:TStringArray; SettingsDescending: array of boolean; Members, PVP: boolean): boolean;
Chooses a world by SettingsNames , ordered by SettingsDescending, Takes into account Members and PVP, Check OrderWorlds for valid params for SettingsNames
..note:
by Rasta Magician
Example: