a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/start.tscn')
| -rw-r--r-- | ui/start.tscn | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/ui/start.tscn b/ui/start.tscn index fc9bfd4..24d556e 100644 --- a/ui/start.tscn +++ b/ui/start.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://bkyf7pxcw2ks3"] +[gd_scene load_steps=6 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"] @@ -12,16 +12,6 @@ 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 @@ -43,7 +33,6 @@ focus = NodePath("VBox/StartButton") metadata/_edit_vertical_guides_ = [] [node name="VBox" type="VBoxContainer" parent="."] -layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 @@ -57,31 +46,27 @@ grow_horizontal = 2 grow_vertical = 2 [node name="StartButton" type="Button" parent="VBox"] -layout_mode = 2 offset_right = 172.0 -offset_bottom = 48.0 +offset_bottom = 43.0 text = "start" script = SubResource("GDScript_52jbq") [node name="CfgButtton" type="Button" parent="VBox"] -layout_mode = 2 -offset_top = 52.0 +offset_top = 47.0 offset_right = 172.0 -offset_bottom = 100.0 +offset_bottom = 90.0 text = "configure" -script = SubResource("GDScript_a3v0r") [node name="ExitButton" type="Button" parent="VBox"] -layout_mode = 2 -offset_top = 104.0 +offset_top = 94.0 offset_right = 172.0 -offset_bottom = 152.0 +offset_bottom = 137.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"] +[connection signal="pressed" from="VBox/CfgButtton" to="cfg" method="open"] +[connection signal="close" from="cfg" to="." method="open"] |