Namespace UILib.Components
Classes
- Area
A blank area, does nothing special.
- Button
A button component.
Buttons can have textures or text on them and handle click events.
- ColorField
A component which stores a color that can be changed by the user through a color picker.
- Dropdown<T>
A component which displays a dropdown of multiple options.
IMPORTANT: Don't rely on the API staying this way, dropdowns are not implemented all that well at the moment and so are subject to change.
- Image
A component which just displays an image.
- KeyCodeField
A component which allows you to get a
KeyCodefrom the user. This could be a key or mouse button.
- Label
A component which just displays some text.
- Picker
A 2D picker component.
Kind of like a Slider, but allows you to handle
xandyvalues.By default: (0, 0) is the bottom left (1, 1) is the top right
- ProgressBar
A simple progress bar. Provides a simple visual representation of progress.
- QueueArea
Like an Area, but also adds functionality to remove the oldest children once a certain limit is reached.
- ScrollBar
A scroll bar.
- ScrollView
A ScrollView.
If content is larger than the ScrollView, ScrollBars will be enabled to allow scrolling through it.
Vertical ScrollBars are always on by default.
- Slider
A component which can be dragged between a lower and upper limit.
- TextField
A component which holds text that a user can edit.
- Toggle
A component which is like a Button, but can be toggled on or off.
Also displays a checkmark indicating its current state.
Enums
- ScrollType
Scroll types which can be applied to ScrollBars.
- TextField.ClearMode
An enum of modes which determine in which cases a TextField will clear the input and its internal value.
- TextField.RetainMode
An enum of modes which determine in which cases a TextField will retain the current user input.
The input will always be retained on a valid submit.
- TextField.SubmitMode
An enum of modes which determine which interactions will count as a submit.
Pressing
Returnwill always count as a submit