subscreenwidget#
Variables#
const int |
|
const int |
|
const subscreenpage |
|
const int |
|
const int |
|
int |
|
int[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
const int |
|
const int |
|
const int |
|
const int |
|
bool[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int[] |
|
int |
|
untyped[] |
|
bool[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
bool[] |
|
int[] |
|
int[] |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int |
|
int |
|
int |
|
char32 |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
Functions#
void |
GetSelTextOverride(char32[] buf) |
void |
SetSelTextOverride(char32[] str) |
void |
GetLabel(char32[] buf) |
void |
SetLabel(char32[] str) |
void |
GetText(char32[] buf) |
void |
SetText(char32[] str) |
Variable descriptions#
The widgetโs type, using SubscreenWidgetType (SUBWIDG_
) constants.
The index of this widget within the page.
const subscreenpage Page ๐ Source
The page this widget is within.
const int DisplayItem ๐ Source
The display/equip item ID for the widget.
Reads as -1 if no item exists, the widget is of a type that has no item, etc
const int EquipItem ๐ Source
The display/equip item ID for the widget.
Reads as -1 if no item exists, the widget is of a type that has no item, etc
The selector position of this flag.
Only used if the widget is selectable (see GenFlags[]).
The 4 directional positions for the selector.
Use the โDIR_โ constants to index.
Only used if the widget is selectable (see GenFlags[]).
bool[] VisibleFlags ๐ Source
Flags related to the visibility of the widget.
Use the โSUBVISIB_โ constants to access.
The X position of the widget within the subscreen.
Some widget types do not use this.
The Y position of the widget within the subscreen.
Some widget types do not use this.
The width/height of the widget within the subscreen.
This is USUALLY in pixels, but some types use different values! ex. for 2x2 frame, this is in minitiles, so 8 times less than pixels.
Some widget types do not use this.
The width/height of the widget within the subscreen.
This is USUALLY in pixels, but some types use different values! ex. for 2x2 frame, this is in minitiles, so 8 times less than pixels.
Some widget types do not use this.
Gets the display x, in pixels.
The rectangle represented by this is the same as the bounding box shown in the subscreen editor in ZQ.
Gets the display y, in pixels.
The rectangle represented by this is the same as the bounding box shown in the subscreen editor in ZQ.
Gets the display width, in pixels.
The rectangle represented by this is the same as the bounding box shown in the subscreen editor in ZQ.
Gets the display height, in pixels.
The rectangle represented by this is the same as the bounding box shown in the subscreen editor in ZQ.
The general flags for subscreen widgets. These are usually applicable regardless of widget type. Use the โSUBW_GENFL_โ constants to access.
The type-specific flags for subscreen widgets.
There is a different set of constants for this for each widget type.
The X/Y/W/H offsets for the selector on this widget, if the selector is overridden (see GenFlags[]).
These values will REPLACE the x/y/w/h that the selector would normally draw to.
The X/Y/W/H offsets for the selector on this widget, if the selector is overridden (see GenFlags[]).
These values will REPLACE the x/y/w/h that the selector would normally draw to.
The X/Y/W/H offsets for the selector on this widget, if the selector is overridden (see GenFlags[]).
These values will REPLACE the x/y/w/h that the selector would normally draw to.
The X/Y/W/H offsets for the selector on this widget, if the selector is overridden (see GenFlags[]).
These values will REPLACE the x/y/w/h that the selector would normally draw to.
The width (in pixels) for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
The height (in pixels) for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorTile ๐ Source
The tile for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorCSet ๐ Source
The cset for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorFlashCSet ๐ Source
The flashcset for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorFrames ๐ Source
The animation frames for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorASpeed ๐ Source
The animation speed for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
int[] SelectorDelay ๐ Source
The animation delay for the two selector overrides.
Will be used by the selector on this widget, if the selector is overridden (see GenFlags[]).
The generic script that will run when a specified button is pressed while this widget is selected.
untyped[] PressInitD ๐ Source
The 8 InitD[] args for the PressScript
bool[] BtnPressScript ๐ Source
Use the InteractButton (INTBTN_
) constants to index this array.
The โtrueโ buttons here, when pressed while this widget is selected, run the press script.
bool[] BtnPageChange ๐ Source
Use the InteractButton (INTBTN_
) constants to index this array.
The โtrueโ buttons here, when pressed while this widget is selected, change the current page based on PageMode.
The type of page change that will occur when a specified button is pressed while this widget is selected.
Use the SubscreenPageMode (SUB_PGMODE_
) constants for this value.
The page to change to when using PageMode of โSUB_PGMODE_TARGโ
The transition type for PageMode transition.
Compare with the โTRANS_TY_โ constants.
The transition sfx for PageMode transition.
bool[] PageTransFlags ๐ Source
The flags for PageMode transition.
Use the โTRANSFLAG_โ constants to access these.
int[] PageTransArgs ๐ Source
The arguments used for PageMode transition.
Use the โTRANS_*_ARG_โ constants to access these
The widgetโs cset(s).
For SUBWIDG_FRAME,SUBWIDG_MCGUFF,SUBWIDG_TILEBLOCK,SUBWIDG_MINITILE: can use the โSUB_CS_โ constants.
SUBWIDG_FRAME - 1 values
SUBWIDG_MCGUFF - 1 values
SUBWIDG_TILEBLOCK - 1 values
SUBWIDG_MINITILE - 1 values
SUBWIDG_MISCGAUGE - 4 values
SUBWIDG_LGAUGE - 4 values
SUBWIDG_MGAUGE - 4 values
The widgetโs tile(s).
For SUBWIDG_MINITILE, can use the โSUB_SPTILE_โ constant values.
SUBWIDG_FRAME - 1 values
SUBWIDG_MCGUFF - 1 values
SUBWIDG_TILEBLOCK - 1 values
SUBWIDG_MINITILE - 1 values
SUBWIDG_MISCGAUGE - 4 values
SUBWIDG_LGAUGE - 4 values
SUBWIDG_MGAUGE - 4 values
The widgetโs Font, use the โFONT_โ constants.
The widgetโs Alignment, use the โTF_โ constants.
The widgetโs Shadow Type.
Valid values: ShadowType (SHD_
).
The widgetโs color index used for Text
The widgetโs color index used for Shadows
The widgetโs color index used for background
The widgetโs color index used for outline
The widgetโs color index used for fill
The item button associated with the widget.
Use the โITMBTN_โ constants for this value.
The counter(s) associated with the widget.
Use the โCR_โ constants for the values.
SUBWIDG_COUNTER - 3 values
SUBWIDG_MISCGAUGE - 1 values
The minimum digits of the widget.
The maximum digits of the widget.
The infinite item of the widget.
char32 InfiniteChar ๐ Source
The infinite character of the widget.
The index of cost to use for this widget
The widgetโs color index used to indicate the Hero
int ColorCompassBlink ๐ Source
The widgetโs color index used to indicate the blinking compass
int ColorCompassOff ๐ Source
The widgetโs color index used to indicate the off compass
The widgetโs color index used to indicate rooms
The itemclass used by the widget (0 <= ItemClass < IC_MAXUSABLE)
The item ID used by the widget (-1 <= ItemID < NUM_ITEMDATA)
The frame/piece tile/cset used by the widget.
The frame/piece tile/cset used by the widget.
The frame/piece tile/cset used by the widget.
The frame/piece tile/cset used by the widget.
The widgetโs flip value.
The number associated with the widget.
The corner(s) associated with the widget.
SUBWIDG_MINITILE - 1 values
SUBWIDG_LGAUGE - 4 values
SUBWIDG_MGAUGE - 4 values
SUBWIDG_MISCGAUGE - 4 values
The widgetโs frames
The widgetโs speed
The widgetโs delay
The widgetโs container number
The widgetโs gauge width
The widgetโs gauge height
The widgets unit value
The widgetโs horizontal spacing
The widgetโs vertical spacing
The widgetโs grid x
The widgetโs grid y
The widgetโs animation value
The magic drain rate this widget will be visible at (-1 for any)
The counter amount per โcontainerโ for the widget
The widgetโs tabsize value
Function descriptions#
void GetSelTextOverride(char32[] buf) ๐ Source
Gets the selected text override for this widget.
If the buffer provided is too small, it will *automatically be resized to fit*.
void SetSelTextOverride(char32[] str) ๐ Source
Sets the selected text override for this widget.
A blank string represents no override.
void GetLabel(char32[] buf) ๐ Source
Gets the label for this widget.
If the buffer provided is too small, it will *automatically be resized to fit*.
void SetLabel(char32[] str) ๐ Source
Sets the label for this widget.
void GetText(char32[] buf) ๐ Source
Gets/Sets the text for this widget.
If the buffer provided for GetText() is too small, it will *automatically be resized to fit*.
void SetText(char32[] str) ๐ Source
Gets/Sets the text for this widget.
If the buffer provided for GetText() is too small, it will *automatically be resized to fit*.