This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setunituioptions [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setunituioptions [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
< | < | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[4rpl: | ||
+ | * [[4rpl: | ||
+ | </ | ||
====== SetUnitUIOptions ====== | ====== SetUnitUIOptions ====== | ||
Line 11: | 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(" | ||
</ | </ | ||
< | < | ||