Diffstat (limited to 'ui/scenes/pause.tscn')
| -rw-r--r-- | ui/scenes/pause.tscn | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/ui/scenes/pause.tscn b/ui/scenes/pause.tscn new file mode 100644 index 0000000..64db343 --- /dev/null +++ b/ui/scenes/pause.tscn @@ -0,0 +1,102 @@ +[gd_scene load_steps=6 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"] +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="."] +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"] +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"] +margin_right = 74.0 +margin_bottom = 14.0 +theme = ExtResource( 3 ) +text = "Main menu" +align = 0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="options" type="Button" parent="ColorRect/VBoxContainer"] +margin_top = 18.0 +margin_right = 74.0 +margin_bottom = 32.0 +theme = ExtResource( 3 ) +text = "Options" +align = 0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="exit" type="Button" parent="ColorRect/VBoxContainer"] +margin_top = 36.0 +margin_right = 74.0 +margin_bottom = 50.0 +theme = ExtResource( 3 ) +text = "exit" +align = 0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="settings" parent="ColorRect" instance=ExtResource( 6 )] +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"] |