fix:修复代码警告和UID冲突问题
- 更新 ProjectPaths.gd 中的路径引用,适配新的目录结构 - 修复 SceneManager.gd 中的场景路径问题 - 更新 project.godot 配置,修复 AutoLoad 路径 - 修复 MainScene 相关文件的 UID 冲突 - 解决代码中的路径引用警告
This commit is contained in:
@@ -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/"
|
||||
|
||||
# ============================================================================
|
||||
# 模块路径
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user