subscreenwidget#

Variables#

const int

Type

const int

Index

const subscreenpage

Page

const int

DisplayItem

const int

EquipItem

int

Pos

int[]

PosDirs

bool[]

VisibleFlags

int

X

int

Y

int

W

int

H

const int

DispX

const int

DispY

const int

DispW

const int

DispH

bool[]

GenFlags

bool[]

Flags

int

SelectorDestX

int

SelectorDestY

int

SelectorDestW

int

SelectorDestH

int[]

SelectorWid

int[]

SelectorHei

int[]

SelectorTile

int[]

SelectorCSet

int[]

SelectorFlashCSet

int[]

SelectorFrames

int[]

SelectorASpeed

int[]

SelectorDelay

int

PressScript

untyped[]

PressInitD

bool[]

BtnPressScript

bool[]

BtnPageChange

int

PageMode

int

TargetPage

int

PageTransType

int

PageTransSFX

bool[]

PageTransFlags

int[]

PageTransArgs

int[]

CSet

int[]

Tile

int

Font

int

Align

int

ShadowType

int

ColorText

int

ColorShadow

int

ColorBG

int

ColorOutline

int

ColorFill

int

Button

int[]

Counter

int

MinDigits

int

MaxDigits

int

InfiniteItem

char32

InfiniteChar

int

CostIndex

int

ColorPlayer

int

ColorCompassBlink

int

ColorCompassOff

int

ColorRoom

int

ItemClass

int

ItemID

int

FrameTile

int

FrameCSet

int

PieceTile

int

PieceCSet

int

Flip

int

Number

int[]

Corner

int

Frames

int

Speed

int

Delay

int

Container

int

GaugeWid

int

GaugeHei

int

Units

int

HSpace

int

VSpace

int

GridX

int

GridY

int

AnimVal

int

ShowDrain

int

PerContainer

int

TabSize

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#

const int Type ๐Ÿ”— Source

The widgetโ€™s type, using SubscreenWidgetType (SUBWIDG_) constants.


const int Index ๐Ÿ”— Source

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


int Pos ๐Ÿ”— Source

The selector position of this flag.

Only used if the widget is selectable (see GenFlags[]).


int[] PosDirs ๐Ÿ”— Source

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.


int X ๐Ÿ”— Source

The X position of the widget within the subscreen.

Some widget types do not use this.


int Y ๐Ÿ”— Source

The Y position of the widget within the subscreen.

Some widget types do not use this.


int W ๐Ÿ”— Source

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.


int H ๐Ÿ”— Source

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.


const int DispX ๐Ÿ”— Source

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.


const int DispY ๐Ÿ”— Source

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.


const int DispW ๐Ÿ”— Source

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.


const int DispH ๐Ÿ”— Source

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.


bool[] GenFlags ๐Ÿ”— Source

The general flags for subscreen widgets. These are usually applicable regardless of widget type. Use the โ€˜SUBW_GENFL_โ€™ constants to access.


bool[] Flags ๐Ÿ”— Source

The type-specific flags for subscreen widgets.

There is a different set of constants for this for each widget type.


int SelectorDestX ๐Ÿ”— Source

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.


int SelectorDestY ๐Ÿ”— Source

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.


int SelectorDestW ๐Ÿ”— Source

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.


int SelectorDestH ๐Ÿ”— Source

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.


int[] SelectorWid ๐Ÿ”— Source

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[]).


int[] SelectorHei ๐Ÿ”— Source

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[]).


int PressScript ๐Ÿ”— Source

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.


int PageMode ๐Ÿ”— Source

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.


int TargetPage ๐Ÿ”— Source

The page to change to when using PageMode of โ€˜SUB_PGMODE_TARGโ€™


int PageTransType ๐Ÿ”— Source

The transition type for PageMode transition.

Compare with the โ€˜TRANS_TY_โ€™ constants.


int PageTransSFX ๐Ÿ”— Source

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


int[] CSet ๐Ÿ”— Source

The widgetโ€™s cset(s).

