2 Widgets
Kenny McCormick edited this page 2019-10-12 22:33:45 -05:00

Button

A simple press button.

TIP: if creating buttons dynamically (i.e. for a list of things pulled from a file), set the ID of all static controls 
to a negative number (below 0, but not -1) and then just set the rest of the buttons to the corresponding position in 
the list. 

Example:
for... menu.addButton(list[i], i);

Check Box

A toggle box.

*Combo Box

not implemented

Image

A control which displays an image.

Input Box

A box for inputting and editing a single line of text.

Multiline Input Box

A box for inputting and editing a multiple lines of text. Supports pasting strings from the clipboard.

Label

A piece of descriptive text.

Options Box

A horizontal options box, controlled with left and right buttons.

Progress Bar

A rectangle which will display progress as a percent.

Slider

A control which can be dragged to produce a value between 1 and 100

Sprite Button

A push button using a custom sprite. When a custom sprite is provided, the button will take the size of the texture.