Represents a slider UI element.
More...
|
override void | Update (float deltaTime) |
| Called every frame to update the component's state.
|
|
virtual unsafe void | Render (sbyte *minBytePtr, sbyte *maxBytePtr, float *valuePtr) |
| Renders the slider UI element.
|
|
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.
|
|
|
float | Value |
| The current value of the slider.
|
|
string | MinText = "" |
| The text displayed for the minimum value of the slider.
|
|
string | MaxText = "" |
| The text displayed for the maximum value of the slider.
|
|
float | MinValue = 0 |
| The minimum value of the slider.
|
|
float | MaxValue = 100 |
| The maximum value of the slider.
|
|
Action< float > | OnValueChange |
| Action invoked when the value of the slider changes.
|
|
Rectangle | bounds |
| The bounds of the UI component.
|
|
Color | Color = Raylib.BLACK |
| The color of the renderer.
|
|
Represents a slider UI element.
◆ Render()
virtual unsafe void WoopWoop.UI.Slider.Render |
( |
sbyte * | minBytePtr, |
|
|
sbyte * | maxBytePtr, |
|
|
float * | valuePtr ) |
|
virtual |
Renders the slider UI element.
- Parameters
-
minBytePtr | Pointer to the minimum text. |
maxBytePtr | Pointer to the maximum text. |
valuePtr | Pointer to the value of the slider. |
Reimplemented in WoopWoop.UI.SliderBar.
◆ Update()
override void WoopWoop.UI.Slider.Update |
( |
float | deltaTime | ) |
|
|
virtual |
Called every frame to update the component's state.
Reimplemented from WoopWoop.Component.
◆ MaxText
string WoopWoop.UI.Slider.MaxText = "" |
The text displayed for the maximum value of the slider.
◆ MaxValue
float WoopWoop.UI.Slider.MaxValue = 100 |
The maximum value of the slider.
◆ MinText
string WoopWoop.UI.Slider.MinText = "" |
The text displayed for the minimum value of the slider.
◆ MinValue
float WoopWoop.UI.Slider.MinValue = 0 |
The minimum value of the slider.
◆ OnValueChange
Action<float> WoopWoop.UI.Slider.OnValueChange |
Action invoked when the value of the slider changes.
◆ Value
float WoopWoop.UI.Slider.Value |
The current value of the slider.
The documentation for this class was generated from the following file: