summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-01-30 18:32:49 -0700
committerLogan <logan@cflip.net>2023-01-30 18:32:49 -0700
commit2c0fe558e2abf81b8a8161c98ea05bc5cb9386ba (patch)
treedbbd2ad58da80ae9ac289baa77bd4c829edeafca
parentf401ea5a25eafe87adc03b4f574ab7c41881763f (diff)
Imported and added new texture buttons to pausemenu
-rw-r--r--scenes/pausemenu.tscn56
-rw-r--r--textures/options.pngbin0 -> 379 bytes
-rw-r--r--textures/options.png.import35
-rw-r--r--textures/options_hover.pngbin0 -> 379 bytes
-rw-r--r--textures/options_hover.png.import35
5 files changed, 105 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"]
diff --git a/textures/options.png b/textures/options.png
new file mode 100644
index 0000000..b10f987
--- /dev/null
+++ b/textures/options.png
Binary files differ
diff --git a/textures/options.png.import b/textures/options.png.import
new file mode 100644
index 0000000..de3085c
--- /dev/null
+++ b/textures/options.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/options.png-8f9b1e2df6b6253dd1719277a73b5d61.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://textures/options.png"
+dest_files=[ "res://.import/options.png-8f9b1e2df6b6253dd1719277a73b5d61.stex" ]
+
+[params]
+
+compress/mode=0
+compress/lossy_quality=0.7
+compress/hdr_mode=0
+compress/bptc_ldr=0
+compress/normal_map=0
+flags/repeat=0
+flags/filter=false
+flags/mipmaps=false
+flags/anisotropic=false
+flags/srgb=2
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/HDR_as_SRGB=false
+process/invert_color=false
+process/normal_map_invert_y=false
+stream=false
+size_limit=0
+detect_3d=false
+svg/scale=1.0
diff --git a/textures/options_hover.png b/textures/options_hover.png
new file mode 100644
index 0000000..ca27936
--- /dev/null
+++ b/textures/options_hover.png
Binary files differ
diff --git a/textures/options_hover.png.import b/textures/options_hover.png.import
new file mode 100644
index 0000000..441c83a
--- /dev/null
+++ b/textures/options_hover.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/options_hover.png-3fb90d6071d72909c23f3570c142f155.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://textures/options_hover.png"
+dest_files=[ "res://.import/options_hover.png-3fb90d6071d72909c23f3570c142f155.stex" ]
+
+[params]
+
+compress/mode=0
+compress/lossy_quality=0.7
+compress/hdr_mode=0
+compress/bptc_ldr=0
+compress/normal_map=0
+flags/repeat=0
+flags/filter=false
+flags/mipmaps=false
+flags/anisotropic=false
+flags/srgb=2
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/HDR_as_SRGB=false
+process/invert_color=false
+process/normal_map_invert_y=false
+stream=false
+size_limit=0
+detect_3d=false
+svg/scale=1.0