fix: 修复交互与通知板问题

- 修复Z轴逻辑调整精灵与物品的排序
- 渲染前强制 content_container.modulate.a = 1.0,避免内容区被透明度状态卡住导致看起来空白
This commit is contained in:
2026-02-07 21:07:59 +08:00
parent 19794d896e
commit f24a01dbca
8 changed files with 29 additions and 32 deletions

View File

@@ -43,16 +43,13 @@ func _ready():
$CenterContainer/PanelContainer/VBoxContainer/Header/RightContainer/CloseButton.pressed.connect(_on_close_pressed)
prev_btn.pressed.connect(_on_prev_pressed)
next_btn.pressed.connect(_on_next_pressed)
# Network Integration - Use direct callback for better error handling
# Short timeout (2.0s) so mock data appears quickly if server is down
NetworkManager.get_request("/notices", _on_notices_response, 2.0)
# Initial Setup (with generic "Loading" state)
# Local-only setup: use built-in pages directly, no network dependency.
mock_pages = pages.duplicate(true)
pages = [{"text": "[center]Loading notices...[/center]", "image_color": Color(0.9, 0.9, 0.9)}]
current_page = 0
content_container.modulate.a = 1.0
_setup_dots()
_update_ui(false)
_update_ui(false)
func _exit_tree():
_restore_chat_ui_mouse_input()
@@ -73,7 +70,8 @@ func _on_notices_response(success: bool, data: Dictionary, _error_info: Dictiona
current_page = 0
_setup_dots()
_update_ui(true)
content_container.modulate.a = 1.0
_update_ui(false)
func _setup_dots():