Diffstat (limited to 'ui/scenes/pause.tscn')
| -rw-r--r-- | ui/scenes/pause.tscn | 60 |
1 files changed, 13 insertions, 47 deletions
diff --git a/ui/scenes/pause.tscn b/ui/scenes/pause.tscn index 64db343..2d865f1 100644 --- a/ui/scenes/pause.tscn +++ b/ui/scenes/pause.tscn @@ -1,9 +1,7 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=4 format=2] -[ext_resource path="res://sprites/stop.png" type="Texture" id=1] [ext_resource path="res://ui/scripts/pausemenu.gd" type="Script" id=2] [ext_resource path="res://ui/buttontheme.tres" type="Theme" id=3] -[ext_resource path="res://fonts/fonty.tres" type="DynamicFont" id=4] [ext_resource path="res://ui/scenes/settings.tscn" type="PackedScene" id=6] [node name="pause" type="Control"] @@ -11,33 +9,21 @@ pause_mode = 2 anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 2 ) -__meta__ = { -"_edit_use_anchors_": false -} -[node name="ColorRect" type="ColorRect" parent="."] +[node name="Background" type="ColorRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 color = Color( 0, 0, 0, 0.611765 ) -__meta__ = { -"_edit_use_anchors_": false -} -[node name="pause_icon" type="Sprite" parent="ColorRect"] -position = Vector2( 303, 164 ) -texture = ExtResource( 1 ) - -[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect"] +[node name="VBoxContainer" type="VBoxContainer" parent="Background"] anchor_bottom = 1.0 margin_left = 14.0 margin_top = 16.0 margin_right = 88.0 margin_bottom = -60.0 -__meta__ = { -"_edit_use_anchors_": false -} -[node name="mainmenu" type="Button" parent="ColorRect/VBoxContainer"] +[node name="MainMenuButton" type="Button" parent="Background/VBoxContainer"] +unique_name_in_owner = true margin_right = 74.0 margin_bottom = 14.0 theme = ExtResource( 3 ) @@ -47,7 +33,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="options" type="Button" parent="ColorRect/VBoxContainer"] +[node name="options" type="Button" parent="Background/VBoxContainer"] margin_top = 18.0 margin_right = 74.0 margin_bottom = 32.0 @@ -58,7 +44,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="exit" type="Button" parent="ColorRect/VBoxContainer"] +[node name="exit" type="Button" parent="Background/VBoxContainer"] margin_top = 36.0 margin_right = 74.0 margin_bottom = 50.0 @@ -69,34 +55,14 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="settings" parent="ColorRect" instance=ExtResource( 6 )] +[node name="settings" parent="Background" instance=ExtResource( 6 )] +unique_name_in_owner = true visible = false - -[node name="pause1" type="Label" parent="ColorRect"] -margin_left = 16.0 -margin_top = 155.0 -margin_right = 288.0 -margin_bottom = 172.0 -custom_fonts/font = ExtResource( 4 ) -text = "Paused" -align = 2 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="pause2" type="Label" parent="ColorRect"] -margin_left = 28.0 -margin_top = 133.0 -margin_right = 310.0 -margin_bottom = 150.0 -custom_fonts/font = ExtResource( 4 ) -text = "Press esc to unpause" __meta__ = { "_edit_use_anchors_": false } -[connection signal="gui_input" from="ColorRect/VBoxContainer/mainmenu" to="." method="_on_mainmenu_gui_input"] -[connection signal="gui_input" from="ColorRect/VBoxContainer/options" to="." method="_on_options_gui_input"] -[connection signal="gui_input" from="ColorRect/VBoxContainer/exit" to="." method="_on_exit_gui_input"] -[connection signal="apply_button_pressed" from="ColorRect/settings" to="." method="_on_settings_apply_button_pressed"] -[connection signal="back" from="ColorRect/settings" to="." method="_on_settings_back"] +[connection signal="pressed" from="Background/VBoxContainer/MainMenuButton" to="." method="_on_MainMenuButton_pressed"] +[connection signal="pressed" from="Background/VBoxContainer/options" to="." method="_on_options_pressed"] +[connection signal="pressed" from="Background/VBoxContainer/exit" to="." method="_on_exit_pressed"] +[connection signal="back" from="Background/settings" to="." method="_on_settings_back"] |