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.
Exult first looks for an open gump belonging to item, then tries its immediate owner's gump. It uses the first slider widget whose field ID matches; an invalid item, missing gump, or missing slider returns 0.