Worldswitcher

The Worldswitcher include contains all kinds of functions to control the built-in RS world switcher.

WorldScreen

function Worldscreen: boolean;

Returns true if the Worldswitcher screen is open

Note

by Icefire908

Example:

OpenWorldScreen

function: OpenWorldScreen: Boolean;

Opens the Worldswitcher screen. Returns true if it is succesfully opened.

Note

by Bionicle1800

Example:

UpdateWorlds

procedure UpdateWorlds;

Parses the worlds page into Worlds.ini

Note

by mixster

Example:

LoadWorldArrays

procedure LoadWorldArrays;

Loads the world array into Worldarray from Worlds.ini

..note:

by Narcle; Edits by Nava2;

Example:

WS_CurrentWorldEx

function WS_CurrentWorldEx: Integer;

Results Current world from WorldScreen

..note:

by Home

Example:

WS_CurrentWorld

function WS_CurrentWorld(var World: Integer): Boolean;

Results true if we are currently in same world as what user inputted.

..note:

by Home

Example:

OrderWorlds

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:

FindWorld

function FindWorld(W: integer): Boolean;

Scrolls to area and returns true if world was found.

..note:

by Narcle fixed by Shuttleu

Example:

GetWorldInfo

function GetWorldInfo(WorldIndex: Integer; var WorldRec: TWorld): Boolean;

Records World info into TWorld record, also Results true if world was found.

..note:

by Narcle

Example:

QuickSelect

Function QuickSelect(World: Integer): Boolean;

Checks to see if desired world is in the favorites shortcut. Returns 1 if left spot successful, 2 if right spot successful.

..note:

by Ashaman88 & Le Jingle

Example:

SelectWorld

Function SelectWorld(W: Integer): Boolean;

Switches to the specified world. Returns true if successful.

..note:

by Narcle & ZephyrsFury - edited by Ashaman88

Example:

RandomWorld

function RandomWorld(Members, PvP: Boolean): Integer;

Returns a random world by paramaters.

..note:

by Narcle & mixster

Example:

ChangeWorld

function ChangeWorld(W: Integer): Boolean;

Changes to world W. Returns True if successful.

..note:

by Nava2

Example:

ChooseWorldBy

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, core

Example: