User Tools

Site Tools


4rpl:commands:setunituioptions

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:setunituioptions [2024/08/24 16:35] – Recovered draft about unreliability Vertu4rpl:commands:setunituioptions [2024/08/24 16:45] (current) – old revision restored (2021/01/24 14:49) Vertu
Line 16: Line 16:
 For the Flip and Choice widget, the options are the values shown in the ui widget.\\ For the Flip and Choice widget, the options are the values shown in the ui widget.\\
 \\ \\
-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.\\
- +
-:WARNING: Changes set by this API do not persist between saves. You will have to apply this API in :Gameloaded to prevent errors.\\ +
-Theorized erros are:\\ +
-  * Flip widgets for the unit using this API will change states visually but not internally. When you have a flip widget as "ON/OFF" and its currently "OFF" (state 1), when this API is used, it will still say "OFF" but is actually "ON" (state 0). +
-  * Other choice widgets that are not set via this API, get wiped. Example: Choice: "1,2,3,4,5" is in widget 3 in the CPACK settings, widget 2, choice, is set by this API. After gameload, that widget becomes: "".\\ +
-:NOTE: Advanced investigation not done on this.+
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/setunituioptions.txt · Last modified: 2024/08/24 16:45 by Vertu