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

代码修复:
- NetworkManager.gd: 修复参数名冲突和未使用变量警告
- StringUtils.gd: 修复变量名与内置函数char冲突
- ResponseHandler.gd: 移除static关键字,改为实例方法
- AuthScene.gd: 恢复正确的ResponseHandler调用方式

 资源清理:
- 删除assets/sprites/icon/下的重复图标文件
- 删除UI/Theme/下的重复字体和主题文件
- 统一使用assets/路径下的资源文件

 配置修复:
- 修复LoginWindow.tscn和main_scene.tscn中的UID引用
- 更新chinese_theme.tres中的字体路径引用
- 添加project.godot调试设置以减少渲染器警告

 文档更新:
- 更新项目设置指南中的主题和字体路径引用

解决问题:
-  修复所有GDScript编译警告
-  解决UID重复冲突警告
-  统一资源文件路径结构
-  保持Web部署兼容性
This commit is contained in:
2025-12-31 19:35:20 +08:00
parent d49983079a
commit fdedb21cbd
27 changed files with 39 additions and 405 deletions

View File

@@ -206,8 +206,8 @@ func send_request(endpoint: String, method: RequestType, headers: PackedStringAr
active_requests[request_id] = request_info
# 连接信号
http_request.request_completed.connect(func(result: int, response_code: int, headers: PackedStringArray, body: PackedByteArray):
_on_request_completed(request_id, result, response_code, headers, body)
http_request.request_completed.connect(func(result: int, response_code: int, response_headers: PackedStringArray, response_body: PackedByteArray):
_on_request_completed(request_id, result, response_code, response_headers, response_body)
)
# 发送请求
@@ -243,7 +243,7 @@ func _on_request_completed(request_id: String, result: int, response_code: int,
print("警告: 未找到请求ID ", request_id)
return
var request_info = active_requests[request_id]
var _request_info = active_requests[request_id]
var response_text = body.get_string_from_utf8()
print("响应体长度: ", body.size(), " 字节")