fix:修复代码警告和UID冲突问题

- 更新 ProjectPaths.gd 中的路径引用,适配新的目录结构
- 修复 SceneManager.gd 中的场景路径问题
- 更新 project.godot 配置,修复 AutoLoad 路径
- 修复 MainScene 相关文件的 UID 冲突
- 解决代码中的路径引用警告
This commit is contained in:
2026-01-02 00:58:51 +08:00
parent 3175c98ea3
commit f1a60137e1
6 changed files with 48 additions and 115 deletions

View File

@@ -31,8 +31,8 @@ const SCENES_ITEM_COMPONENTS = SCENES_COMPONENTS + "items/"
# ============================================================================
# UI路径
# ============================================================================
const UI_ROOT = "res://UI/"
const UI_WINDOWS = UI_ROOT + "Windows/"
const UI_ROOT = "res://scenes/ui/"
const UI_WINDOWS = UI_ROOT
# ============================================================================
# 资源路径
@@ -69,7 +69,7 @@ const TESTS_AUTH = TESTS_ROOT + "auth/"
# ============================================================================
# 工具路径
# ============================================================================
const UTILS_ROOT = "res://Utils/"
const UTILS_ROOT = "res://_Core/utils/"
# ============================================================================
# 模块路径

View File

@@ -11,13 +11,13 @@ var is_changing_scene: bool = false
# 场景路径映射
var scene_paths: Dictionary = {
"main": "res://Scenes/Maps/main_scene.tscn",
"auth": "res://UI/Windows/LoginWindow.tscn",
"game": "res://Scenes/Maps/game_scene.tscn",
"battle": "res://Scenes/Maps/battle_scene.tscn",
"inventory": "res://UI/Windows/InventoryWindow.tscn",
"shop": "res://UI/Windows/ShopWindow.tscn",
"settings": "res://UI/Windows/SettingsWindow.tscn"
"main": "res://scenes/maps/main_scene.tscn",
"auth": "res://scenes/ui/LoginWindow.tscn",
"game": "res://scenes/maps/game_scene.tscn",
"battle": "res://scenes/maps/battle_scene.tscn",
"inventory": "res://scenes/ui/InventoryWindow.tscn",
"shop": "res://scenes/ui/ShopWindow.tscn",
"settings": "res://scenes/ui/SettingsWindow.tscn"
}
func _ready():