This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:setunituistate [2021/01/24 19:48] – added get/set tabs Sanian | 4rpl:commands:setunituistate [2025/05/30 03:29] (current) – Argonwolf | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| 0 or 1. For the Choice widget the state is 0-N based on the number of choice items configured.\\ | 0 or 1. For the Choice widget the state is 0-N based on the number of choice items configured.\\ | ||
| Setting the state for a given unit is typically not needed. The state is usually controlled by the player interacting with UI widgets for the flip and choice widgets. | Setting the state for a given unit is typically not needed. The state is usually controlled by the player interacting with UI widgets for the flip and choice widgets. | ||
| - | \\ | + | |
| Note that this call only works on custom units. | Note that this call only works on custom units. | ||
| + | :NOTE:\\ | ||
| + | This API does not trigger the [[4rpl: | ||
| + | |||
| + | Setting UI state may not update the state visually; to fix this, it is possible to use SetUnitSelected to deselect and re-select the unit in the same frame, refreshing the UI. | ||
| ===== Examples ===== | ===== Examples ===== | ||