1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-04 02:37:12 +08:00

feat(UI): 添加编译提示面板并更新启动流程

在启动单机游戏时显示编译提示面板
扩展FullscreenPanelBase增加afterOpen和beforeClose钩子
添加CompilingTip面板相关资源和脚本
This commit is contained in:
2026-01-25 21:18:25 +08:00
parent 41d16ffd58
commit e170dbee6d
10 changed files with 129 additions and 2 deletions
@@ -5,6 +5,7 @@ class_name FullscreenPanelBase
@onready var animator = $"%animator"
func hidePanel():
beforeClose()
animator.play("hide")
await animator.animation_finished
visible = false
@@ -14,9 +15,14 @@ func showPanel(args: Array = []):
visible = true
animator.play("show")
await animator.animation_finished
afterOpen(args)
# 钩子
func beforeOpen(_args: Array = []):
pass
func afterOpen(_args: Array = []):
pass
func beforeClose():
pass
func afterClose():
pass