implemented quit functionality
This commit is contained in:
parent
a80cce1520
commit
ee961f8035
3 changed files with 17 additions and 1 deletions
4
rinkplanner/scenes/title/logic.gd
Normal file
4
rinkplanner/scenes/title/logic.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
func quit_program():
|
||||||
|
get_tree().quit()
|
||||||
1
rinkplanner/scenes/title/logic.gd.uid
Normal file
1
rinkplanner/scenes/title/logic.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://byqcjgteix27n
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
[gd_scene format=3 uid="uid://c4myh7psuj5hy"]
|
[gd_scene load_steps=2 format=3 uid="uid://c4myh7psuj5hy"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://byqcjgteix27n" path="res://scenes/title/logic.gd" id="1_5vtrw"]
|
||||||
|
|
||||||
[node name="Control" type="Control"]
|
[node name="Control" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
|
|
@ -34,3 +36,12 @@ text = "Neue Kür"
|
||||||
[node name="LoadButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
[node name="LoadButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Kür laden"
|
text = "Kür laden"
|
||||||
|
|
||||||
|
[node name="QuitButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Beenden"
|
||||||
|
|
||||||
|
[node name="Logics" type="Node" parent="."]
|
||||||
|
script = ExtResource("1_5vtrw")
|
||||||
|
|
||||||
|
[connection signal="pressed" from="VBoxContainer/VBoxContainer/QuitButton" to="Logics" method="quit_program"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue