Revert "Update Node::get_configuration_warnings signature"

This reverts commit d3852deaa4.
This commit is contained in:
Rémi Verschelde 2024-02-17 19:03:21 +01:00
parent 9f76398781
commit 21f0529aa9
No known key found for this signature in database
GPG Key ID: C3336907360768E1
132 changed files with 213 additions and 217 deletions

View File

@ -87,8 +87,8 @@ void MultiplayerSpawner::_get_property_list(List<PropertyInfo> *p_list) const {
} }
#endif #endif
Array MultiplayerSpawner::get_configuration_warnings() const { PackedStringArray MultiplayerSpawner::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (spawn_path.is_empty() || !has_node(spawn_path)) { if (spawn_path.is_empty() || !has_node(spawn_path)) {
warnings.push_back(RTR("A valid NodePath must be set in the \"Spawn Path\" property in order for MultiplayerSpawner to be able to spawn Nodes.")); warnings.push_back(RTR("A valid NodePath must be set in the \"Spawn Path\" property in order for MultiplayerSpawner to be able to spawn Nodes."));

View File

@ -91,7 +91,7 @@ protected:
void _get_property_list(List<PropertyInfo> *p_list) const; void _get_property_list(List<PropertyInfo> *p_list) const;
#endif #endif
public: public:
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
Node *get_spawn_node() const { Node *get_spawn_node() const {
return spawn_node.is_valid() ? Object::cast_to<Node>(ObjectDB::get_instance(spawn_node)) : nullptr; return spawn_node.is_valid() ? Object::cast_to<Node>(ObjectDB::get_instance(spawn_node)) : nullptr;

View File

@ -143,8 +143,8 @@ bool MultiplayerSynchronizer::update_inbound_sync_time(uint16_t p_network_time)
return true; return true;
} }
Array MultiplayerSynchronizer::get_configuration_warnings() const { PackedStringArray MultiplayerSynchronizer::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (root_path.is_empty() || !has_node(root_path)) { if (root_path.is_empty() || !has_node(root_path)) {
warnings.push_back(RTR("A valid NodePath must be set in the \"Root Path\" property in order for MultiplayerSynchronizer to be able to synchronize properties.")); warnings.push_back(RTR("A valid NodePath must be set in the \"Root Path\" property in order for MultiplayerSynchronizer to be able to synchronize properties."));

View File

@ -91,7 +91,7 @@ public:
bool update_outbound_sync_time(uint64_t p_usec); bool update_outbound_sync_time(uint64_t p_usec);
bool update_inbound_sync_time(uint16_t p_network_time); bool update_inbound_sync_time(uint16_t p_network_time);
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_replication_interval(double p_interval); void set_replication_interval(double p_interval);
double get_replication_interval() const; double get_replication_interval() const;

View File

@ -569,8 +569,8 @@ StringName AnimatedSprite2D::get_animation() const {
return animation; return animation;
} }
Array AnimatedSprite2D::get_configuration_warnings() const { PackedStringArray AnimatedSprite2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (frames.is_null()) { if (frames.is_null()) {
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite2D to display frames.")); warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite2D to display frames."));
} }

View File

@ -125,7 +125,7 @@ public:
void set_flip_v(bool p_flip); void set_flip_v(bool p_flip);
bool is_flipped_v() const; bool is_flipped_v() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override; virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
AnimatedSprite2D(); AnimatedSprite2D();

View File

@ -113,8 +113,8 @@ Color CanvasModulate::get_color() const {
return color; return color;
} }
Array CanvasModulate::get_configuration_warnings() const { PackedStringArray CanvasModulate::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (is_in_canvas && is_visible_in_tree()) { if (is_in_canvas && is_visible_in_tree()) {
List<Node *> nodes; List<Node *> nodes;

View File

@ -54,7 +54,7 @@ public:
void set_color(const Color &p_color); void set_color(const Color &p_color);
Color get_color() const; Color get_color() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
CanvasModulate(); CanvasModulate();
~CanvasModulate(); ~CanvasModulate();

View File

@ -582,8 +582,8 @@ void CollisionObject2D::_update_pickable() {
} }
} }
Array CollisionObject2D::get_configuration_warnings() const { PackedStringArray CollisionObject2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (shapes.is_empty()) { if (shapes.is_empty()) {
warnings.push_back(RTR("This node has no shape, so it can't collide or interact with other objects.\nConsider adding a CollisionShape2D or CollisionPolygon2D as a child to define its shape.")); warnings.push_back(RTR("This node has no shape, so it can't collide or interact with other objects.\nConsider adding a CollisionShape2D or CollisionPolygon2D as a child to define its shape."));

View File

@ -166,7 +166,7 @@ public:
void set_pickable(bool p_enabled); void set_pickable(bool p_enabled);
bool is_pickable() const; bool is_pickable() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
_FORCE_INLINE_ RID get_rid() const { return rid; } _FORCE_INLINE_ RID get_rid() const { return rid; }

View File

@ -232,8 +232,8 @@ bool CollisionPolygon2D::_edit_is_selected_on_click(const Point2 &p_point, doubl
} }
#endif #endif
Array CollisionPolygon2D::get_configuration_warnings() const { PackedStringArray CollisionPolygon2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<CollisionObject2D>(get_parent())) { if (!Object::cast_to<CollisionObject2D>(get_parent())) {
warnings.push_back(RTR("CollisionPolygon2D only serves to provide a collision shape to a CollisionObject2D derived node. Please only use it as a child of Area2D, StaticBody2D, RigidBody2D, CharacterBody2D, etc. to give them a shape.")); warnings.push_back(RTR("CollisionPolygon2D only serves to provide a collision shape to a CollisionObject2D derived node. Please only use it as a child of Area2D, StaticBody2D, RigidBody2D, CharacterBody2D, etc. to give them a shape."));

View File

@ -77,7 +77,7 @@ public:
void set_polygon(const Vector<Point2> &p_polygon); void set_polygon(const Vector<Point2> &p_polygon);
Vector<Point2> get_polygon() const; Vector<Point2> get_polygon() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_disabled(bool p_disabled); void set_disabled(bool p_disabled);
bool is_disabled() const; bool is_disabled() const;

View File

@ -173,8 +173,8 @@ bool CollisionShape2D::_edit_is_selected_on_click(const Point2 &p_point, double
return shape->_edit_is_selected_on_click(p_point, p_tolerance); return shape->_edit_is_selected_on_click(p_point, p_tolerance);
} }
Array CollisionShape2D::get_configuration_warnings() const { PackedStringArray CollisionShape2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
CollisionObject2D *col_object = Object::cast_to<CollisionObject2D>(get_parent()); CollisionObject2D *col_object = Object::cast_to<CollisionObject2D>(get_parent());
if (col_object == nullptr) { if (col_object == nullptr) {

View File

@ -80,7 +80,7 @@ public:
void set_debug_color(const Color &p_color); void set_debug_color(const Color &p_color);
Color get_debug_color() const; Color get_debug_color() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
CollisionShape2D(); CollisionShape2D();
}; };

View File

@ -246,8 +246,8 @@ bool CPUParticles2D::get_fractional_delta() const {
return fractional_delta; return fractional_delta;
} }
Array CPUParticles2D::get_configuration_warnings() const { PackedStringArray CPUParticles2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
CanvasItemMaterial *mat = Object::cast_to<CanvasItemMaterial>(get_material().ptr()); CanvasItemMaterial *mat = Object::cast_to<CanvasItemMaterial>(get_material().ptr());

View File

@ -282,7 +282,7 @@ public:
void set_gravity(const Vector2 &p_gravity); void set_gravity(const Vector2 &p_gravity);
Vector2 get_gravity() const; Vector2 get_gravity() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void restart(); void restart();

View File

@ -327,8 +327,8 @@ float GPUParticles2D::get_interp_to_end() const {
return interp_to_end_factor; return interp_to_end_factor;
} }
Array GPUParticles2D::get_configuration_warnings() const { PackedStringArray GPUParticles2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (process_material.is_null()) { if (process_material.is_null()) {
warnings.push_back(RTR("A material to process the particles is not assigned, so no behavior is imprinted.")); warnings.push_back(RTR("A material to process the particles is not assigned, so no behavior is imprinted."));

View File

@ -161,7 +161,7 @@ public:
void set_amount_ratio(float p_ratio); void set_amount_ratio(float p_ratio);
float get_amount_ratio() const; float get_amount_ratio() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_sub_emitter(const NodePath &p_path); void set_sub_emitter(const NodePath &p_path);
NodePath get_sub_emitter() const; NodePath get_sub_emitter() const;

View File

@ -212,8 +212,8 @@ bool Joint2D::get_exclude_nodes_from_collision() const {
return exclude_from_collision; return exclude_from_collision;
} }
Array Joint2D::get_configuration_warnings() const { PackedStringArray Joint2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (!warning.is_empty()) { if (!warning.is_empty()) {
warnings.push_back(warning); warnings.push_back(warning);

View File

@ -62,7 +62,7 @@ protected:
_FORCE_INLINE_ bool is_configured() const { return configured; } _FORCE_INLINE_ bool is_configured() const { return configured; }
public: public:
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
void set_node_a(const NodePath &p_node_a); void set_node_a(const NodePath &p_node_a);
NodePath get_node_a() const; NodePath get_node_a() const;

View File

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

View File

@ -174,7 +174,7 @@ public:
void set_texture_scale(real_t p_scale); void set_texture_scale(real_t p_scale);
real_t get_texture_scale() const; real_t get_texture_scale() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
PointLight2D(); PointLight2D();
}; };

View File

@ -247,8 +247,8 @@ int LightOccluder2D::get_occluder_light_mask() const {
return mask; return mask;
} }
Array LightOccluder2D::get_configuration_warnings() const { PackedStringArray LightOccluder2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!occluder_polygon.is_valid()) { if (!occluder_polygon.is_valid()) {
warnings.push_back(RTR("An occluder polygon must be set (or drawn) for this occluder to take effect.")); warnings.push_back(RTR("An occluder polygon must be set (or drawn) for this occluder to take effect."));

View File

@ -105,7 +105,7 @@ public:
void set_as_sdf_collision(bool p_enable); void set_as_sdf_collision(bool p_enable);
bool is_set_as_sdf_collision() const; bool is_set_as_sdf_collision() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
LightOccluder2D(); LightOccluder2D();
~LightOccluder2D(); ~LightOccluder2D();

View File

@ -624,8 +624,8 @@ void NavigationAgent2D::_avoidance_done(Vector3 p_new_velocity) {
emit_signal(SNAME("velocity_computed"), safe_velocity); emit_signal(SNAME("velocity_computed"), safe_velocity);
} }
Array NavigationAgent2D::get_configuration_warnings() const { PackedStringArray NavigationAgent2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<Node2D>(get_parent())) { if (!Object::cast_to<Node2D>(get_parent())) {
warnings.push_back(RTR("The NavigationAgent2D can be used only under a Node2D inheriting parent node.")); warnings.push_back(RTR("The NavigationAgent2D can be used only under a Node2D inheriting parent node."));

View File

@ -200,7 +200,7 @@ public:
void _avoidance_done(Vector3 p_new_velocity); void _avoidance_done(Vector3 p_new_velocity);
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_avoidance_layers(uint32_t p_layers); void set_avoidance_layers(uint32_t p_layers);
uint32_t get_avoidance_layers() const; uint32_t get_avoidance_layers() const;

View File

@ -337,8 +337,8 @@ void NavigationLink2D::set_travel_cost(real_t p_travel_cost) {
NavigationServer2D::get_singleton()->link_set_travel_cost(link, travel_cost); NavigationServer2D::get_singleton()->link_set_travel_cost(link, travel_cost);
} }
Array NavigationLink2D::get_configuration_warnings() const { PackedStringArray NavigationLink2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (start_position.is_equal_approx(end_position)) { if (start_position.is_equal_approx(end_position)) {
warnings.push_back(RTR("NavigationLink2D start position should be different than the end position to be useful.")); warnings.push_back(RTR("NavigationLink2D start position should be different than the end position to be useful."));

View File

@ -93,7 +93,7 @@ public:
void set_travel_cost(real_t p_travel_cost); void set_travel_cost(real_t p_travel_cost);
real_t get_travel_cost() const { return travel_cost; } real_t get_travel_cost() const { return travel_cost; }
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
NavigationLink2D(); NavigationLink2D();
~NavigationLink2D(); ~NavigationLink2D();

View File

@ -283,8 +283,8 @@ void NavigationRegion2D::_navigation_debug_changed() {
} }
#endif // DEBUG_ENABLED #endif // DEBUG_ENABLED
Array NavigationRegion2D::get_configuration_warnings() const { PackedStringArray NavigationRegion2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (is_visible_in_tree() && is_inside_tree()) { if (is_visible_in_tree() && is_inside_tree()) {
if (!navigation_polygon.is_valid()) { if (!navigation_polygon.is_valid()) {

View File

@ -114,7 +114,7 @@ public:
void set_avoidance_layer_value(int p_layer_number, bool p_value); void set_avoidance_layer_value(int p_layer_number, bool p_value);
bool get_avoidance_layer_value(int p_layer_number) const; bool get_avoidance_layer_value(int p_layer_number) const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void bake_navigation_polygon(bool p_on_thread); void bake_navigation_polygon(bool p_on_thread);
void _bake_finished(Ref<NavigationPolygon> p_navigation_polygon); void _bake_finished(Ref<NavigationPolygon> p_navigation_polygon);

View File

@ -137,8 +137,8 @@ void ParallaxLayer::set_base_offset_and_scale(const Point2 &p_offset, real_t p_s
_update_mirroring(); _update_mirroring();
} }
Array ParallaxLayer::get_configuration_warnings() const { PackedStringArray ParallaxLayer::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<ParallaxBackground>(get_parent())) { if (!Object::cast_to<ParallaxBackground>(get_parent())) {
warnings.push_back(RTR("ParallaxLayer node only works when set as child of a ParallaxBackground node.")); warnings.push_back(RTR("ParallaxLayer node only works when set as child of a ParallaxBackground node."));

View File

@ -59,7 +59,7 @@ public:
void set_base_offset_and_scale(const Point2 &p_offset, real_t p_scale); void set_base_offset_and_scale(const Point2 &p_offset, real_t p_scale);
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
ParallaxLayer(); ParallaxLayer();
}; };

View File

@ -287,8 +287,8 @@ void PathFollow2D::_validate_property(PropertyInfo &p_property) const {
} }
} }
Array PathFollow2D::get_configuration_warnings() const { PackedStringArray PathFollow2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (is_visible_in_tree() && is_inside_tree()) { if (is_visible_in_tree() && is_inside_tree()) {
if (!Object::cast_to<Path2D>(get_parent())) { if (!Object::cast_to<Path2D>(get_parent())) {

View File

@ -106,7 +106,7 @@ public:
void set_cubic_interpolation_enabled(bool p_enabled); void set_cubic_interpolation_enabled(bool p_enabled);
bool is_cubic_interpolation_enabled() const; bool is_cubic_interpolation_enabled() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
PathFollow2D() {} PathFollow2D() {}
}; };

View File

@ -106,8 +106,8 @@ void PhysicalBone2D::_find_joint_child() {
} }
} }
Array PhysicalBone2D::get_configuration_warnings() const { PackedStringArray PhysicalBone2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!parent_skeleton) { if (!parent_skeleton) {
warnings.push_back(RTR("A PhysicalBone2D only works with a Skeleton2D or another PhysicalBone2D as a parent node!")); warnings.push_back(RTR("A PhysicalBone2D only works with a Skeleton2D or another PhysicalBone2D as a parent node!"));

View File

@ -79,7 +79,7 @@ public:
void set_follow_bone_when_simulating(bool p_follow); void set_follow_bone_when_simulating(bool p_follow);
bool get_follow_bone_when_simulating() const; bool get_follow_bone_when_simulating() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
PhysicalBone2D(); PhysicalBone2D();
~PhysicalBone2D(); ~PhysicalBone2D();

View File

@ -928,10 +928,10 @@ void RigidBody2D::_notification(int p_what) {
#endif #endif
} }
Array RigidBody2D::get_configuration_warnings() const { PackedStringArray RigidBody2D::get_configuration_warnings() const {
Transform2D t = get_transform(); Transform2D t = get_transform();
Array warnings = CollisionObject2D::get_configuration_warnings(); PackedStringArray warnings = CollisionObject2D::get_configuration_warnings();
if (ABS(t.columns[0].length() - 1.0) > 0.05 || ABS(t.columns[1].length() - 1.0) > 0.05) { if (ABS(t.columns[0].length() - 1.0) > 0.05 || ABS(t.columns[1].length() - 1.0) > 0.05) {
warnings.push_back(RTR("Size changes to RigidBody2D will be overridden by the physics engine when running.\nChange the size in children collision shapes instead.")); warnings.push_back(RTR("Size changes to RigidBody2D will be overridden by the physics engine when running.\nChange the size in children collision shapes instead."));

View File

@ -313,7 +313,7 @@ public:
TypedArray<Node2D> get_colliding_bodies() const; //function for script TypedArray<Node2D> get_colliding_bodies() const; //function for script
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
RigidBody2D(); RigidBody2D();
~RigidBody2D(); ~RigidBody2D();

View File

@ -200,8 +200,8 @@ void RemoteTransform2D::force_update_cache() {
_update_cache(); _update_cache();
} }
Array RemoteTransform2D::get_configuration_warnings() const { PackedStringArray RemoteTransform2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!has_node(remote_node) || !Object::cast_to<Node2D>(get_node(remote_node))) { if (!has_node(remote_node) || !Object::cast_to<Node2D>(get_node(remote_node))) {
warnings.push_back(RTR("Path property must point to a valid Node2D node to work.")); warnings.push_back(RTR("Path property must point to a valid Node2D node to work."));

View File

@ -70,7 +70,7 @@ public:
void force_update_cache(); void force_update_cache();
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
RemoteTransform2D(); RemoteTransform2D();
}; };

View File

@ -402,8 +402,8 @@ Array ShapeCast2D::_get_collision_result() const {
return ret; return ret;
} }
Array ShapeCast2D::get_configuration_warnings() const { PackedStringArray ShapeCast2D::get_configuration_warnings() const {
Array warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (shape.is_null()) { if (shape.is_null()) {
warnings.push_back(RTR("This node cannot interact with other objects unless a Shape2D is assigned.")); warnings.push_back(RTR("This node cannot interact with other objects unless a Shape2D is assigned."));

View File

@ -118,7 +118,7 @@ public:
void remove_exception(const CollisionObject2D *p_node); void remove_exception(const CollisionObject2D *p_node);
void clear_exceptions(); void clear_exceptions();
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
ShapeCast2D(); ShapeCast2D();
}; };

View File

@ -415,8 +415,8 @@ int Bone2D::get_index_in_skeleton() const {
return skeleton_index; return skeleton_index;
} }
Array Bone2D::get_configuration_warnings() const { PackedStringArray Bone2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!skeleton) { if (!skeleton) {
if (parent_bone) { if (parent_bone) {
warnings.push_back(RTR("This Bone2D chain should end at a Skeleton2D node.")); warnings.push_back(RTR("This Bone2D chain should end at a Skeleton2D node."));

View File

@ -78,7 +78,7 @@ public:
void apply_rest(); void apply_rest();
Transform2D get_skeleton_rest() const; Transform2D get_skeleton_rest() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_autocalculate_length_and_angle(bool p_autocalculate); void set_autocalculate_length_and_angle(bool p_autocalculate);
bool get_autocalculate_length_and_angle() const; bool get_autocalculate_length_and_angle() const;

View File

@ -846,8 +846,8 @@ TypedArray<Vector2i> TileMap::get_surrounding_cells(const Vector2i &p_coords) {
return tile_set->get_surrounding_cells(p_coords); return tile_set->get_surrounding_cells(p_coords);
} }
Array TileMap::get_configuration_warnings() const { PackedStringArray TileMap::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
// Retrieve the set of Z index values with a Y-sorted layer. // Retrieve the set of Z index values with a Y-sorted layer.
RBSet<int> y_sorted_z_index; RBSet<int> y_sorted_z_index;

View File

@ -216,7 +216,7 @@ public:
GDVIRTUAL3(_tile_data_runtime_update, int, Vector2i, TileData *); GDVIRTUAL3(_tile_data_runtime_update, int, Vector2i, TileData *);
// Configuration warnings. // Configuration warnings.
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
TileMap(); TileMap();
~TileMap(); ~TileMap();

View File

@ -87,8 +87,8 @@ void BoneAttachment3D::_get_property_list(List<PropertyInfo> *p_list) const {
} }
} }
Array BoneAttachment3D::get_configuration_warnings() const { PackedStringArray BoneAttachment3D::get_configuration_warnings() const {
Array warnings = Node3D::get_configuration_warnings(); PackedStringArray warnings = Node3D::get_configuration_warnings();
if (use_external_skeleton) { if (use_external_skeleton) {
if (external_skeleton_node_cache.is_null()) { if (external_skeleton_node_cache.is_null()) {

View File

@ -71,8 +71,7 @@ public:
virtual void notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, Dictionary p_rename_map); virtual void notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, Dictionary p_rename_map);
#endif // TOOLS_ENABLED #endif // TOOLS_ENABLED
public: virtual PackedStringArray get_configuration_warnings() const override;
virtual Array get_configuration_warnings() const override;
void set_bone_name(const String &p_name); void set_bone_name(const String &p_name);
String get_bone_name() const; String get_bone_name() const;

View File

@ -728,8 +728,8 @@ bool CollisionObject3D::get_capture_input_on_drag() const {
return capture_input_on_drag; return capture_input_on_drag;
} }
Array CollisionObject3D::get_configuration_warnings() const { PackedStringArray CollisionObject3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (shapes.is_empty()) { if (shapes.is_empty()) {
warnings.push_back(RTR("This node has no shape, so it can't collide or interact with other objects.\nConsider adding a CollisionShape3D or CollisionPolygon3D as a child to define its shape.")); warnings.push_back(RTR("This node has no shape, so it can't collide or interact with other objects.\nConsider adding a CollisionShape3D or CollisionPolygon3D as a child to define its shape."));

View File

@ -173,7 +173,7 @@ public:
_FORCE_INLINE_ RID get_rid() const { return rid; } _FORCE_INLINE_ RID get_rid() const { return rid; }
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
CollisionObject3D(); CollisionObject3D();
~CollisionObject3D(); ~CollisionObject3D();

View File

@ -168,8 +168,8 @@ void CollisionPolygon3D::set_margin(real_t p_margin) {
} }
} }
Array CollisionPolygon3D::get_configuration_warnings() const { PackedStringArray CollisionPolygon3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<CollisionObject3D>(get_parent())) { if (!Object::cast_to<CollisionObject3D>(get_parent())) {
warnings.push_back(RTR("CollisionPolygon3D only serves to provide a collision shape to a CollisionObject3D derived node.\nPlease only use it as a child of Area3D, StaticBody3D, RigidBody3D, CharacterBody3D, etc. to give them a shape.")); warnings.push_back(RTR("CollisionPolygon3D only serves to provide a collision shape to a CollisionObject3D derived node.\nPlease only use it as a child of Area3D, StaticBody3D, RigidBody3D, CharacterBody3D, etc. to give them a shape."));

View File

@ -74,7 +74,7 @@ public:
real_t get_margin() const; real_t get_margin() const;
void set_margin(real_t p_margin); void set_margin(real_t p_margin);
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
CollisionPolygon3D(); CollisionPolygon3D();
}; };

View File

@ -118,8 +118,8 @@ void CollisionShape3D::resource_changed(Ref<Resource> res) {
} }
#endif #endif
Array CollisionShape3D::get_configuration_warnings() const { PackedStringArray CollisionShape3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
CollisionObject3D *col_object = Object::cast_to<CollisionObject3D>(get_parent()); CollisionObject3D *col_object = Object::cast_to<CollisionObject3D>(get_parent());
if (col_object == nullptr) { if (col_object == nullptr) {

View File

@ -64,7 +64,7 @@ public:
void set_disabled(bool p_disabled); void set_disabled(bool p_disabled);
bool is_disabled() const; bool is_disabled() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
CollisionShape3D(); CollisionShape3D();
~CollisionShape3D(); ~CollisionShape3D();

View File

@ -203,8 +203,8 @@ bool CPUParticles3D::get_fractional_delta() const {
return fractional_delta; return fractional_delta;
} }
Array CPUParticles3D::get_configuration_warnings() const { PackedStringArray CPUParticles3D::get_configuration_warnings() const {
Array warnings = GeometryInstance3D::get_configuration_warnings(); PackedStringArray warnings = GeometryInstance3D::get_configuration_warnings();
bool mesh_found = false; bool mesh_found = false;
bool anim_material_found = false; bool anim_material_found = false;

View File

@ -305,7 +305,7 @@ public:
void set_gravity(const Vector3 &p_gravity); void set_gravity(const Vector3 &p_gravity);
Vector3 get_gravity() const; Vector3 get_gravity() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void restart(); void restart();

View File

@ -162,8 +162,8 @@ void Decal::_validate_property(PropertyInfo &p_property) const {
} }
} }
Array Decal::get_configuration_warnings() const { PackedStringArray Decal::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
warnings.push_back(RTR("Decals are only available when using the Forward+ or Mobile rendering backends.")); warnings.push_back(RTR("Decals are only available when using the Forward+ or Mobile rendering backends."));

View File

@ -69,7 +69,7 @@ protected:
#endif // DISABLE_DEPRECATED #endif // DISABLE_DEPRECATED
public: public:
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
void set_size(const Vector3 &p_size); void set_size(const Vector3 &p_size);
Vector3 get_size() const; Vector3 get_size() const;

View File

@ -117,8 +117,8 @@ AABB FogVolume::get_aabb() const {
return AABB(); return AABB();
} }
Array FogVolume::get_configuration_warnings() const { PackedStringArray FogVolume::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
Ref<Environment> environment = get_viewport()->find_world_3d()->get_environment(); Ref<Environment> environment = get_viewport()->find_world_3d()->get_environment();

View File

@ -66,7 +66,7 @@ public:
Ref<Material> get_material() const; Ref<Material> get_material() const;
virtual AABB get_aabb() const override; virtual AABB get_aabb() const override;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
FogVolume(); FogVolume();
~FogVolume(); ~FogVolume();

View File

@ -296,8 +296,8 @@ bool GPUParticles3D::get_interpolate() const {
return interpolate; return interpolate;
} }
Array GPUParticles3D::get_configuration_warnings() const { PackedStringArray GPUParticles3D::get_configuration_warnings() const {
Array warnings = GeometryInstance3D::get_configuration_warnings(); PackedStringArray warnings = GeometryInstance3D::get_configuration_warnings();
bool meshes_found = false; bool meshes_found = false;
bool anim_material_found = false; bool anim_material_found = false;

View File

@ -164,7 +164,7 @@ public:
void set_draw_pass_mesh(int p_pass, const Ref<Mesh> &p_mesh); void set_draw_pass_mesh(int p_pass, const Ref<Mesh> &p_mesh);
Ref<Mesh> get_draw_pass_mesh(int p_pass) const; Ref<Mesh> get_draw_pass_mesh(int p_pass) const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_sub_emitter(const NodePath &p_path); void set_sub_emitter(const NodePath &p_path);
NodePath get_sub_emitter() const; NodePath get_sub_emitter() const;

View File

@ -527,8 +527,8 @@ Ref<Image> GPUParticlesCollisionSDF3D::bake() {
return ret; return ret;
} }
Array GPUParticlesCollisionSDF3D::get_configuration_warnings() const { PackedStringArray GPUParticlesCollisionSDF3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (bake_mask == 0) { if (bake_mask == 0) {
warnings.push_back(RTR("The Bake Mask has no bits enabled, which means baking will not produce any collision for this GPUParticlesCollisionSDF3D.\nTo resolve this, enable at least one bit in the Bake Mask property.")); warnings.push_back(RTR("The Bake Mask has no bits enabled, which means baking will not produce any collision for this GPUParticlesCollisionSDF3D.\nTo resolve this, enable at least one bit in the Bake Mask property."));

View File

@ -170,7 +170,7 @@ protected:
#endif // DISABLE_DEPRECATED #endif // DISABLE_DEPRECATED
public: public:
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
void set_thickness(float p_thickness); void set_thickness(float p_thickness);
float get_thickness() const; float get_thickness() const;

View File

@ -198,8 +198,8 @@ bool Joint3D::get_exclude_nodes_from_collision() const {
return exclude_from_collision; return exclude_from_collision;
} }
Array Joint3D::get_configuration_warnings() const { PackedStringArray Joint3D::get_configuration_warnings() const {
Array warnings = Node3D::get_configuration_warnings(); PackedStringArray warnings = Node3D::get_configuration_warnings();
if (!warning.is_empty()) { if (!warning.is_empty()) {
warnings.push_back(warning); warnings.push_back(warning);

View File

@ -63,7 +63,7 @@ protected:
_FORCE_INLINE_ bool is_configured() const { return configured; } _FORCE_INLINE_ bool is_configured() const { return configured; }
public: public:
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
void set_node_a(const NodePath &p_node_a); void set_node_a(const NodePath &p_node_a);
NodePath get_node_a() const; NodePath get_node_a() const;

View File

@ -169,8 +169,8 @@ AABB Light3D::get_aabb() const {
return AABB(); return AABB();
} }
Array Light3D::get_configuration_warnings() const { PackedStringArray Light3D::get_configuration_warnings() const {
Array warnings = VisualInstance3D::get_configuration_warnings(); PackedStringArray warnings = VisualInstance3D::get_configuration_warnings();
if (!get_scale().is_equal_approx(Vector3(1, 1, 1))) { if (!get_scale().is_equal_approx(Vector3(1, 1, 1))) {
warnings.push_back(RTR("A light's scale does not affect the visual size of the light.")); warnings.push_back(RTR("A light's scale does not affect the visual size of the light."));
@ -596,8 +596,8 @@ OmniLight3D::ShadowMode OmniLight3D::get_shadow_mode() const {
return shadow_mode; return shadow_mode;
} }
Array OmniLight3D::get_configuration_warnings() const { PackedStringArray OmniLight3D::get_configuration_warnings() const {
Array warnings = Light3D::get_configuration_warnings(); PackedStringArray warnings = Light3D::get_configuration_warnings();
if (!has_shadow() && get_projector().is_valid()) { if (!has_shadow() && get_projector().is_valid()) {
warnings.push_back(RTR("Projector texture only works with shadows active.")); warnings.push_back(RTR("Projector texture only works with shadows active."));
@ -628,8 +628,8 @@ OmniLight3D::OmniLight3D() :
set_shadow_mode(SHADOW_CUBE); set_shadow_mode(SHADOW_CUBE);
} }
Array SpotLight3D::get_configuration_warnings() const { PackedStringArray SpotLight3D::get_configuration_warnings() const {
Array warnings = Light3D::get_configuration_warnings(); PackedStringArray warnings = Light3D::get_configuration_warnings();
if (has_shadow() && get_param(PARAM_SPOT_ANGLE) >= 90.0) { if (has_shadow() && get_param(PARAM_SPOT_ANGLE) >= 90.0) {
warnings.push_back(RTR("A SpotLight3D with an angle wider than 90 degrees cannot cast shadows.")); warnings.push_back(RTR("A SpotLight3D with an angle wider than 90 degrees cannot cast shadows."));

View File

@ -147,7 +147,7 @@ public:
Color get_correlated_color() const; Color get_correlated_color() const;
virtual AABB get_aabb() const override; virtual AABB get_aabb() const override;
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
Light3D(); Light3D();
~Light3D(); ~Light3D();
@ -217,7 +217,7 @@ public:
void set_shadow_mode(ShadowMode p_mode); void set_shadow_mode(ShadowMode p_mode);
ShadowMode get_shadow_mode() const; ShadowMode get_shadow_mode() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
OmniLight3D(); OmniLight3D();
}; };
@ -231,7 +231,7 @@ protected:
static void _bind_methods(); static void _bind_methods();
public: public:
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
SpotLight3D(); SpotLight3D();
}; };

View File

@ -1528,8 +1528,8 @@ Ref<CameraAttributes> LightmapGI::get_camera_attributes() const {
return camera_attributes; return camera_attributes;
} }
Array LightmapGI::get_configuration_warnings() const { PackedStringArray LightmapGI::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
warnings.push_back(RTR("Lightmap can only be baked from a device that supports the RD backends. Lightmap baking may fail.")); warnings.push_back(RTR("Lightmap can only be baked from a device that supports the RD backends. Lightmap baking may fail."));

View File

@ -302,7 +302,7 @@ public:
BakeError bake(Node *p_from_node, String p_image_data_path = "", Lightmapper::BakeStepFunc p_bake_step = nullptr, void *p_bake_userdata = nullptr); BakeError bake(Node *p_from_node, String p_image_data_path = "", Lightmapper::BakeStepFunc p_bake_step = nullptr, void *p_bake_userdata = nullptr);
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
LightmapGI(); LightmapGI();
}; };

View File

@ -690,8 +690,8 @@ void NavigationAgent3D::_avoidance_done(Vector3 p_new_velocity) {
emit_signal(SNAME("velocity_computed"), safe_velocity); emit_signal(SNAME("velocity_computed"), safe_velocity);
} }
Array NavigationAgent3D::get_configuration_warnings() const { PackedStringArray NavigationAgent3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<Node3D>(get_parent())) { if (!Object::cast_to<Node3D>(get_parent())) {
warnings.push_back(RTR("The NavigationAgent3D can be used only under a Node3D inheriting parent node.")); warnings.push_back(RTR("The NavigationAgent3D can be used only under a Node3D inheriting parent node."));

View File

@ -221,7 +221,7 @@ public:
void _avoidance_done(Vector3 p_new_velocity); void _avoidance_done(Vector3 p_new_velocity);
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void set_avoidance_layers(uint32_t p_layers); void set_avoidance_layers(uint32_t p_layers);
uint32_t get_avoidance_layers() const; uint32_t get_avoidance_layers() const;

View File

@ -458,8 +458,8 @@ void NavigationLink3D::set_travel_cost(real_t p_travel_cost) {
NavigationServer3D::get_singleton()->link_set_travel_cost(link, travel_cost); NavigationServer3D::get_singleton()->link_set_travel_cost(link, travel_cost);
} }
Array NavigationLink3D::get_configuration_warnings() const { PackedStringArray NavigationLink3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (start_position.is_equal_approx(end_position)) { if (start_position.is_equal_approx(end_position)) {
warnings.push_back(RTR("NavigationLink3D start position should be different than the end position to be useful.")); warnings.push_back(RTR("NavigationLink3D start position should be different than the end position to be useful."));

View File

@ -99,7 +99,7 @@ public:
void set_travel_cost(real_t p_travel_cost); void set_travel_cost(real_t p_travel_cost);
real_t get_travel_cost() const { return travel_cost; } real_t get_travel_cost() const { return travel_cost; }
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
}; };
#endif // NAVIGATION_LINK_3D_H #endif // NAVIGATION_LINK_3D_H

View File

@ -270,8 +270,8 @@ bool NavigationRegion3D::is_baking() const {
return NavigationServer3D::get_singleton()->is_baking_navigation_mesh(navigation_mesh); return NavigationServer3D::get_singleton()->is_baking_navigation_mesh(navigation_mesh);
} }
Array NavigationRegion3D::get_configuration_warnings() const { PackedStringArray NavigationRegion3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (is_visible_in_tree() && is_inside_tree()) { if (is_visible_in_tree() && is_inside_tree()) {
if (!navigation_mesh.is_valid()) { if (!navigation_mesh.is_valid()) {

View File

@ -108,7 +108,7 @@ public:
void _bake_finished(Ref<NavigationMesh> p_navigation_mesh); void _bake_finished(Ref<NavigationMesh> p_navigation_mesh);
bool is_baking() const; bool is_baking() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
NavigationRegion3D(); NavigationRegion3D();
~NavigationRegion3D(); ~NavigationRegion3D();

View File

@ -693,8 +693,8 @@ OccluderInstance3D::BakeError OccluderInstance3D::bake_scene(Node *p_from_node,
return BAKE_ERROR_OK; return BAKE_ERROR_OK;
} }
Array OccluderInstance3D::get_configuration_warnings() const { PackedStringArray OccluderInstance3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!bool(GLOBAL_GET("rendering/occlusion_culling/use_occlusion_culling"))) { if (!bool(GLOBAL_GET("rendering/occlusion_culling/use_occlusion_culling"))) {
warnings.push_back(RTR("Occlusion culling is disabled in the Project Settings, which means occlusion culling won't be performed in the root viewport.\nTo resolve this, open the Project Settings and enable Rendering > Occlusion Culling > Use Occlusion Culling.")); warnings.push_back(RTR("Occlusion culling is disabled in the Project Settings, which means occlusion culling won't be performed in the root viewport.\nTo resolve this, open the Project Settings and enable Rendering > Occlusion Culling > Use Occlusion Culling."));

View File

@ -181,7 +181,7 @@ protected:
static void _bind_methods(); static void _bind_methods();
public: public:
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
enum BakeError { enum BakeError {
BAKE_ERROR_OK, BAKE_ERROR_OK,

View File

@ -317,8 +317,8 @@ void PathFollow3D::_validate_property(PropertyInfo &p_property) const {
} }
} }
Array PathFollow3D::get_configuration_warnings() const { PackedStringArray PathFollow3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (is_visible_in_tree() && is_inside_tree()) { if (is_visible_in_tree() && is_inside_tree()) {
if (!Object::cast_to<Path3D>(get_parent())) { if (!Object::cast_to<Path3D>(get_parent())) {

View File

@ -122,7 +122,7 @@ public:
void set_cubic_interpolation_enabled(bool p_enabled); void set_cubic_interpolation_enabled(bool p_enabled);
bool is_cubic_interpolation_enabled() const; bool is_cubic_interpolation_enabled() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
void update_transform(bool p_immediate = false); void update_transform(bool p_immediate = false);

View File

@ -995,8 +995,8 @@ TypedArray<Node3D> RigidBody3D::get_colliding_bodies() const {
return ret; return ret;
} }
Array RigidBody3D::get_configuration_warnings() const { PackedStringArray RigidBody3D::get_configuration_warnings() const {
Array warnings = CollisionObject3D::get_configuration_warnings(); PackedStringArray warnings = CollisionObject3D::get_configuration_warnings();
Vector3 scale = get_transform().get_basis().get_scale(); Vector3 scale = get_transform().get_basis().get_scale();
if (ABS(scale.x - 1.0) > 0.05 || ABS(scale.y - 1.0) > 0.05 || ABS(scale.z - 1.0) > 0.05) { if (ABS(scale.x - 1.0) > 0.05 || ABS(scale.y - 1.0) > 0.05 || ABS(scale.z - 1.0) > 0.05) {

View File

@ -329,7 +329,7 @@ public:
void set_constant_torque(const Vector3 &p_torque); void set_constant_torque(const Vector3 &p_torque);
Vector3 get_constant_torque() const; Vector3 get_constant_torque() const;
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
RigidBody3D(); RigidBody3D();
~RigidBody3D(); ~RigidBody3D();

View File

@ -190,8 +190,8 @@ AABB ReflectionProbe::get_aabb() const {
return aabb; return aabb;
} }
Array ReflectionProbe::get_configuration_warnings() const { PackedStringArray ReflectionProbe::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
warnings.push_back(RTR("ReflectionProbes are not supported when using the GL Compatibility backend yet. Support will be added in a future release.")); warnings.push_back(RTR("ReflectionProbes are not supported when using the GL Compatibility backend yet. Support will be added in a future release."));

View File

@ -122,7 +122,7 @@ public:
virtual AABB get_aabb() const override; virtual AABB get_aabb() const override;
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
ReflectionProbe(); ReflectionProbe();
~ReflectionProbe(); ~ReflectionProbe();

View File

@ -200,8 +200,8 @@ void RemoteTransform3D::force_update_cache() {
_update_cache(); _update_cache();
} }
Array RemoteTransform3D::get_configuration_warnings() const { PackedStringArray RemoteTransform3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!has_node(remote_node) || !Object::cast_to<Node3D>(get_node(remote_node))) { if (!has_node(remote_node) || !Object::cast_to<Node3D>(get_node(remote_node))) {
warnings.push_back(RTR("The \"Remote Path\" property must point to a valid Node3D or Node3D-derived node to work.")); warnings.push_back(RTR("The \"Remote Path\" property must point to a valid Node3D or Node3D-derived node to work."));

View File

@ -70,7 +70,7 @@ public:
void force_update_cache(); void force_update_cache();
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
RemoteTransform3D(); RemoteTransform3D();
}; };

View File

@ -170,8 +170,8 @@ void ShapeCast3D::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::COLOR, "debug_shape_custom_color"), "set_debug_shape_custom_color", "get_debug_shape_custom_color"); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "debug_shape_custom_color"), "set_debug_shape_custom_color", "get_debug_shape_custom_color");
} }
Array ShapeCast3D::get_configuration_warnings() const { PackedStringArray ShapeCast3D::get_configuration_warnings() const {
Array warnings = Node3D::get_configuration_warnings(); PackedStringArray warnings = Node3D::get_configuration_warnings();
if (shape.is_null()) { if (shape.is_null()) {
warnings.push_back(RTR("This node cannot interact with other objects unless a Shape3D is assigned.")); warnings.push_back(RTR("This node cannot interact with other objects unless a Shape3D is assigned."));

View File

@ -140,7 +140,7 @@ public:
void remove_exception(const CollisionObject3D *p_node); void remove_exception(const CollisionObject3D *p_node);
void clear_exceptions(); void clear_exceptions();
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
}; };
#endif // SHAPE_CAST_3D_H #endif // SHAPE_CAST_3D_H

View File

@ -376,8 +376,8 @@ void SoftBody3D::_bind_methods() {
BIND_ENUM_CONSTANT(DISABLE_MODE_KEEP_ACTIVE); BIND_ENUM_CONSTANT(DISABLE_MODE_KEEP_ACTIVE);
} }
Array SoftBody3D::get_configuration_warnings() const { PackedStringArray SoftBody3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (mesh.is_null()) { if (mesh.is_null()) {
warnings.push_back(RTR("This body will be ignored until you set a mesh.")); warnings.push_back(RTR("This body will be ignored until you set a mesh."));

View File

@ -126,7 +126,7 @@ protected:
void _notification(int p_what); void _notification(int p_what);
static void _bind_methods(); static void _bind_methods();
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
public: public:
RID get_physics_rid() const { return physics_rid; } RID get_physics_rid() const { return physics_rid; }

View File

@ -1430,8 +1430,8 @@ StringName AnimatedSprite3D::get_animation() const {
return animation; return animation;
} }
Array AnimatedSprite3D::get_configuration_warnings() const { PackedStringArray AnimatedSprite3D::get_configuration_warnings() const {
Array warnings = SpriteBase3D::get_configuration_warnings(); PackedStringArray warnings = SpriteBase3D::get_configuration_warnings();
if (frames.is_null()) { if (frames.is_null()) {
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite3D to display frames.")); warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite3D to display frames."));
} }

View File

@ -285,7 +285,7 @@ public:
virtual Rect2 get_item_rect() const override; virtual Rect2 get_item_rect() const override;
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override; virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
AnimatedSprite3D(); AnimatedSprite3D();

View File

@ -105,8 +105,8 @@ void VehicleWheel3D::_notification(int p_what) {
} }
} }
Array VehicleWheel3D::get_configuration_warnings() const { PackedStringArray VehicleWheel3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Object::cast_to<VehicleBody3D>(get_parent())) { if (!Object::cast_to<VehicleBody3D>(get_parent())) {
warnings.push_back(RTR("VehicleWheel3D serves to provide a wheel system to a VehicleBody3D. Please use it as a child of a VehicleBody3D.")); warnings.push_back(RTR("VehicleWheel3D serves to provide a wheel system to a VehicleBody3D. Please use it as a child of a VehicleBody3D."));

View File

@ -147,7 +147,7 @@ public:
void set_steering(real_t p_steering); void set_steering(real_t p_steering);
real_t get_steering() const; real_t get_steering() const;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
VehicleWheel3D(); VehicleWheel3D();
}; };

View File

@ -79,8 +79,8 @@ void VisibleOnScreenNotifier3D::_notification(int p_what) {
} }
} }
Array VisibleOnScreenNotifier3D::get_configuration_warnings() const { PackedStringArray VisibleOnScreenNotifier3D::get_configuration_warnings() const {
Array warnings = VisualInstance3D::get_configuration_warnings(); PackedStringArray warnings = VisualInstance3D::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
warnings.push_back(RTR("VisibleOnScreenNotifier3D nodes are not supported when using the GL Compatibility backend yet. Support will be added in a future release.")); warnings.push_back(RTR("VisibleOnScreenNotifier3D nodes are not supported when using the GL Compatibility backend yet. Support will be added in a future release."));

View File

@ -57,7 +57,7 @@ public:
virtual AABB get_aabb() const override; virtual AABB get_aabb() const override;
bool is_on_screen() const; bool is_on_screen() const;
virtual Array get_configuration_warnings() const override; virtual PackedStringArray get_configuration_warnings() const override;
VisibleOnScreenNotifier3D(); VisibleOnScreenNotifier3D();
~VisibleOnScreenNotifier3D(); ~VisibleOnScreenNotifier3D();

View File

@ -425,8 +425,8 @@ bool GeometryInstance3D::is_ignoring_occlusion_culling() {
return ignore_occlusion_culling; return ignore_occlusion_culling;
} }
Array GeometryInstance3D::get_configuration_warnings() const { PackedStringArray GeometryInstance3D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (!Math::is_zero_approx(visibility_range_end) && visibility_range_end <= visibility_range_begin) { if (!Math::is_zero_approx(visibility_range_end) && visibility_range_end <= visibility_range_begin) {
warnings.push_back(RTR("The GeometryInstance3D visibility range's End distance is set to a non-zero value, but is lower than the Begin distance.\nThis means the GeometryInstance3D will never be visible.\nTo resolve this, set the End distance to 0 or to a value greater than the Begin distance.")); warnings.push_back(RTR("The GeometryInstance3D visibility range's End distance is set to a non-zero value, but is lower than the Begin distance.\nThis means the GeometryInstance3D will never be visible.\nTo resolve this, set the End distance to 0 or to a value greater than the Begin distance."));

View File

@ -194,7 +194,7 @@ public:
void set_ignore_occlusion_culling(bool p_enabled); void set_ignore_occlusion_culling(bool p_enabled);
bool is_ignoring_occlusion_culling(); bool is_ignoring_occlusion_culling();
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
GeometryInstance3D(); GeometryInstance3D();
virtual ~GeometryInstance3D(); virtual ~GeometryInstance3D();
}; };

View File

@ -518,8 +518,8 @@ AABB VoxelGI::get_aabb() const {
return AABB(-size / 2, size); return AABB(-size / 2, size);
} }
Array VoxelGI::get_configuration_warnings() const { PackedStringArray VoxelGI::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings(); PackedStringArray warnings = Node::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
warnings.push_back(RTR("VoxelGI nodes are not supported when using the GL Compatibility backend yet. Support will be added in a future release.")); warnings.push_back(RTR("VoxelGI nodes are not supported when using the GL Compatibility backend yet. Support will be added in a future release."));

View File

@ -163,7 +163,7 @@ public:
virtual AABB get_aabb() const override; virtual AABB get_aabb() const override;
Array get_configuration_warnings() const override; PackedStringArray get_configuration_warnings() const override;
VoxelGI(); VoxelGI();
~VoxelGI(); ~VoxelGI();

Some files were not shown because too many files have changed in this diff Show More