Window Definitions

Window Definitions
code contained within Inventory/script/HUD_Structs.dh

The Window Struct
struct WindowDef { 	Fixed2DDef ORIGIN; Fixed2DDef TILEOFFSET; Fixed2DDef SIZE; Index2DDef INDEXSIZE; Index2DDef MAXSIZE; str TITLE; str IMAGE; bool ENABLED; int LAYER; int BASEID; };
 * ORIGIN.X/Y - Fixed coordinates of window origin
 * TILEOFFSET.X/Y - Fixed coordinate offsets from origin for grid inventories
 * SIZE.X/Y - Fixed size values for full window area
 * INDEXSIZE.X/Y - Integer size of array referenced in window
 * MAXSIZE.X/Y - Integer maximum size of the array referenced
 * TITLE - String title of window
 * IMAGE - Window image
 * ENABLED - true = yes.
 * LAYER - integer value to layer this window and its subsequent buttons
 * BASEID - The lowest HudMessage ID to use for this range.

WindowDef[]
code contained within Inventory/script/HUD_Init.dh

Contains all the graphical data required to group and display windows with appropriate offsets for their content.

Window properties are generally static, and therefore should be initialized globally. The INDEXSIZE property is used by the Player Inventory and Stash windows to determine their sizes.