User Tools

Site Tools


4rpl:commands:setunituioptions

Index

SetUnitUIOptions

SetUnitUIOptions(<-unit <-slot <-optionsList)

Description

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.

Examples

   SetUnitUIOptions(self 0 ListN("Larry" "Moe" "Curly" 3))

Index

4rpl/commands/setunituioptions.txt · Last modified: 2021/01/24 14:49 by Sanian