Make

The “Make” menu is the chatbox menu that pops up when you attempt to craft certain items in game. TMake is the record SRL has to handle it.


Make.Setup

procedure TMake.Setup; override;

Internal setup method automatically called by SRL on startup. You will probably never need to use this directly.


Make.SetupAlignment

procedure TMake.SetupAlignment(); overload;

Internal method automatically called by SRL on startup used to setup the interface coordinates. You will probably never need to use this directly.


Make.GetItemButtons

function TMake.GetItemButtons: TGameButtonArray;

Internal method used to get the interface buttons. This is used by all other methods that interact with buttons. You will probably never need to call this directly.

Example:

Debug(Make.GetItemButtons());

Make.GetQuantityButtons

function TMake.GetQuantityButtons(): TGameButtonArray;

Internal method used to get the interface quantity buttons. This is used by all other methods that interact with the quantity buttons. You will probably never need to call this directly.

Example:

Debug(Make.GetQuantityButtons());

Make.IsOpen

function TMake.IsOpen(): Boolean;
function TMake.IsOpen(WaitTime: Int32; Interval: Int32 = -1): Boolean; overload;

Checks if the make interface is open. You can optionally specify a WaitTime to wait for it to open.

Example:

WriteLn Make.IsOpen();

Make.FindHint

function TMake.FindHint(): TPointArray;

Returns the hint tooltip has a TPointArray

Example:

Debug(Make.FindHint());

Make.GetFreeSpace

function TMake.GetFreeSpace(): TPointArray;

Get a TPointArray of the chatbox that does not have a single point in any of the make item buttons.

Example:

Debug(Make.GetFreeSpace());

Make.SetQuantity

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

Attempts to set a quantity.

Example:

WriteLn Make.SetQuantity(Make.QUANTITY_ALL);

Make.SelectHelper

function TMake.SelectHelper(var Item: TMakeItem; Quantity: Int32; UseKeyboard: Boolean = True): Boolean;
function TMake.SelectHelper(Button: TGameButton; Quantity: Int32; UseKeyboard: Boolean = True): Boolean; overload;

Internal helper method that handles selecting a button and quantity with or without the keyboard. You probably will never need to use this directly.


Make.Select

function TMake.Select(Index: Int32; Quantity: Int32; UseKeyboard: Boolean = True): Boolean;
function TMake.Select(Item: String; Quantity: Int32; UseKeyboard: Boolean = True): Boolean; overload;

Select a Index of the available buttons or the button with Item text on it when hovered.

Example:

WriteLn Make.Select('Maple longbow', Make.QUANTITY_ALL, True);

Make.Draw

procedure TMake.Draw(Bitmap: TMufasaBitmap); override; overload;

Internal debug method. Used by SRL.Debug().

Example:

SRL.Debug();

var Make

Global Make variable.