Add optional constructor arguments to more Control nodes

This can be used to make editor code more compact.
However, as of writing, these constructor arguments cannot be used
from the scripting API.

This was already provided for Label and CheckBox, but it was missing
for other Control nodes where it made sense to provide a default value.
This commit is contained in:
Hugo Locurcio 2022-03-04 09:18:44 +01:00
parent d0c3094da8
commit a06f82ca4d
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
17 changed files with 31 additions and 17 deletions

View file

@ -940,7 +940,7 @@ public:
void set_draw_spaces(bool p_enabled);
bool is_drawing_spaces() const;
TextEdit();
TextEdit(const String &p_placeholder = String());
};
VARIANT_ENUM_CAST(TextEdit::CaretType);