For SUBWIDG_FRAME,SUBWIDG_MCGUFF,SUBWIDG_TILEBLOCK,SUBWIDG_MINITILE: can use the โ€˜SUB_CS_โ€™ constants.


int[] Tile ๐Ÿ”— Source

The widgetโ€™s tile(s).

For SUBWIDG_MINITILE, can use the โ€˜SUB_SPTILE_โ€™ constant values.


int Font ๐Ÿ”— Source

The widgetโ€™s Font, use the โ€˜FONT_โ€™ constants.


int Align ๐Ÿ”— Source

The widgetโ€™s Alignment, use the โ€˜TF_โ€™ constants.


int ShadowType ๐Ÿ”— Source

The widgetโ€™s Shadow Type.

Valid values: ShadowType (SHD_).


int ColorText ๐Ÿ”— Source

The widgetโ€™s color index used for Text


int ColorShadow ๐Ÿ”— Source

The widgetโ€™s color index used for Shadows


int ColorBG ๐Ÿ”— Source

The widgetโ€™s color index used for background


int ColorOutline ๐Ÿ”— Source

The widgetโ€™s color index used for outline


int ColorFill ๐Ÿ”— Source

The widgetโ€™s color index used for fill


int Button ๐Ÿ”— Source

The item button associated with the widget.

Use the โ€˜ITMBTN_โ€™ constants for this value.


int[] Counter ๐Ÿ”— Source

The counter(s) associated with the widget.

Use the โ€˜CR_โ€™ constants for the values.


int MinDigits ๐Ÿ”— Source

The minimum digits of the widget.


int MaxDigits ๐Ÿ”— Source

The maximum digits of the widget.


int InfiniteItem ๐Ÿ”— Source

The infinite item of the widget.


char32 InfiniteChar ๐Ÿ”— Source

The infinite character of the widget.


int CostIndex ๐Ÿ”— Source

The index of cost to use for this widget


int ColorPlayer ๐Ÿ”— Source

The widgetโ€™s color index used to indicate the Hero


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


int ColorRoom ๐Ÿ”— Source

The widgetโ€™s color index used to indicate rooms


int ItemClass ๐Ÿ”— Source

The itemclass used by the widget (0 <= ItemClass < IC_MAXUSABLE)


int ItemID ๐Ÿ”— Source

The item ID used by the widget (-1 <= ItemID < NUM_ITEMDATA)


int FrameTile ๐Ÿ”— Source

The frame/piece tile/cset used by the widget.


int FrameCSet ๐Ÿ”— Source

The frame/piece tile/cset used by the widget.


int PieceTile ๐Ÿ”— Source

The frame/piece tile/cset used by the widget.


int PieceCSet ๐Ÿ”— Source

The frame/piece tile/cset used by the widget.


int Flip ๐Ÿ”— Source

The widgetโ€™s flip value.


int Number ๐Ÿ”— Source

The number associated with the widget.


int[] Corner ๐Ÿ”— Source

The corner(s) associated with the widget.


int Frames ๐Ÿ”— Source

The widgetโ€™s frames


int Speed ๐Ÿ”— Source

The widgetโ€™s speed


int Delay ๐Ÿ”— Source

The widgetโ€™s delay


int Container ๐Ÿ”— Source

The widgetโ€™s container number


int GaugeWid ๐Ÿ”— Source

The widgetโ€™s gauge width


int GaugeHei ๐Ÿ”— Source

The widgetโ€™s gauge height


int Units ๐Ÿ”— Source

The widgets unit value


int HSpace ๐Ÿ”— Source

The widgetโ€™s horizontal spacing


int VSpace ๐Ÿ”— Source

The widgetโ€™s vertical spacing


int GridX ๐Ÿ”— Source

The widgetโ€™s grid x


int GridY ๐Ÿ”— Source

The widgetโ€™s grid y


int AnimVal ๐Ÿ”— Source

The widgetโ€™s animation value


int ShowDrain ๐Ÿ”— Source

The magic drain rate this widget will be visible at (-1 for any)


int PerContainer ๐Ÿ”— Source

The counter amount per โ€œcontainerโ€ for the widget


int TabSize ๐Ÿ”— Source

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*.