diff options
| author | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
|---|---|---|
| committer | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
| commit | 9d74b49ab62908d4acf53dde444413886b8b28e5 (patch) | |
| tree | 0cb785267ea7e239b19d88684c0d64b9bd5d52f0 /scenes/ui | |
| parent | 2c85d452ad02a5f89cd43bad7f9de31d0e4fa0c1 (diff) | |
escoria setup and old branch archives
Diffstat (limited to 'scenes/ui')
| -rw-r--r-- | scenes/ui/menu.gd | 42 | ||||
| -rw-r--r-- | scenes/ui/menu.gd.uid | 1 | ||||
| -rw-r--r-- | scenes/ui/menu.tscn | 76 | ||||
| -rw-r--r-- | scenes/ui/options.gd | 7 | ||||
| -rw-r--r-- | scenes/ui/options.gd.uid | 1 | ||||
| -rw-r--r-- | scenes/ui/options.tscn | 54 | ||||
| -rw-r--r-- | scenes/ui/title.tscn | 72 | ||||
| -rw-r--r-- | scenes/ui/title_button.tscn | 8 |
8 files changed, 0 insertions, 261 deletions
diff --git a/scenes/ui/menu.gd b/scenes/ui/menu.gd deleted file mode 100644 index a60336b..0000000 --- a/scenes/ui/menu.gd +++ /dev/null @@ -1,42 +0,0 @@ -extends CanvasLayer - -func pause() -> void: - Menu.visible = true - get_tree().paused = true - - -func resume() -> void: - Menu.visible = false - get_tree().paused = false - - -func _ready() -> void: - resume() - - -func _input(event: InputEvent) -> void: - if event.is_action_pressed("ui_menu") and get_tree().current_scene.scene_file_path != "res://scenes/ui/title.tscn": - if get_tree().paused: - resume() - else: - pause() - -func _on_start_pressed() -> void: - get_tree().change_scene_to_file("res://scenes/room/start.tscn") - - -func _on_main_menu_pressed() -> void: - resume() - get_tree().change_scene_to_file("res://scenes/ui/title.tscn") - - -func _on_quit_pressed() -> void: - get_tree().quit() - - -func _on_options_pressed() -> void: - if !has_node("Options"): - var options = load("res://scenes/ui/options.tscn").instantiate() - add_child(options) - options.menu_node = self - process_mode = Node.PROCESS_MODE_DISABLED diff --git a/scenes/ui/menu.gd.uid b/scenes/ui/menu.gd.uid deleted file mode 100644 index 45d6d4f..0000000 --- a/scenes/ui/menu.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://befvsvog6282s diff --git a/scenes/ui/menu.tscn b/scenes/ui/menu.tscn deleted file mode 100644 index cc25d7b..0000000 --- a/scenes/ui/menu.tscn +++ /dev/null @@ -1,76 +0,0 @@ -[gd_scene format=3 uid="uid://dqhxjaxlgy4yf"] - -[ext_resource type="Script" uid="uid://befvsvog6282s" path="res://scenes/ui/menu.gd" id="1_wedc3"] -[ext_resource type="PackedScene" uid="uid://dj2dk1g7jnk23" path="res://scenes/ui/title_button.tscn" id="2_c2n5p"] - -[node name="Menu" type="CanvasLayer" unique_id=1912348469] -process_mode = 3 -script = ExtResource("1_wedc3") - -[node name="ColorRect" type="ColorRect" parent="." unique_id=1816673840] -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -color = Color(0, 0, 0, 0.60784316) - -[node name="Menu" type="Control" parent="." unique_id=115089705] -layout_mode = 3 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -grow_horizontal = 2 -grow_vertical = 2 -size_flags_horizontal = 4 -size_flags_vertical = 4 - -[node name="PanelContainer" type="PanelContainer" parent="Menu" unique_id=1414562164] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -260.5 -offset_top = -318.25 -offset_right = 260.5 -offset_bottom = 318.25 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="VBoxContainer" type="VBoxContainer" parent="Menu/PanelContainer" unique_id=604076564] -layout_mode = 2 - -[node name="Label" type="Label" parent="Menu/PanelContainer/VBoxContainer" unique_id=1102397096] -layout_mode = 2 -theme_override_font_sizes/font_size = 100 -text = "MENU!!!!!!!!" -horizontal_alignment = 1 -uppercase = true - -[node name="Save" parent="Menu/PanelContainer/VBoxContainer" unique_id=1597537067 instance=ExtResource("2_c2n5p")] -layout_mode = 2 -text = "Save" - -[node name="Load" parent="Menu/PanelContainer/VBoxContainer" unique_id=1726486889 instance=ExtResource("2_c2n5p")] -layout_mode = 2 -text = "Load" - -[node name="Options" parent="Menu/PanelContainer/VBoxContainer" unique_id=674602521 instance=ExtResource("2_c2n5p")] -layout_mode = 2 -text = "Options" - -[node name="Main Menu" parent="Menu/PanelContainer/VBoxContainer" unique_id=1904714546 instance=ExtResource("2_c2n5p")] -layout_mode = 2 -text = "Main Menu" - -[node name="Quit" parent="Menu/PanelContainer/VBoxContainer" unique_id=1892162088 instance=ExtResource("2_c2n5p")] -layout_mode = 2 -text = "Quit" - -[connection signal="pressed" from="Menu/PanelContainer/VBoxContainer/Options" to="." method="_on_options_pressed"] -[connection signal="pressed" from="Menu/PanelContainer/VBoxContainer/Main Menu" to="." method="_on_main_menu_pressed"] -[connection signal="pressed" from="Menu/PanelContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"] diff --git a/scenes/ui/options.gd b/scenes/ui/options.gd deleted file mode 100644 index c172e04..0000000 --- a/scenes/ui/options.gd +++ /dev/null @@ -1,7 +0,0 @@ -extends CanvasLayer - -var menu_node: CanvasLayer - -func _on_close_pressed() -> void: - menu_node.process_mode = Node.PROCESS_MODE_ALWAYS - queue_free() diff --git a/scenes/ui/options.gd.uid b/scenes/ui/options.gd.uid deleted file mode 100644 index f0c89ba..0000000 --- a/scenes/ui/options.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://ck4twnv274ivh diff --git a/scenes/ui/options.tscn b/scenes/ui/options.tscn deleted file mode 100644 index f2c0278..0000000 --- a/scenes/ui/options.tscn +++ /dev/null @@ -1,54 +0,0 @@ -[gd_scene format=3 uid="uid://i8ml66ykc8eh"] - -[ext_resource type="PackedScene" uid="uid://dj2dk1g7jnk23" path="res://scenes/ui/title_button.tscn" id="1_ad3a0"] -[ext_resource type="Script" uid="uid://ck4twnv274ivh" path="res://scenes/ui/options.gd" id="1_lr2b1"] - -[node name="Options" type="CanvasLayer" unique_id=1868787303] -process_mode = 3 -script = ExtResource("1_lr2b1") - -[node name="Control" type="Control" parent="." unique_id=1010669591] -layout_mode = 3 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -20.0 -offset_top = -20.0 -offset_right = 20.0 -offset_bottom = 20.0 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="VBoxContainer" type="VBoxContainer" parent="Control" unique_id=551513181] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -50.0 -offset_top = -92.5 -offset_right = 50.0 -offset_bottom = 92.5 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="Label" type="Label" parent="Control/VBoxContainer" unique_id=1111325079] -layout_mode = 2 -theme_override_font_sizes/font_size = 50 -text = "OPTIONS" - -[node name="Button" parent="Control/VBoxContainer" unique_id=1597537067 instance=ExtResource("1_ad3a0")] -layout_mode = 2 - -[node name="Button2" parent="Control/VBoxContainer" unique_id=932377545 instance=ExtResource("1_ad3a0")] -layout_mode = 2 - -[node name="Close" parent="Control/VBoxContainer" unique_id=1306792286 instance=ExtResource("1_ad3a0")] -layout_mode = 2 -text = "Close -" - -[connection signal="pressed" from="Control/VBoxContainer/Close" to="." method="_on_close_pressed"] diff --git a/scenes/ui/title.tscn b/scenes/ui/title.tscn deleted file mode 100644 index 91d47e9..0000000 --- a/scenes/ui/title.tscn +++ /dev/null @@ -1,72 +0,0 @@ -[gd_scene format=3 uid="uid://c2cmda8vfq0lb"] - -[ext_resource type="Script" uid="uid://befvsvog6282s" path="res://scenes/ui/menu.gd" id="1_g80e2"] -[ext_resource type="PackedScene" uid="uid://dj2dk1g7jnk23" path="res://scenes/ui/title_button.tscn" id="1_t6us6"] - -[node name="Title" type="CanvasLayer" unique_id=1428349657] -script = ExtResource("1_g80e2") - -[node name="Control" type="Control" parent="." unique_id=930849088] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="Title" type="MarginContainer" parent="Control" unique_id=22126455] -layout_mode = 1 -anchors_preset = 5 -anchor_left = 0.5 -anchor_right = 0.5 -offset_left = -359.5 -offset_right = 359.5 -offset_bottom = 273.0 -grow_horizontal = 2 -theme_override_constants/margin_top = 50 - -[node name="Label" type="Label" parent="Control/Title" unique_id=1066740590] -layout_mode = 2 -size_flags_horizontal = 0 -theme_override_font_sizes/font_size = 200 -text = "MULCH" -uppercase = true - -[node name="MarginContainer" type="MarginContainer" parent="Control" unique_id=1839328694] -layout_mode = 1 -anchors_preset = 12 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_top = -219.0 -grow_horizontal = 2 -grow_vertical = 0 -theme_override_constants/margin_left = 10 -theme_override_constants/margin_top = 10 -theme_override_constants/margin_right = 10 -theme_override_constants/margin_bottom = 10 - -[node name="Hbox" type="HBoxContainer" parent="Control/MarginContainer" unique_id=728577623] -layout_mode = 2 -theme_override_constants/separation = 25 -alignment = 1 - -[node name="Start" parent="Control/MarginContainer/Hbox" unique_id=1597537067 instance=ExtResource("1_t6us6")] -layout_mode = 2 -text = "Start" - -[node name="Load" parent="Control/MarginContainer/Hbox" unique_id=1936574972 instance=ExtResource("1_t6us6")] -layout_mode = 2 -text = "Load" - -[node name="Options" parent="Control/MarginContainer/Hbox" unique_id=1664031607 instance=ExtResource("1_t6us6")] -layout_mode = 2 -text = "Options" - -[node name="Quit" parent="Control/MarginContainer/Hbox" unique_id=443491275 instance=ExtResource("1_t6us6")] -layout_mode = 2 -text = "Quit" - -[connection signal="pressed" from="Control/MarginContainer/Hbox/Start" to="." method="_on_start_pressed"] -[connection signal="pressed" from="Control/MarginContainer/Hbox/Options" to="." method="_on_options_pressed"] -[connection signal="pressed" from="Control/MarginContainer/Hbox/Quit" to="." method="_on_quit_pressed"] diff --git a/scenes/ui/title_button.tscn b/scenes/ui/title_button.tscn deleted file mode 100644 index 8c876d3..0000000 --- a/scenes/ui/title_button.tscn +++ /dev/null @@ -1,8 +0,0 @@ -[gd_scene format=3 uid="uid://dj2dk1g7jnk23"] - -[node name="Button" type="Button" unique_id=1597537067] -custom_minimum_size = Vector2(100, 50) -offset_right = 8.0 -offset_bottom = 8.0 -size_flags_horizontal = 3 -size_flags_vertical = 3 |
