SingleButton

SingleButton
int SingleButton ( fixed X, fixed Y, fixed Width, fixed Height, int HudID, int Index, int Window )

Function is located within Inventory/script/HUD_Funcs.dh

Parameters:

 * X/Y - fixed coordinates for button graphic origin
 * Width/Height - fixed size of button area
 * Index - Index of item on ItemList[]
 * Window - integer pointer to the Window pointer array (ie WINDOW_EQUIPMENT, WINDOW_WEAPON)

Description:
SingleButton functions similarly to GridButton but does not require any array tile/origin coordinates to be passed to it. This means that it ignores item size checks. Due to this, only use SingleButton to refer to a single-dimension InventoryDef variable.

SingleButton's background images are defined under WindowDef, but its selection image is currently defined in the function.