This is an old revision of the document!
⇐ Index
SetUnitUIOptions(<-unit <-slot <-optionsList)
Sets the options for a given UI control slot. Custom units can have UI configuration widgets. These are configured in the CPack manager.
Each widget occupies a slot, 0-7.
For the Label and Button widgets the options have no effect.
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.
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:
Advanced investigation not done on this.
SetUnitUIOptions(self 0 ListN("Larry" "Moe" "Curly" 3))
⇐ Index