Represents a button UI element.
More...
|
| override void | Update (float deltaTime) |
| | Updates the state of the button.
|
| |
| override void | Update (float deltaTime) |
| | Updates the UI component.
|
| |
| void | Attach (Entity entity) |
| | Attaches the component to an entity.
|
| |
| virtual void | Awake () |
| | Awake is called when the component is initialized, regardless of whether or not the script is enabled.
|
| |
| virtual void | Start () |
| | Called when the component is started if it's enabled.
|
| |
| virtual void | OnEndOfFrame () |
| | Called on the end of every frame.
|
| |
| virtual void | Stop () |
| | Called when the component is removed.
|
| |
| virtual void | OnDrawGizmo () |
| | Tells the renderer how to draw the object's editor gizmos.
|
| |
|
| string | text = "Button" |
| | The text displayed on the button.
|
| |
| bool | state = false |
| | Indicates whether the button is currently pressed.
|
| |
| bool | prevState = false |
| | Indicates the previous state of the button.
|
| |
| bool | isToggle = true |
| | Indicates whether the button behaves as a toggle button.
|
| |
| Action | OnPressed |
| | Action invoked when the button is pressed.
|
| |
| Rectangle | bounds |
| | The bounds of the UI component.
|
| |
| Color | Color = Raylib.BLACK |
| | The color of the renderer.
|
| |
Represents a button UI element.
◆ Update()
| override void WoopWoop.UI.Button.Update |
( |
float | deltaTime | ) |
|
|
virtual |
Updates the state of the button.
- Parameters
-
| deltaTime | The time elapsed since the last update. |
Reimplemented from WoopWoop.Component.
◆ isToggle
| bool WoopWoop.UI.Button.isToggle = true |
Indicates whether the button behaves as a toggle button.
◆ OnPressed
| Action WoopWoop.UI.Button.OnPressed |
Action invoked when the button is pressed.
◆ prevState
| bool WoopWoop.UI.Button.prevState = false |
Indicates the previous state of the button.
◆ state
| bool WoopWoop.UI.Button.state = false |
Indicates whether the button is currently pressed.
◆ text
| string WoopWoop.UI.Button.text = "Button" |
The text displayed on the button.
The documentation for this class was generated from the following file: