This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:setunituioptions [2021/01/24 19:49] – added get/set tabs Sanian | 4rpl:commands:setunituioptions [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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. | + | Note that this call only works on custom units. |
+ | |||
+ | :WARNING: Should you use this API, all Choice widgets will get wiped on a new gameload. It doesn' | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> | ||
- | SetUnitUIOptions(self 0 ListN(" | + | SetUnitUIOptions(self 0 ListN(" |
+ | </ | ||
+ | <code 4rpl> | ||
+ | SetUnitUIOptions(self 5 Split(" | ||
</ | </ | ||
< | < | ||