Change return type of get_configuration_warnings to PackedStringArray

This commit is contained in:
Marc Gilleron 2022-09-19 16:43:15 +01:00
parent 908795301b
commit aed3822a93
126 changed files with 201 additions and 203 deletions

View file

@ -213,8 +213,8 @@ void Control::get_argument_options(const StringName &p_function, int p_idx, List
}
}
TypedArray<String> Control::get_configuration_warnings() const {
TypedArray<String> warnings = Node::get_configuration_warnings();
PackedStringArray Control::get_configuration_warnings() const {
PackedStringArray warnings = Node::get_configuration_warnings();
if (data.mouse_filter == MOUSE_FILTER_IGNORE && !data.tooltip.is_empty()) {
warnings.push_back(RTR("The Hint Tooltip won't be displayed as the control's Mouse Filter is set to \"Ignore\". To solve this, set the Mouse Filter to \"Stop\" or \"Pass\"."));