mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
44699d4302
- 新增启动界面背景和logo - 实现顶部和底部阴影着色器 - 添加难度选择滑块和角色名输入框 - 优化多人游戏按钮交互 - 修复编译提示面板的动画效果 - 更新UI主题样式
29 lines
518 B
GDScript
29 lines
518 B
GDScript
@tool
|
|
extends Control
|
|
class_name FullscreenPanelBase
|
|
|
|
@onready var animator: AnimationPlayer = $"%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
|