User Tools

Site Tools


4rpl:commands:setunituistate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setunituistate [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:setunituistate [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
 +
 +<WRAP tabs>
 +  * [[4rpl:commands:GetUnitUIState|Get]]
 +  * [[4rpl:commands:SetUnitUIState|Set]]
 +</WRAP>
  
 ====== 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.  If used on a built in unit, it will do nothing.\\ Note that this call only works on custom units.  If used on a built in unit, it will do nothing.\\
 +:NOTE:\\
 +This API does not trigger the [[4rpl:commands:func_uicallback|:_UICallback]] built-in fuction.
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/setunituistate.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)