User Tools

Site Tools


4rpl:commands:setunituitext

This is an old revision of the document!


Index

SetUnitUIText

SetUnitUIText(<-unit <-slot <-text)

Description

Sets the string UI text 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. Each widget also has a text. For the Label and Button widgets the text is what is shown on the widget.
For the Flip and Choice widget, the text is the label and the value is controlled by the state.

Note that this call only works on custom units. If used on a built in unit, it will do nothing.

Examples

   SetUnitUIText(self 0 "Sample Text")

Index

4rpl/commands/setunituitext.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)