small racing game im working on
Diffstat (limited to 'ui/editor/help.gd')
| -rw-r--r-- | ui/editor/help.gd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/editor/help.gd b/ui/editor/help.gd new file mode 100644 index 0000000..3e13ed5 --- /dev/null +++ b/ui/editor/help.gd @@ -0,0 +1,10 @@ +extends Button + +@export var help_scn: PackedScene +var help: Window + +func _pressed() -> void: + if not is_instance_valid(help): + help = help_scn.instantiate() + help.close_requested.connect(help.queue_free) + add_child(help) |