10#define OPTION_PAGESIZE 8
16 char name[MAX_OPTIONS][50];
54 int optionIndex[OPTION_PAGESIZE];
56 GuiText * optionTxt[OPTION_PAGESIZE];
57 GuiImage * optionBg[OPTION_PAGESIZE];
Decodes compressed image data (PNG) into a platform-native texture created from it.
Display, manage, and manipulate images in the GUI.
int findMenuItem(int currentItem, int direction)
Finds the next non-blank option index from currentItem, skipping blank-named entries used as separato...
void resetState()
Resets the element's state to STATE::DEFAULT.
GuiOptionBrowser(int w, int h, OptionList *l)
void setCol1Position(int x)
Sets the x offset of the name column.
void draw() override
Draw the button on screen.
void resetText()
Called when the language has changed, to obtain new text values for all text elements.
void setFocus(int f)
Sets the element's focus.
void update(InputController *c)
Called constantly to allow the element to respond to the current input data.
GuiText * optionVal[OPTION_PAGESIZE]
One value label per visible row of the current page.
void setCol2Position(int x)
Sets the x offset of the value column.
void triggerUpdate()
Forces the visible page to refresh from the underlying options list.
Sound conversion and playback.
Display, manage, and manipulate text in the GUI.
Input-condition matcher attached to a GuiElement (via setSimpleTrigger() etc.) and evaluated against ...
Fixed-size name/value pair list backing a GuiOptionBrowser.
int length
Number of valid entries in name[]/value[].
char name[MAX_OPTIONS][50]
Option names; a blank name is a separator.
char value[MAX_OPTIONS][50]
Option values, shown right-aligned next to each name.