NamePickerField ​
Inherits: ConfigField < HBoxContainer
A String property chosen from a list of names that the owner gives with set_choices (the parts of a Dynamic Music, its states). A value that is not in the list any more is shown as missing, so a renamed part is seen at once. With Allow empty the first entry is the empty value, named by Empty text.
Properties ​
String | empty_text | "(none)" |
bool | allow_empty | true |
Methods ​
void | set_choices( names: PackedStringArray ) |
PackedStringArray | get_choices() |
Property descriptions ​
String empty_text = "(none)" ​
The text of the empty choice ("Any state", "(none)")
bool allow_empty = true ​
Can the value be empty? (the first entry of the list)
Method descriptions ​
void set_choices( names: PackedStringArray ) ​
Gives the names to choose from; the value that is shown stays
PackedStringArray get_choices() ​
The names it offers now (for the tests)