ajout d'une alerte de réussite/échec

This commit is contained in:
2026-02-27 00:52:11 +01:00
parent 8b3d5a98e1
commit add394d968
12 changed files with 396 additions and 119 deletions

View File

@@ -0,0 +1,25 @@
@tool
extends VBoxContainer
class_name Alert
@export var text = "" :
set(t):
text = t
if is_node_ready():
%Label.text = t
func appear(
with_anim : bool = not visible
):
if with_anim :
%AppearAnimationPlayer.play("appear")
else:
%AppearAnimationPlayer.play("shown")
func disappear(
with_anim : bool = visible
):
if with_anim :
%AppearAnimationPlayer.play_backwards("appear")
else:
%AppearAnimationPlayer.play("hidden")

View File

@@ -0,0 +1 @@
uid://b8hth7y8sjfy4