UiElement
UiElement is the base class for GUI elements
pos.gui.UiElement()
Creates a new UiElement.
Type | Name | Description |
---|---|---|
number |
x |
Screen x position |
number |
y |
Screen y position |
number |
w |
Pixel width |
number |
h |
Pixel height |
string |
type |
Element type, overridden by classes witch inherit from UiElement |
Return | Name | Description |
---|---|---|
nil |
draw(window: Window) |
Abstract. Called when the element is drawn |
nil |
process(event: table, window: Window) |
Abstract. Called when the an event is processed by the window the element is in |
MenuOption
TextBox
TextInput
Button
ScrollField