GoldScreen

Methods to interact with the gold‑crafting Gold Screen interface.

../../images/GoldScreen_interface.png

Note

Credits to Flight and Skunkworks


ERSGoldItem

ERSGoldItem = enum(GOLD_RING..ZENYTE_BRACELET);

Enum of all jewellery items that can be crafted on the GoldScreen.


TRSGoldScreen

Main record to interact with the GoldScreen interface.


GoldScreen.SetupInterface

procedure TRSGoldScreen.SetupInterface();

Internal method used to setup the TRSGoldScreen coordinates. Automatically called for you on the GoldScreen variable.


GoldScreen.GetButtons

function TRSGoldScreen.GetButtons(): TRSButtonArray;

Returns an array with all cached quantity‑selection buttons. Or caches it.


GoldScreen.GetButton

function TRSGoldScreen.GetButton(B: ERSGoldScreenButton): TRSButton;

Returns the specific quantity button requested.


GoldScreen.IsOpen

function TRSGoldScreen.IsOpen(): Boolean;

Returns True if the gold‑crafting interface is visible.


GoldScreen.WaitOpen

function TRSGoldScreen.WaitOpen(time: Int32 = 600; interval: Int32 = -1): Boolean;

Waits up to time ms for the interface to appear.


GoldScreen.Close

function TRSGoldScreen.Close(PressEscape: Boolean = False): Boolean;

Closes the interface via its close button or by pressing Escape.


GoldScreen.SetQuantity

function TRSGoldScreen.SetQuantity(Amount: Int32): Boolean;

Selects the desired quantity button (1/5/10/X/All). Pass -1 for All.


GoldScreen.CanCraftItem

function TRSGoldScreen.CanCraftItem(Item: ERSGoldItem): Boolean;

Returns True if the given item icon is available for crafting.


GoldScreen.IsItemHighlighted

function TRSGoldScreen.IsItemHighlighted(Item: ERSGoldItem): Boolean;

Returns True if the given item is currently highlighted.


GoldScreen.CraftItem

function TRSGoldScreen.CraftItem(Item: ERSGoldItem; Quantity: Int32; UseSpaceBar: Boolean = False): Boolean;

Sets the quantity then crafts the requested item. If UseSpaceBar = True and the item is highlighted it presses Space, otherwise it clicks the item icon.


GoldScreen.Draw

procedure TRSGoldScreen.Draw(Bmp: TMufasaBitmap);

Debug‑draws bounds, item slots, and quantity buttons on Bmp.


GoldScreen variable

Global TRSGoldScreen variable.