# Overrides Several final overrides to add some final behaviour to certain methods. This is the very last file being included in the library. - - - ## Options.GetTab override ```pascal function TOptions.GetTab(): EOptionsTab; override; ``` Override that basically sets the cached zoom level when the display tab is open. E.g., when the bank is open, all gametab buttons are hidden but you have the inventory open. Example: ```pascal WriteLn GameTabs.GetCurrent(); ``` - - - ## GameTabs.GetCurrent override ```pascal function TGameTabs.GetCurrent(): EGameTab; 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 TGameTabs.Open(tab: EGameTab): Boolean; override; ``` Overrides {ref}`GameTabs.Open` to close the bank if the bank open. - - - ## HouseOptions.Open override ```pascal function THouseOptions.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 TWorldSwitcher.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(); ``` - - - ## Minimap.SetZoomToPoint override ```pascal function TMinimap.SetZoomToPoint(pt: TPoint; randomness: Integer = 0): Boolean; override; ``` Overrides {ref}`Minimap.SetZoomToPoint` to truncate the minimum and maximum zoom at `Antiban.Zoom` level. - - - ## Options.SetZoomLevel override ```pascal function TOptions.SetZoomLevel(level: Int32): Boolean; override; ``` Overrides {ref}`Options.SetZoomLevel` to also set the {ref}`RSMouseZoom` `ZoomLevel`. - - - ## ScriptForm.OnStart override ```pascal procedure TScriptForm.OnStart(sender: TLazObject); override; ``` Overrides TScriptForm.OnStart to perform certain tasks when the script starts running, e.g. start the `Simba Recorder`