mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 08:21:54 +08:00
feat: 更新饲料和面板逻辑,添加香蕉饲料,重构UI组件和状态管理
This commit is contained in:
@@ -1 +1,25 @@
|
||||
@tool
|
||||
extends Control
|
||||
class_name FullscreenPanelBase
|
||||
|
||||
@onready var animator = $"%animator"
|
||||
|
||||
func hidePanel():
|
||||
animator.play("hide")
|
||||
await animator.animation_finished
|
||||
visible = false
|
||||
afterClose()
|
||||
func showPanel():
|
||||
beforeOpen()
|
||||
visible = true
|
||||
animator.play("show")
|
||||
await animator.animation_finished
|
||||
|
||||
func _ready():
|
||||
visible = false
|
||||
|
||||
# 钩子
|
||||
func beforeOpen():
|
||||
pass
|
||||
func afterClose():
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user