1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Update Node::get_configuration_warnings signature

This commit is contained in:
RedMser
2023-07-05 15:41:44 +02:00
parent bf37a9bac6
commit d3852deaa4
132 changed files with 217 additions and 213 deletions

View File

@@ -401,11 +401,14 @@ Vector2 PointLight2D::get_texture_offset() const {
return texture_offset;
}
PackedStringArray PointLight2D::get_configuration_warnings() const {
PackedStringArray warnings = Node::get_configuration_warnings();
Array PointLight2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings();
if (!texture.is_valid()) {
warnings.push_back(RTR("A texture with the shape of the light must be supplied to the \"Texture\" property."));
Dictionary texture_warning;
texture_warning["message"] = RTR("A texture with the shape of the light must be supplied.");
texture_warning["property"] = "texture";
warnings.push_back(texture_warning);
}
return warnings;