feat(resource-test)-an-ui-test #4

Merged
haylan merged 12 commits from feat(resource-test)-an-ui-test into main 2026-03-15 21:56:10 +01:00
3 changed files with 19 additions and 0 deletions
Showing only changes of commit aae15b0b50 - Show all commits

14
Assets/Quit.gd Normal file
View File

@@ -0,0 +1,14 @@
extends Node
class_name QuitGame
@onready var button: Button = get_parent() as Button
func _ready() -> void:
button.pressed.connect(_on_button_pressed)
button.name = button.text
func _on_button_pressed() -> void:
get_tree().quit(0)

1
Assets/Quit.gd.uid Normal file
View File

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

View File

@@ -62,3 +62,7 @@ text = "Recuration"
script = ExtResource("1_ig7tw") script = ExtResource("1_ig7tw")
level = ExtResource("5_lquwl") level = ExtResource("5_lquwl")
metadata/_custom_type_script = "uid://bel5yfuiqithe" metadata/_custom_type_script = "uid://bel5yfuiqithe"
[node name="Button5" type="Button" parent="VBoxContainer" unique_id=630288499]
layout_mode = 2
text = "Exit Experements"