mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 07:21:54 +08:00
47608ed847
为熊、公鸡、母鸡等角色添加displayName属性 修改FullscreenPanelBase及相关面板以支持参数传递 完善GameOver面板显示凶手信息功能 调整部分角色的节点索引和状态栏位置
26 lines
435 B
GDScript
26 lines
435 B
GDScript
@tool
|
|
extends Control
|
|
class_name FullscreenPanelBase
|
|
|
|
@onready var animator = $"%animator"
|
|
|
|
func hidePanel():
|
|
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
|
|
|
|
func _ready():
|
|
visible = false
|
|
|
|
# 钩子
|
|
func beforeOpen(_args: Array = []):
|
|
pass
|
|
func afterClose():
|
|
pass
|