This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setunituistate [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setunituistate [2025/05/30 03:29] (current) – Argonwolf | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
< | < | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[4rpl: | ||
+ | * [[4rpl: | ||
+ | </ | ||
====== SetUnitUIState ====== | ====== SetUnitUIState ====== | ||
Line 10: | 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 ===== |