Options ======= The options file holds functions and procedures that are used for configuring runescape. Keep in mind that the option-tab changes qute frequently in OSRS, so over time it's more likely to get outdated. ------------ type TRSOptions ~~~~~~~~~~~~~~~ The type that holds functions and properties of the Runescape options interface. ------------ var Options ~~~~~~~~~~~ Variable that stores functions and properties of the Runescape options interface. ------------ type EOptionsTab ~~~~~~~~~~~~~~~~ A type that covers the internal tabs in TRSOptions: ``EOptionsTab = (optDisplay, optAudio, optChat, optControls)`` ------------ Options.Open ~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.Open(): Boolean; Opens the interface ------------ Options.IsOpen ~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.IsOpen(maxWait:Int32=0): Boolean; Checks if the interface is already open. ------------ Options.GetCurrentTab ~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.GetCurrentTab(): EOptionsTab; Returns which tab is currently active. ------------ Options.SetCurrentTab ~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.SetCurrentTab(Tab: EOptionsTab; tryTime:Int32=2000): Boolean; Sets the current tab to the given ``Tab`` ------------ Options.GetBrightness ~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.GetBrightness(): Int32; Returns the mainscreen brightness ------------ Options.SetBrightness ~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.SetBrightness(level: Int32; tryTime:Int32=2000): Boolean; Sets the mainscreen brightness ------------ type ERSZoomNotch ~~~~~~~~~~~~~~~~~ Zoom level notches. ZOOM_LEVEL_0 = Zoomed out fully. ZOOM_LEVEL_50 = Default. ZOOM_LEVEL_100 = Zoomed in fully. ------------ Options.FindZoomSlider ~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.FindZoomSlider(out P: TPoint): Boolean; Returns the middle of the green zoom slider. ------------ Options.GetZoom ~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.GetZoom: Int32; Returns the current zoom level in 0..100 range. -1 if not found. ------------ Options.SetZoom ~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.SetZoom(Level: Int32): Boolean; Sets the current zoom level by using the slider. 0..100 range. ------------ Options.GetZoomNotch ~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.GetZoomNotch: ERSZoomNotch; Returns the current zoom notch. ZOOM_NOTCH_UNKNOWN if not either 0,25,50,75,100. ------------ Options.SetZoomNotch ~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.SetZoomNotch(Notch: ERSZoomNotch): Boolean; Moves the zoom slider to the `Notch` position. ------------ Options.ToggleAcceptAid ~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleAcceptAid(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button to the given state. ------------ Options.ToggleRun ~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleRun(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button to the given state. ------------ Options.ToggleChatEffects ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleChatEffects(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button to the given state. ------------ Options.ToggleSplitPrivChat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleSplitPrivChat(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button to the given state. ------------ Options.ToggleProfanityFilter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleProfanityFilter(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button to the given state. ------------ Options.ToggleTimeoutNotice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleTimeoutNotice(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button for "Login/Logout notification timeout" to the given state. ------------ Options.ToggleShiftDrop ~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function TRSOptions.ToggleShiftDrop(enable:Boolean; tryTime:Int32=2000): Boolean; Changes the state of the button for "Shift Drop" to the given state. ------------