Moved ScneeStringNames and PropertyUtils into scene/main.

This commit is contained in:
Relintai 2023-12-10 18:01:51 +01:00
parent 191e9e152e
commit 3902cf1924
61 changed files with 57 additions and 57 deletions

View File

@ -32,7 +32,7 @@
#include "core/math/geometry.h"
#include "core/object/script_language.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
int AStar::get_available_point_id() const {
if (points.has(last_free_id)) {

View File

@ -62,7 +62,7 @@
#include "scene/gui/scroll_bar.h"
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/property_utils.h"
#include "scene/main/property_utils.h"
#include "scene/resources/font/font.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/style_box.h"

View File

@ -37,7 +37,7 @@
#include "editor/editor_scale.h"
#include "scene/animation/animation_blend_tree.h"
#include "scene/animation/animation_player.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "core/object/class_db.h"
#include "core/error/error_macros.h"
#include "core/containers/list.h"

View File

@ -33,7 +33,7 @@
#include "editor/editor_node.h"
#include "scene/gui/button.h"
#include "scene/resources/packed_scene.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void PackedSceneEditor::_on_open_scene_pressed() {
// Using deferred call because changing scene updates the Inspector and thus destroys this plugin.

View File

@ -91,7 +91,7 @@
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/main/viewport.h"
#include "scene/property_utils.h"
#include "scene/main/property_utils.h"
#include "scene/animation/animation.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/texture.h"

View File

@ -89,7 +89,7 @@
#include "scene/main/viewport.h"
#include "scene/resources/text_file.h"
#include "scene/resources/texture.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "editor_script_editor_quick_open.h"
#include "editor_script_text_editor.h"

View File

@ -88,7 +88,7 @@
#include "scene/main/viewport.h"
#include "scene/resources/text_file.h"
#include "scene/resources/texture.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "editor_script_editor_quick_open.h"
#include "editor_script_text_editor.h"

View File

@ -37,7 +37,7 @@
#include "scene/resources/physics_material.h"
#include "scene/resources/mesh/primitive_meshes.h"
#include "scene/resources/mesh/surface_tool.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/navigation_server.h"
#include "servers/rendering_server.h"

View File

@ -32,7 +32,7 @@
#include "core/config/engine.h"
#include "scene/resources/curve.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -33,7 +33,7 @@
#include "../resources/skeleton_modification_2d.h"
#include "../resources/skeleton_modification_stack_2d.h"
#include "core/config/engine.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_data.h"

View File

@ -38,7 +38,7 @@
#include "core/config/project_settings.h"
#include "core/containers/rid.h"
#include "scene/resources/physics_material.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "skeleton.h"
#ifdef TOOLS_ENABLED

View File

@ -39,7 +39,7 @@
#include "core/config/project_settings.h"
#include "physical_bone.h"
#include "scene/resources/mesh/surface_tool.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void SkinReference::_skin_changed() {
if (skeleton_node) {

View File

@ -32,7 +32,7 @@
#include "core/os/os.h"
#include "scene/resources/texture.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"

View File

@ -30,7 +30,7 @@
#include "area_2d.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/audio_server.h"
#include "servers/physics_2d_server.h"

View File

@ -33,7 +33,7 @@
#include "core/config/engine.h"
#include "core/math/math_funcs.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server.h"
void Camera2D::_update_scroll() {

View File

@ -31,7 +31,7 @@
#include "collision_object_2d.h"
#include "scene/resources/world_2d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/physics_2d_server.h"
void CollisionObject2D::_notification(int p_what) {

View File

@ -32,7 +32,7 @@
#include "core/config/engine.h"
#include "physics_body_2d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/physics_2d_server.h"
void Joint2D::_disconnect_signals() {

View File

@ -32,7 +32,7 @@
#include "core/config/engine.h"
#include "scene/resources/curve.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -39,7 +39,7 @@
#include "core/config/project_settings.h"
#include "core/containers/rid.h"
#include "scene/resources/physics_material.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/physics_2d_server.h"
void PhysicsBody2D::_notification(int p_what) {

View File

@ -29,7 +29,7 @@
/*************************************************************************/
#include "remote_transform_2d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void RemoteTransform2D::_update_cache() {
cache = 0;

View File

@ -33,7 +33,7 @@
#include "core/os/os.h"
#include "scene/main/viewport.h"
#include "scene/resources/texture.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
Dictionary Sprite::_edit_get_state() const {

View File

@ -36,7 +36,7 @@
#include "scene/resources/bit_map.h"
#include "scene/resources/shapes_2d/rectangle_shape_2d.h"
#include "scene/resources/texture.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void TouchScreenButton::set_texture(const Ref<Texture> &p_texture) {
if (texture == p_texture) {

View File

@ -37,7 +37,7 @@
#include "scene/main/viewport.h"
#include "scene/main/world.h"
#include "scene/resources/world_2d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
Rect2 VisibilityNotifier2D::_edit_get_rect() const {

View File

@ -30,7 +30,7 @@
#include "area.h"
#include "scene/resources/shapes/shape.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/audio_server.h"
#include "servers/physics_server.h"

View File

@ -34,7 +34,7 @@
#include "mesh_instance.h"
#include "scene/resources/mesh/mesh.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/physics_server.h"
void CollisionObject::_notification(int p_what) {

View File

@ -33,7 +33,7 @@
#include "core/core_string_names.h"
#include "scene/resources/mesh/primitive_meshes.h"
#include "scene/resources/theme.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void Label3D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_horizontal_alignment", "alignment"), &Label3D::set_horizontal_alignment);

View File

@ -36,7 +36,7 @@
#include "physics_body.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh/mesh.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering/rendering_server_globals.h"
#include "modules/modules_enabled.gen.h"

View File

@ -34,7 +34,7 @@
#include "scene/resources/curve.h"
#include "scene/resources/mesh/mesh.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server.h"
Path::Path() {

View File

@ -38,7 +38,7 @@
#include "core/object/method_bind_ext.gen.inc"
#include "core/object/object.h"
#include "scene/resources/physics_material.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
//#include "skeleton.h"
#ifdef TOOLS_ENABLED

View File

@ -32,7 +32,7 @@
#include "scene/3d/physics_body.h"
#include "scene/resources/shapes/shape.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void Joint::_disconnect_signals() {
Node *node_a = get_node_or_null(a);

View File

@ -32,7 +32,7 @@
#include "core/core_string_names.h"
#include "core/math/triangle_mesh.h"
#include "scene/2d/animated_sprite.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"

View File

@ -37,7 +37,7 @@
#include "scene/animation/animation_tree.h"
#include "scene/resources/shapes/shape.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void VisibilityNotifier::_enter_camera(Camera *p_camera) {
ERR_FAIL_COND(cameras.has(p_camera));

View File

@ -32,7 +32,7 @@
#include "scene/resources/material/material.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server.h"
//#include "skeleton.h"

View File

@ -29,7 +29,7 @@
/*************************************************************************/
#include "animation.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "core/math/geometry.h"

View File

@ -31,7 +31,7 @@
#include "animation_blend_tree.h"
#include "scene/animation/animation_player.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void AnimationNodeAnimation::set_animation(const StringName &p_name) {
animation = p_name;

View File

@ -35,7 +35,7 @@
#include "scene/main/node_2d.h"
#include "scene/main/spatial.h"
#include "scene/animation/animation.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/audio/audio_stream.h"
#ifdef MODULE_SKELETON_3D_ENABLED

View File

@ -35,7 +35,7 @@
#include "core/config/engine.h"
#include "core/object/method_bind_ext.gen.inc"
#include "scene/main/spatial.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/audio/audio_stream.h"
#ifdef MODULE_SKELETON_3D_ENABLED

View File

@ -33,7 +33,7 @@
#include "core/object/method_bind_ext.gen.inc"
#include "scene/animation/tween.h"
#include "scene/main/node.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void Tweener::set_tween(Ref<SceneTreeTween> p_tween) {
tween = p_tween;

View File

@ -33,7 +33,7 @@
#include "core/input/shortcut.h"
#include "core/os/keyboard.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void BaseButton::_unpress_group() {
if (!button_group.is_valid()) {

View File

@ -32,7 +32,7 @@
#include "core/string/translation.h"
#include "servers/rendering_server.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
Size2 Button::get_minimum_size() const {
Size2 minsize = get_theme_font("font")->total_size_of_lines(xl_text.split("\n"));

View File

@ -30,7 +30,7 @@
#include "container.h"
#include "core/object/message_queue.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void Container::_child_minsize_changed() {
//Size2 ms = get_combined_minimum_size();

View File

@ -35,7 +35,7 @@
#include "core/os/os.h"
#include "label.h"
#include "scene/gui/scroll_bar.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -32,7 +32,7 @@
#include "core/typedefs.h"
#include "scene/resources/bit_map.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include <stdlib.h>

View File

@ -29,7 +29,7 @@
/*************************************************************************/
#include "video_player.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "core/os/os.h"
#include "servers/audio_server.h"

View File

@ -40,7 +40,7 @@
#include "scene/resources/texture.h"
#include "scene/resources/world_2d.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering/rendering_server_constants.h"
#include "servers/rendering/rendering_server_raster.h"
#include "servers/rendering_server.h"

View File

@ -31,7 +31,7 @@
#include "canvas_layer.h"
#include "scene/main/canvas_item.h"
#include "scene/resources/world_2d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "viewport.h"
void CanvasLayer::set_layer(int p_xform) {

View File

@ -42,7 +42,7 @@
#include "scene/main/node.h"
#include "scene/main/timer.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server.h"
#ifdef TOOLS_ENABLED

View File

@ -38,7 +38,7 @@
#include "process_group.h"
#include "scene/animation/scene_tree_tween.h"
#include "scene/resources/packed_scene.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "viewport.h"
#include "world.h"

View File

@ -33,7 +33,7 @@
#include "core/object/message_queue.h"
#include "scene/main/control.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server.h"
#ifdef TOOLS_ENABLED

View File

@ -50,7 +50,7 @@
#include "scene/resources/material/material.h"
#include "scene/resources/mesh/mesh.h"
#include "scene/resources/packed_scene.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/audio_server.h"
#include "servers/navigation_server.h"
#include "servers/physics_2d_server.h"

View File

@ -36,7 +36,7 @@
#include "scene/main/scene_tree.h"
#include "scene/main/world.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering_server_callbacks.h"
/*

View File

@ -55,7 +55,7 @@
#include "scene/resources/mesh/mesh.h"
#include "scene/resources/world_2d.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/physics_2d_server.h"
void ViewportTexture::setup_local_to_scene() {

View File

@ -183,7 +183,7 @@
#include "scene/resources/video_stream.h"
#include "scene/resources/world_2d.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#ifndef _3D_DISABLED
#include "scene/3d/area.h"

View File

@ -40,7 +40,7 @@
#include "editor/editor_settings.h"
#endif
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
void Material::set_next_pass(const Ref<Material> &p_pass) {
for (Ref<Material> pass_child = p_pass; pass_child != nullptr; pass_child = pass_child->get_next_pass()) {

View File

@ -40,7 +40,7 @@
#include "scene/main/control.h"
#include "core/input/shortcut.h"
#include "scene/main/instance_placeholder.h"
#include "scene/property_utils.h"
#include "scene/main/property_utils.h"
#define PACKED_SCENE_VERSION 2

View File

@ -30,7 +30,7 @@
#include "shader.h"
#include "core/os/file_access.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/rendering/shader_language.h"
#include "servers/rendering_server.h"
#include "texture.h"

View File

@ -35,7 +35,7 @@
#include "core/math/projection.h"
#include "scene/3d/camera.h"
#include "scene/3d/visibility_notifier.h"
#include "scene/scene_string_names.h"
#include "scene/main/scene_string_names.h"
#include "servers/navigation_server.h"
struct SpatialIndexer {