a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/start.tscn')
-rw-r--r--ui/start.tscn44
1 files changed, 37 insertions, 7 deletions
diff --git a/ui/start.tscn b/ui/start.tscn
index 8169c2f..fc9bfd4 100644
--- a/ui/start.tscn
+++ b/ui/start.tscn
@@ -1,6 +1,8 @@
-[gd_scene load_steps=4 format=3 uid="uid://bkyf7pxcw2ks3"]
+[gd_scene load_steps=7 format=3 uid="uid://bkyf7pxcw2ks3"]
[ext_resource type="Theme" uid="uid://b5sr8elfovyw3" path="res://ui/main.theme.tres" id="1_gj4yg"]
+[ext_resource type="Script" path="res://ui/start.gd" id="2_iv77f"]
+[ext_resource type="PackedScene" uid="uid://c0u64ju7url7g" path="res://ui/cfg.tscn" id="2_sqamp"]
[sub_resource type="GDScript" id="GDScript_52jbq"]
resource_name = "start"
@@ -10,6 +12,16 @@ func _pressed() -> void:
get_tree().change_scene_to_file(\"res://Main.tscn\")
"
+[sub_resource type="GDScript" id="GDScript_a3v0r"]
+resource_name = "cfg"
+script/source = "extends Button
+
+@onready var cfg := $\"%cfg\"
+
+func _pressed() -> void:
+ cfg.open()
+"
+
[sub_resource type="GDScript" id="GDScript_vtoxm"]
resource_name = "exit"
script/source = "extends Button
@@ -18,21 +30,31 @@ func _pressed() -> void:
get_tree().quit()
"
-[node name="start" type="CenterContainer"]
+[node name="start" type="Control" node_paths=PackedStringArray("focus")]
+layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_gj4yg")
+script = ExtResource("2_iv77f")
+focus = NodePath("VBox/StartButton")
metadata/_edit_vertical_guides_ = []
[node name="VBox" type="VBoxContainer" parent="."]
-layout_mode = 2
-offset_left = 74.0
-offset_top = 84.0
-offset_right = 246.0
-offset_bottom = 236.0
+layout_mode = 1
+anchors_preset = 8
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+offset_left = -86.0
+offset_top = -76.0
+offset_right = 86.0
+offset_bottom = 76.0
+grow_horizontal = 2
+grow_vertical = 2
[node name="StartButton" type="Button" parent="VBox"]
layout_mode = 2
@@ -47,6 +69,7 @@ offset_top = 52.0
offset_right = 172.0
offset_bottom = 100.0
text = "configure"
+script = SubResource("GDScript_a3v0r")
[node name="ExitButton" type="Button" parent="VBox"]
layout_mode = 2
@@ -55,3 +78,10 @@ offset_right = 172.0
offset_bottom = 152.0
text = "<!) exit (!>"
script = SubResource("GDScript_vtoxm")
+
+[node name="cfg" parent="." instance=ExtResource("2_sqamp")]
+unique_name_in_owner = true
+visible = false
+layout_mode = 1
+
+[connection signal="close" from="cfg" to="." method="_on_cfg_close"]