mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
26 lines
398 B
GDScript
26 lines
398 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():
|
|
beforeOpen()
|
|
visible = true
|
|
animator.play("show")
|
|
await animator.animation_finished
|
|
|
|
func _ready():
|
|
visible = false
|
|
|
|
# 钩子
|
|
func beforeOpen():
|
|
pass
|
|
func afterClose():
|
|
pass
|