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¶
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:
WriteLn GameTabs.GetCurrent();
GameTabs.GetCurrent override¶
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:
WriteLn GameTabs.GetCurrent();
GameTabs.Open override;¶
function TGameTabs.Open(tab: EGameTab): Boolean; override;
Overrides GameTabs.Open to close the bank if the bank open.
HouseOptions.Open override¶
function THouseOptions.Open(): Boolean; override;
Attempts to open the house options on the options gametab.
Since HouseOptions depends on Options, an override is necessary.
Example:
WriteLn HouseOptions.Open();
WorldSwitcher.Open override¶
function TWorldSwitcher.Open(waitLoad: Boolean = True): Boolean; override;
Attempts to open the world switcher.
Since WorldSwitcher depends on Logout, this override is necessary.
Example:
WriteLn WorldSwitcher.Open();
Minimap.SetZoomToPoint override¶
function TMinimap.SetZoomToPoint(pt: TPoint; randomness: Integer = 0): Boolean; override;
Overrides Minimap.SetZoomToPoint to truncate the minimum and maximum zoom
at Antiban.Zoom level.
Options.SetZoomLevel override¶
function TOptions.SetZoomLevel(level: Int32): Boolean; override;
Overrides Options.SetZoomLevel to also set the RSMouseZoom
ZoomLevel.
ScriptForm.OnStart override¶
procedure TScriptForm.OnStart(sender: TLazObject); override;
Overrides TScriptForm.OnStart to perform certain tasks when the script starts
running, e.g. start the Simba Recorder