diff options
author | Logan <logan@cflip.net> | 2023-01-30 18:32:49 -0700 |
---|---|---|
committer | Logan <logan@cflip.net> | 2023-01-30 18:32:49 -0700 |
commit | 2c0fe558e2abf81b8a8161c98ea05bc5cb9386ba (patch) | |
tree | dbbd2ad58da80ae9ac289baa77bd4c829edeafca /scenes | |
parent | f401ea5a25eafe87adc03b4f574ab7c41881763f (diff) |
Imported and added new texture buttons to pausemenu
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/pausemenu.tscn | 56 |
1 files changed, 35 insertions, 21 deletions
diff --git a/scenes/pausemenu.tscn b/scenes/pausemenu.tscn index ab9fc87..abf2b28 100644 --- a/scenes/pausemenu.tscn +++ b/scenes/pausemenu.tscn @@ -1,6 +1,10 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://scripts/pausemenu.gd" type="Script" id=1] +[ext_resource path="res://textures/options_hover.png" type="Texture" id=2] +[ext_resource path="res://textures/options.png" type="Texture" id=3] +[ext_resource path="res://textures/retry_hover.png" type="Texture" id=4] +[ext_resource path="res://textures/retry.png" type="Texture" id=5] [node name="Menu" type="Control"] margin_right = 214.0 @@ -26,42 +30,52 @@ margin_right = 428.0 margin_bottom = 240.0 rect_scale = Vector2( 0.5, 0.5 ) +[node name="HBoxContainer" type="HBoxContainer" parent="Control"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -18.0 +margin_top = -38.0 +margin_right = 18.0 +margin_bottom = -22.0 + +[node name="RestartButton" type="TextureButton" parent="Control/HBoxContainer"] +margin_right = 16.0 +margin_bottom = 16.0 +texture_normal = ExtResource( 5 ) +texture_hover = ExtResource( 4 ) + +[node name="OptionsButton" type="TextureButton" parent="Control/HBoxContainer"] +margin_left = 20.0 +margin_right = 36.0 +margin_bottom = 16.0 +texture_normal = ExtResource( 3 ) +texture_hover = ExtResource( 2 ) + [node name="VBoxContainer" type="VBoxContainer" parent="Control"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -50.0 -margin_top = -76.0 +margin_top = -14.0 margin_right = 50.0 -margin_bottom = 76.0 - -[node name="RestartButton" type="Button" parent="Control/VBoxContainer"] -margin_right = 100.0 -margin_bottom = 22.0 -text = "Restart" +margin_bottom = 34.0 [node name="HelpButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 26.0 margin_right = 100.0 -margin_bottom = 48.0 +margin_bottom = 22.0 disabled = true text = "Help" -[node name="OptionsButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 52.0 -margin_right = 100.0 -margin_bottom = 74.0 -disabled = true -text = "Options" - [node name="QuitButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 78.0 +margin_top = 26.0 margin_right = 100.0 -margin_bottom = 100.0 +margin_bottom = 48.0 text = "Quit" -[connection signal="pressed" from="Control/VBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"] +[connection signal="pressed" from="Control/HBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"] +[connection signal="pressed" from="Control/HBoxContainer/OptionsButton" to="." method="_on_OptionsButton_pressed"] [connection signal="pressed" from="Control/VBoxContainer/HelpButton" to="." method="_on_HelpButton_pressed"] -[connection signal="pressed" from="Control/VBoxContainer/OptionsButton" to="." method="_on_OptionsButton_pressed"] [connection signal="pressed" from="Control/VBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"] |