subscreenpage#
Variables#
const int |
|
const int |
|
const subscreenwidget[] |
|
const subscreendata |
|
int |
Functions#
GetWidget(char32[] label) |
|
CreateWidget(int type) |
|
void |
SwapWidgets(int index1, int index2) |
FindWidget(int cursor_pos) |
|
int |
SelectorMove(int cursor_pos, int dir, int flags) |
void |
Delete() |
Variable descriptions#
The index of this page within the subscreen.
const int NumWidgets ๐ Source
The number of widgets on the page.
const subscreenwidget[] Widgets ๐ Source
The widgets on the page, ordered by their index.
const subscreendata SubData ๐ Source
The subscreendata that owns this page.
The position value of the selector.
Function descriptions#
subscreenwidget GetWidget(char32[] label) ๐ Source
Returns the first widget with a matching label, or NULL if none exists.
subscreenwidget CreateWidget(int type) ๐ Source
Adds a new widget of the specified type to the end of the page.
Returns that widget, or NULL if fails.
void SwapWidgets(int index1, int index2) ๐ Source
Swaps the widgets at the two indexes.
subscreenwidget FindWidget(int cursor_pos) ๐ Source
Returns the widget designated by the specified cursor position, or NULL if it fails.
int SelectorMove(int cursor_pos, int dir, int flags) ๐ Source
Returns the new cursor position found by moving in โdirโ from โcursor_posโ.
โflagsโ determines:
SUBSEL_FLAG_NO_NONEQUIP: Skip widgets that are โNon-equippableโ
SUBSEL_FLAG_NEED_ITEM: Skip widgets that currently have no equippable item
Deletes the page.
If it is the last page, an empty page will be created in itsโ place.