diff options
author | Logan <logan@cflip.net> | 2023-01-31 21:11:24 -0700 |
---|---|---|
committer | Logan <logan@cflip.net> | 2023-01-31 21:11:24 -0700 |
commit | 0d0be8268275ca42dae0899e405bcc000c445a20 (patch) | |
tree | 21c2599bd654ed297775bb0f11a154bd215eb6b6 | |
parent | ff29fc6755a18712ee398ce388b62d6c075edae5 (diff) |
Add remaining pause menu textures
-rw-r--r-- | scenes/pausemenu.tscn | 79 | ||||
-rw-r--r-- | textures/help.png | bin | 0 -> 404 bytes | |||
-rw-r--r-- | textures/help.png.import | 35 | ||||
-rw-r--r-- | textures/help_hover.png | bin | 0 -> 390 bytes | |||
-rw-r--r-- | textures/help_hover.png.import | 35 | ||||
-rw-r--r-- | textures/quit.png | bin | 0 -> 380 bytes | |||
-rw-r--r-- | textures/quit.png.import | 35 | ||||
-rw-r--r-- | textures/quit_hover.png | bin | 0 -> 381 bytes | |||
-rw-r--r-- | textures/quit_hover.png.import | 35 |
9 files changed, 181 insertions, 38 deletions
diff --git a/scenes/pausemenu.tscn b/scenes/pausemenu.tscn index abf2b28..68be4e6 100644 --- a/scenes/pausemenu.tscn +++ b/scenes/pausemenu.tscn @@ -1,12 +1,16 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=10 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] +[ext_resource path="res://textures/quit_hover.png" type="Texture" id=6] +[ext_resource path="res://textures/quit.png" type="Texture" id=7] +[ext_resource path="res://textures/help.png" type="Texture" id=8] +[ext_resource path="res://textures/help_hover.png" type="Texture" id=9] -[node name="Menu" type="Control"] +[node name="PauseMenu" type="Control"] margin_right = 214.0 margin_bottom = 120.0 script = ExtResource( 1 ) @@ -16,7 +20,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 color = Color( 0, 0, 0, 0.54902 ) -[node name="Label" type="Label" parent="."] +[node name="PauseLabel" type="Label" parent="."] anchor_left = 0.5 anchor_right = 0.5 margin_left = -24.0 @@ -25,57 +29,56 @@ margin_bottom = 16.0 custom_colors/font_color_shadow = Color( 0.270588, 0.294118, 0.443137, 1 ) text = "PAUSED" -[node name="Control" type="Control" parent="."] -margin_right = 428.0 -margin_bottom = 240.0 -rect_scale = Vector2( 0.5, 0.5 ) +[node name="HoverLabel" type="Label" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -38.0 +margin_top = -25.0 +margin_right = 38.0 +margin_bottom = -9.0 +align = 1 +valign = 1 -[node name="HBoxContainer" type="HBoxContainer" parent="Control"] +[node name="HBoxContainer" type="HBoxContainer" parent="."] 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 +margin_left = -38.0 +margin_top = -8.0 +margin_right = 38.0 +margin_bottom = 8.0 -[node name="RestartButton" type="TextureButton" parent="Control/HBoxContainer"] +[node name="RestartButton" type="TextureButton" parent="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"] +[node name="OptionsButton" type="TextureButton" parent="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 = -14.0 -margin_right = 50.0 -margin_bottom = 34.0 - -[node name="HelpButton" type="Button" parent="Control/VBoxContainer"] -margin_right = 100.0 -margin_bottom = 22.0 -disabled = true -text = "Help" +[node name="HelpButton" type="TextureButton" parent="HBoxContainer"] +margin_left = 40.0 +margin_right = 56.0 +margin_bottom = 16.0 +texture_normal = ExtResource( 8 ) +texture_hover = ExtResource( 9 ) -[node name="QuitButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 26.0 -margin_right = 100.0 -margin_bottom = 48.0 -text = "Quit" +[node name="QuitButton" type="TextureButton" parent="HBoxContainer"] +margin_left = 60.0 +margin_right = 76.0 +margin_bottom = 16.0 +texture_normal = ExtResource( 7 ) +texture_hover = ExtResource( 6 ) -[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/QuitButton" to="." method="_on_QuitButton_pressed"] +[connection signal="pressed" from="HBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"] +[connection signal="pressed" from="HBoxContainer/OptionsButton" to="." method="_on_OptionsButton_pressed"] +[connection signal="pressed" from="HBoxContainer/HelpButton" to="." method="_on_HelpButton_pressed"] +[connection signal="pressed" from="HBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"] diff --git a/textures/help.png b/textures/help.png Binary files differnew file mode 100644 index 0000000..cf0d968 --- /dev/null +++ b/textures/help.png diff --git a/textures/help.png.import b/textures/help.png.import new file mode 100644 index 0000000..457e1b7 --- /dev/null +++ b/textures/help.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/help.png" +dest_files=[ "res://.import/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.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/help_hover.png b/textures/help_hover.png Binary files differnew file mode 100644 index 0000000..2219b13 --- /dev/null +++ b/textures/help_hover.png diff --git a/textures/help_hover.png.import b/textures/help_hover.png.import new file mode 100644 index 0000000..fb6a92a --- /dev/null +++ b/textures/help_hover.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/help_hover.png" +dest_files=[ "res://.import/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.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/quit.png b/textures/quit.png Binary files differnew file mode 100644 index 0000000..a508364 --- /dev/null +++ b/textures/quit.png diff --git a/textures/quit.png.import b/textures/quit.png.import new file mode 100644 index 0000000..c5e6506 --- /dev/null +++ b/textures/quit.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/quit.png-45899401d5b959d99c6ae166d5338906.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/quit.png" +dest_files=[ "res://.import/quit.png-45899401d5b959d99c6ae166d5338906.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/quit_hover.png b/textures/quit_hover.png Binary files differnew file mode 100644 index 0000000..26d9aa3 --- /dev/null +++ b/textures/quit_hover.png diff --git a/textures/quit_hover.png.import b/textures/quit_hover.png.import new file mode 100644 index 0000000..5f2846b --- /dev/null +++ b/textures/quit_hover.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/quit_hover.png" +dest_files=[ "res://.import/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.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 |