mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
e170dbee6d
在启动单机游戏时显示编译提示面板 扩展FullscreenPanelBase增加afterOpen和beforeClose钩子 添加CompilingTip面板相关资源和脚本
29 lines
501 B
GDScript
29 lines
501 B
GDScript
@tool
|
|
extends Control
|
|
class_name FullscreenPanelBase
|
|
|
|
@onready var animator = $"%animator"
|
|
|
|
func hidePanel():
|
|
beforeClose()
|
|
animator.play("hide")
|
|
await animator.animation_finished
|
|
visible = false
|
|
afterClose()
|
|
func showPanel(args: Array = []):
|
|
beforeOpen(args)
|
|
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
|