Change return type of get_configuration_warnings to PackedStringArray
This commit is contained in:
parent
908795301b
commit
aed3822a93
126 changed files with 201 additions and 203 deletions
|
|
@ -192,8 +192,8 @@ void Container::_notification(int p_what) {
|
|||
}
|
||||
}
|
||||
|
||||
TypedArray<String> Container::get_configuration_warnings() const {
|
||||
TypedArray<String> warnings = Control::get_configuration_warnings();
|
||||
PackedStringArray Container::get_configuration_warnings() const {
|
||||
PackedStringArray warnings = Control::get_configuration_warnings();
|
||||
|
||||
if (get_class() == "Container" && get_script().is_null()) {
|
||||
warnings.push_back(RTR("Container by itself serves no purpose unless a script configures its children placement behavior.\nIf you don't intend to add a script, use a plain Control node instead."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue