UI_set_slider_value
![[Exult]](images/exultsm.png)
int UI_set_slider_value(object item, int field_id, int value)
int item->set_slider_value(int field_id, int value)
Sets the current value of a slider widget within a dynamic gump.
Parameters
| Parameter / value | Description |
|---|---|
item |
The object whose dynamic gump contains the slider widget. |
field_id |
The numeric identifier of the slider widget to update. |
value |
The value to set on the slider. |
Return
Returns 1 on success, 0 on failure (e.g. if the gump is not found or the field does not exist).
Notes
The value is clamped to the slider's configured minimum and maximum range.