# Overrides Several final overrides to add some final behaviour to certain methods. This is the very last file being included in the library. - - - ## RSClient.IsLoggedIn override ```pascal function TRSClient.IsLoggedIn(): Boolean; override; ``` Checks for a bunch of game settings when being logged in returns true. These settings are checked at least once and WaspLib and cache the results so we don't check it again unless for some reason is needed. These ensures things like: - The mainscreen is set to the highest pitch - The client has max brightness set - The roofs are hidden - XPBar is set properly (this check can fail and more checks will be done). Example: ```pascal WriteLn RSClient.IsLoggedIn(); ``` - - - ## GameTabs.GetCurrent override ```pascal function TRSGameTabs.GetCurrent(): ERSGameTab; override; ``` Override that handles several scenarios where the "current" gametab is not visible. E.g., when the bank is open, all gametab buttons are hidden but you have the inventory open. Example: ```pascal WriteLn GameTabs.GetCurrent(); ``` - - - ## GameTabs.Open override; ```pascal function TRSGameTabs.Open(tab: ERSGameTab): Boolean; override; ``` Overrides {ref}`GameTabs.Open` to close the bank if the bank open. - - - ## HouseOptions.Open override ```pascal function TRSHouseOptions.Open(): Boolean; override; ``` Attempts to open the house options on the options gametab. Since {ref}`HouseOptions` depends on {ref}`Options`, an override is necessary. Example: ```pascal WriteLn HouseOptions.Open(); ``` - - - ## WorldSwitcher.Open override ```pascal function TRSWorldSwitcher.Open(waitLoad: Boolean = True): Boolean; override; ``` Attempts to open the world switcher. Since {ref}`WorldSwitcher` depends on {ref}`Logout`, this override is necessary. Example: ```pascal WriteLn WorldSwitcher.Open(); ``` - - - ## Chat.LeveledUp override ```pascal function TRSChat.LeveledUp(): Boolean; override; ``` Returns true if we have the level up message on the chat box and attempts to increment {ref}`Stats` `Levels` variables. Example: ```pascal if Chat.LeveledUp() then Chat.ClickContinue(True); ```