Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4 from Raptor1818/main-menu-polish

Main menu polish

authored by

Aria and committed by
GitHub
28671869 b2995b0f

+702 -22
Assets/sfx/close_menu.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/close_menu.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://dggrseuu1vl4x" 6 + path="res://.godot/imported/close_menu.wav-b87be755783a2e3a618234a2f64bdf70.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/close_menu.wav" 11 + dest_files=["res://.godot/imported/close_menu.wav-b87be755783a2e3a618234a2f64bdf70.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_advanced01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_advanced01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://djdls7gry35v3" 6 + path="res://.godot/imported/cough_female_advanced01.wav-626b1d9bedb925665c637d905c4d3bb1.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_advanced01.wav" 11 + dest_files=["res://.godot/imported/cough_female_advanced01.wav-626b1d9bedb925665c637d905c4d3bb1.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_advanced02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_advanced02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bhgvxklkkapqy" 6 + path="res://.godot/imported/cough_female_advanced02.wav-e79f79c549141afbca905bc1f25514c1.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_advanced02.wav" 11 + dest_files=["res://.godot/imported/cough_female_advanced02.wav-e79f79c549141afbca905bc1f25514c1.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_advanced03.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_advanced03.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bdxm10c0l24yy" 6 + path="res://.godot/imported/cough_female_advanced03.wav-27ee2ead74b117db018c3d656d7cf242.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_advanced03.wav" 11 + dest_files=["res://.godot/imported/cough_female_advanced03.wav-27ee2ead74b117db018c3d656d7cf242.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_dying01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_dying01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://dgkiw40ewavra" 6 + path="res://.godot/imported/cough_female_dying01.wav-c8c3f49162ed42058a0714a9535a7759.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_dying01.wav" 11 + dest_files=["res://.godot/imported/cough_female_dying01.wav-c8c3f49162ed42058a0714a9535a7759.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_dying02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_dying02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://c3ckpauicx547" 6 + path="res://.godot/imported/cough_female_dying02.wav-a7ffbd288da0d3a546d628d4bfe0a8c6.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_dying02.wav" 11 + dest_files=["res://.godot/imported/cough_female_dying02.wav-a7ffbd288da0d3a546d628d4bfe0a8c6.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_sick01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_sick01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bau3adrenygy4" 6 + path="res://.godot/imported/cough_female_sick01.wav-b28650825565b2248739a19f1f749721.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_sick01.wav" 11 + dest_files=["res://.godot/imported/cough_female_sick01.wav-b28650825565b2248739a19f1f749721.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_female/cough_female_sick02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_female/cough_female_sick02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://7sc41mbqhnu7" 6 + path="res://.godot/imported/cough_female_sick02.wav-552172100a6e3ad6ba2025b976b8f44a.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_female/cough_female_sick02.wav" 11 + dest_files=["res://.godot/imported/cough_female_sick02.wav-552172100a6e3ad6ba2025b976b8f44a.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=false 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_advanced01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_advanced01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://c37sgowobd70u" 6 + path="res://.godot/imported/cough_male_advanced01.wav-93dd5a963a2ff12740958fe29de9a8b0.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_advanced01.wav" 11 + dest_files=["res://.godot/imported/cough_male_advanced01.wav-93dd5a963a2ff12740958fe29de9a8b0.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_advanced02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_advanced02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://c87maepdwp80v" 6 + path="res://.godot/imported/cough_male_advanced02.wav-1b5ca0b55065c299c1e286571c89ffa4.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_advanced02.wav" 11 + dest_files=["res://.godot/imported/cough_male_advanced02.wav-1b5ca0b55065c299c1e286571c89ffa4.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_advanced03.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_advanced03.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bhnrews1wxh02" 6 + path="res://.godot/imported/cough_male_advanced03.wav-f977df836cb6f996e9497104a29fbf78.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_advanced03.wav" 11 + dest_files=["res://.godot/imported/cough_male_advanced03.wav-f977df836cb6f996e9497104a29fbf78.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_advanced04.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_advanced04.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://cl06ik8h3jpq4" 6 + path="res://.godot/imported/cough_male_advanced04.wav-2221cc7de1d0394388bc319a3d9e5994.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_advanced04.wav" 11 + dest_files=["res://.godot/imported/cough_male_advanced04.wav-2221cc7de1d0394388bc319a3d9e5994.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_dying01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_dying01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bds5ldgkox4g6" 6 + path="res://.godot/imported/cough_male_dying01.wav-727ea1271e3c99def04b3598f845cb54.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_dying01.wav" 11 + dest_files=["res://.godot/imported/cough_male_dying01.wav-727ea1271e3c99def04b3598f845cb54.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_dying02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_dying02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://djbkpccg246w4" 6 + path="res://.godot/imported/cough_male_dying02.wav-eca7cf19d87cf212eb2d3c6f9a02102e.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_dying02.wav" 11 + dest_files=["res://.godot/imported/cough_male_dying02.wav-eca7cf19d87cf212eb2d3c6f9a02102e.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_dying03.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_dying03.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://c2k53nbgad8al" 6 + path="res://.godot/imported/cough_male_dying03.wav-5622981bacbde8e53615d4390f3bb131.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_dying03.wav" 11 + dest_files=["res://.godot/imported/cough_male_dying03.wav-5622981bacbde8e53615d4390f3bb131.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_dying04.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_dying04.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://cycd55sqen80n" 6 + path="res://.godot/imported/cough_male_dying04.wav-18a5f04540fde3d34dc82b665c717dc3.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_dying04.wav" 11 + dest_files=["res://.godot/imported/cough_male_dying04.wav-18a5f04540fde3d34dc82b665c717dc3.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_sick01.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_sick01.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bkk8xqaorss3i" 6 + path="res://.godot/imported/cough_male_sick01.wav-5cd4faf38ce1cfafd15b94fd1cdbf8e4.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_sick01.wav" 11 + dest_files=["res://.godot/imported/cough_male_sick01.wav-5cd4faf38ce1cfafd15b94fd1cdbf8e4.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_sick02.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_sick02.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://dnk053dk56p15" 6 + path="res://.godot/imported/cough_male_sick02.wav-908eb78e2f4b7073d48f4cd34d56bb65.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_sick02.wav" 11 + dest_files=["res://.godot/imported/cough_male_sick02.wav-908eb78e2f4b7073d48f4cd34d56bb65.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/cough_male/cough_male_sick03.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/cough_male/cough_male_sick03.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://dv31idhmxa6ju" 6 + path="res://.godot/imported/cough_male_sick03.wav-88e44ba2127929afa0098a3cb3257f5c.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/cough_male/cough_male_sick03.wav" 11 + dest_files=["res://.godot/imported/cough_male_sick03.wav-88e44ba2127929afa0098a3cb3257f5c.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/crowd.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/crowd.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://d3xeaoxst5jrp" 6 + path="res://.godot/imported/crowd.wav-43d12d667a510bebbb1a0bc90f754dc1.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/crowd.wav" 11 + dest_files=["res://.godot/imported/crowd.wav-43d12d667a510bebbb1a0bc90f754dc1.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=false 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/menu_switch.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/menu_switch.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://bjy16rs73d1sx" 6 + path="res://.godot/imported/menu_switch.wav-bab795140c08b6d252ae7049b11797fa.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/menu_switch.wav" 11 + dest_files=["res://.godot/imported/menu_switch.wav-bab795140c08b6d252ae7049b11797fa.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=true 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
Assets/sfx/select.wav

This is a binary file and will not be displayed.

+24
Assets/sfx/select.wav.import
··· 1 + [remap] 2 + 3 + importer="wav" 4 + type="AudioStreamWAV" 5 + uid="uid://dvbk3bchhy270" 6 + path="res://.godot/imported/select.wav-424bbe2176116c333e3bc1082bd4387d.sample" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/sfx/select.wav" 11 + dest_files=["res://.godot/imported/select.wav-424bbe2176116c333e3bc1082bd4387d.sample"] 12 + 13 + [params] 14 + 15 + force/8_bit=false 16 + force/mono=true 17 + force/max_rate=false 18 + force/max_rate_hz=44100 19 + edit/trim=true 20 + edit/normalize=false 21 + edit/loop_mode=0 22 + edit/loop_begin=0 23 + edit/loop_end=-1 24 + compress/mode=2
+48 -11
Scenes/gameplay/pause-layer/pause-layer.gd
··· 10 10 @onready var nodes_grp1 := [pause_button, label] # should be visible during gamemplay and hidden during pause 11 11 @onready var nodes_grp2 := [pause_options, color_rect] # should be visible only in pause menu 12 12 13 + @onready var options_button: LinkButton = $MarginContainer/Control/VBoxOptions/Options 13 14 @onready var options_layer: CanvasLayer = $OptionsLayer 14 15 16 + @onready var pause_menu_audio_player: AudioStreamPlayer = $PauseMenuAudioPlayer 17 + 18 + @export var button_focus_sound: AudioStream 19 + @export var button_click_sound: AudioStream 20 + 15 21 16 22 func _ready() -> void: 17 23 pause_hide() 18 24 19 25 20 26 func pause_show() -> void: 21 - for n in nodes_grp1: 22 - n.hide() 23 - for n in nodes_grp2: 24 - n.show() 27 + show() 28 + #for n in nodes_grp1: 29 + #n.hide() 30 + #for n in nodes_grp2: 31 + #n.show() 25 32 26 33 27 34 func pause_hide() -> void: 28 - for n in nodes_grp1: 29 - if n: 30 - n.show() 31 - 32 - for n in nodes_grp2: 33 - if n: 34 - n.hide() 35 + #for n in nodes_grp1: 36 + #if n: 37 + #n.show() 38 + # 39 + #for n in nodes_grp2: 40 + #if n: 41 + #n.hide() 42 + hide() 35 43 36 44 37 45 func _unhandled_input(event) -> void: ··· 68 76 Game.change_scene_to_file("res://Scenes/menu/menu.tscn", {"show_progress_bar": false}) 69 77 70 78 func _on_options_button_pressed() -> void: 79 + #play_button_click_sound() # Disabled for now 71 80 options_layer.visible = true 81 + 82 + 83 + func _on_options_layer_visibility_changed() -> void: 84 + if !$OptionsLayer.visible: 85 + await get_tree().create_timer(0.1).timeout # Doesn't work unless we wait for a sec? 86 + options_button.grab_focus() 87 + 88 + var block_menu_sound: bool = true 89 + func _on_button_focused() -> void: 90 + if block_menu_sound: 91 + block_menu_sound = false 92 + else: 93 + play_button_focus_sound() 94 + 95 + func _on_buton_mouse_enter() -> void: 96 + play_button_focus_sound() 97 + 98 + func play_button_focus_sound() -> void: 99 + # Don't overwite button click sound while it's playing 100 + if pause_menu_audio_player.stream == button_click_sound and pause_menu_audio_player.playing: 101 + pass 102 + else: 103 + pause_menu_audio_player.stream = button_focus_sound 104 + pause_menu_audio_player.play() 105 + 106 + func play_button_click_sound() -> void: 107 + pause_menu_audio_player.stream = button_click_sound 108 + pause_menu_audio_player.play()
+28 -3
Scenes/gameplay/pause-layer/pause-layer.tscn
··· 1 - [gd_scene load_steps=5 format=3 uid="uid://barl4q1kugrmm"] 1 + [gd_scene load_steps=7 format=3 uid="uid://barl4q1kugrmm"] 2 2 3 3 [ext_resource type="Script" uid="uid://do7kkb4ijqk5p" path="res://Scenes/gameplay/pause-layer/pause-layer.gd" id="2"] 4 + [ext_resource type="AudioStream" uid="uid://bjy16rs73d1sx" path="res://Assets/sfx/menu_switch.wav" id="2_ja7s0"] 4 5 [ext_resource type="Theme" uid="uid://ducfept6pmkkm" path="res://Resources/theme/theme-main.tres" id="3"] 6 + [ext_resource type="AudioStream" uid="uid://dvbk3bchhy270" path="res://Assets/sfx/select.wav" id="3_wbfxq"] 5 7 [ext_resource type="Texture2D" uid="uid://byniue2cdd2yv" path="res://Scenes/gameplay/pause-layer/pause_button.png" id="4"] 6 8 [ext_resource type="PackedScene" uid="uid://glhpumkx46qg" path="res://examples-from-addons/gwj_options_menu/scenes/options_menu_example.tscn" id="4_1i0yg"] 7 9 8 10 [node name="PauseLayer" type="CanvasLayer"] 9 11 process_mode = 3 10 12 script = ExtResource("2") 13 + button_focus_sound = ExtResource("2_ja7s0") 14 + button_click_sound = ExtResource("3_wbfxq") 11 15 12 16 [node name="ColorRect" type="ColorRect" parent="."] 13 17 anchors_preset = 15 ··· 29 33 mouse_filter = 2 30 34 31 35 [node name="PauseButton" type="TextureButton" parent="MarginContainer/Control"] 36 + visible = false 32 37 layout_mode = 1 33 38 offset_right = 42.0 34 39 offset_bottom = 42.0 ··· 46 51 anchor_right = 0.5 47 52 anchor_bottom = 0.5 48 53 offset_left = -58.0 49 - offset_top = -38.0 54 + offset_top = -62.0 50 55 offset_right = 58.0 51 - offset_bottom = 38.0 56 + offset_bottom = 62.0 52 57 grow_horizontal = 2 53 58 grow_vertical = 2 54 59 mouse_filter = 2 ··· 56 61 57 62 [node name="Resume" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"] 58 63 layout_mode = 2 64 + size_flags_horizontal = 4 65 + focus_neighbor_bottom = NodePath("../Options") 66 + focus_next = NodePath("../Options") 59 67 focus_mode = 2 60 68 mouse_filter = 1 61 69 text = "RESUME" 62 70 63 71 [node name="Options" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"] 64 72 layout_mode = 2 73 + size_flags_horizontal = 4 74 + focus_neighbor_top = NodePath("../Resume") 75 + focus_neighbor_bottom = NodePath("../MainMenu") 76 + focus_next = NodePath("../MainMenu") 65 77 focus_mode = 2 66 78 mouse_filter = 1 67 79 text = "OPTIONS" 68 80 69 81 [node name="MainMenu" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"] 70 82 layout_mode = 2 83 + size_flags_horizontal = 4 84 + focus_neighbor_top = NodePath("../Options") 85 + focus_next = NodePath("../Resume") 71 86 focus_mode = 2 72 87 mouse_filter = 1 73 88 text = "MAIN MENU" 74 89 75 90 [node name="Label" type="Label" parent="MarginContainer/Control"] 91 + visible = false 76 92 layout_mode = 1 77 93 anchors_preset = 5 78 94 anchor_left = 0.5 ··· 98 114 color = Color(0, 0, 0, 0.705882) 99 115 100 116 [node name="MarginContainer2" parent="OptionsLayer" instance=ExtResource("4_1i0yg")] 117 + 118 + [node name="PauseMenuAudioPlayer" type="AudioStreamPlayer" parent="."] 101 119 102 120 [connection signal="pressed" from="MarginContainer/Control/PauseButton" to="." method="_on_PauseButton_pressed"] 121 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxOptions/Resume" to="." method="_on_button_focused"] 122 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxOptions/Resume" to="." method="_on_buton_mouse_enter"] 103 123 [connection signal="pressed" from="MarginContainer/Control/VBoxOptions/Resume" to="." method="_on_Resume_pressed"] 124 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxOptions/Options" to="." method="_on_button_focused"] 125 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxOptions/Options" to="." method="_on_buton_mouse_enter"] 104 126 [connection signal="pressed" from="MarginContainer/Control/VBoxOptions/Options" to="." method="_on_options_button_pressed"] 127 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxOptions/MainMenu" to="." method="_on_button_focused"] 128 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxOptions/MainMenu" to="." method="_on_buton_mouse_enter"] 105 129 [connection signal="pressed" from="MarginContainer/Control/VBoxOptions/MainMenu" to="." method="_on_main_menu_pressed"] 130 + [connection signal="visibility_changed" from="OptionsLayer" to="." method="_on_options_layer_visibility_changed"]
+1 -1
Scenes/gameplay/pause-layer/pause_button.png.import
··· 20 20 compress/lossy_quality=0.7 21 21 compress/hdr_compression=1 22 22 compress/normal_map=0 23 - compress/channel_pack=0 23 + compress/channel_pack=1 24 24 mipmaps/generate=false 25 25 mipmaps/limit=-1 26 26 roughness/mode=0
+40
Scenes/menu/menu.gd
··· 1 1 extends Control 2 2 3 3 @onready var btn_play: Button = $MarginContainer/Control/VBoxContainer/PlayButton 4 + @onready var options_button: Button = $MarginContainer/Control/VBoxContainer/OptionsButton 4 5 @onready var btn_exit: Button = $MarginContainer/Control/VBoxContainer/ExitButton 5 6 6 7 @onready var options_layer: CanvasLayer = $OptionsLayer 7 8 9 + @onready var menu_sfx_player: AudioStreamPlayer = $MenuSFXPlayer 10 + 11 + @export var button_focus_sound: AudioStream 12 + @export var button_click_sound: AudioStream 13 + 8 14 9 15 func _ready() -> void: 10 16 # needed for gamepads to work ··· 14 20 15 21 16 22 func _on_PlayButton_pressed() -> void: 23 + play_button_click_sound() 24 + await menu_sfx_player.finished 25 + 17 26 var params := { 18 27 "show_progress_bar": true, 19 28 "a_number": 10, ··· 28 37 29 38 30 39 func _on_ExitButton_pressed() -> void: 40 + play_button_click_sound() 41 + await menu_sfx_player.finished 31 42 # gently shutdown the game 32 43 var transitions := get_node_or_null("/root/Transitions") 33 44 if transitions: ··· 40 51 41 52 42 53 func _on_options_button_pressed() -> void: 54 + play_button_click_sound() 43 55 options_layer.visible = true 56 + 57 + var block_menu_sound: bool = true 58 + func _on_button_focused() -> void: 59 + if block_menu_sound: 60 + block_menu_sound = false 61 + else: 62 + play_button_focus_sound() 63 + 64 + func _on_buton_mouse_enter() -> void: 65 + play_button_focus_sound() 66 + 67 + func play_button_focus_sound() -> void: 68 + # Don't overwite button click sound while it's playing 69 + if menu_sfx_player.stream == button_click_sound and menu_sfx_player.playing: 70 + pass 71 + else: 72 + menu_sfx_player.stream = button_focus_sound 73 + menu_sfx_player.play() 74 + 75 + func play_button_click_sound() -> void: 76 + menu_sfx_player.stream = button_click_sound 77 + menu_sfx_player.play() 78 + 79 + 80 + func _on_options_layer_visibility_changed() -> void: 81 + if !$OptionsLayer.visible: 82 + await get_tree().create_timer(0.1).timeout # Doesn't work unless we wait for a sec? 83 + options_button.grab_focus()
+19 -4
Scenes/menu/menu.tscn
··· 1 - [gd_scene load_steps=6 format=3 uid="uid://c2gocuhw2o7py"] 1 + [gd_scene load_steps=8 format=3 uid="uid://c2gocuhw2o7py"] 2 2 3 + [ext_resource type="AudioStream" uid="uid://bjy16rs73d1sx" path="res://Assets/sfx/menu_switch.wav" id="2_7g6em"] 3 4 [ext_resource type="PackedScene" uid="uid://glhpumkx46qg" path="res://examples-from-addons/gwj_options_menu/scenes/options_menu_example.tscn" id="2_od2wv"] 5 + [ext_resource type="AudioStream" uid="uid://dvbk3bchhy270" path="res://Assets/sfx/select.wav" id="3_puqa6"] 4 6 [ext_resource type="FontFile" uid="uid://da2t6lyf41wty" path="res://Assets/fonts/open-sans/open-sans-bold.ttf" id="4"] 5 7 [ext_resource type="Script" uid="uid://dfnwymtygg1to" path="res://Scenes/menu/game_version.gd" id="4_3hod2"] 6 8 [ext_resource type="Script" uid="uid://cvc42inud8fxx" path="res://Scenes/menu/menu.gd" id="5"] ··· 14 16 grow_horizontal = 2 15 17 grow_vertical = 2 16 18 script = ExtResource("5") 19 + button_focus_sound = ExtResource("2_7g6em") 20 + button_click_sound = ExtResource("3_puqa6") 17 21 18 22 [node name="ColorRect" type="ColorRect" parent="."] 19 23 layout_mode = 1 ··· 84 88 [node name="PlayButton" type="Button" parent="MarginContainer/Control/VBoxContainer"] 85 89 custom_minimum_size = Vector2(200, 70) 86 90 layout_mode = 2 87 - focus_neighbor_bottom = NodePath("../ExitButton") 88 - focus_next = NodePath("../ExitButton") 91 + focus_neighbor_bottom = NodePath("../OptionsButton") 92 + focus_next = NodePath("../OptionsButton") 89 93 text = "START" 90 94 91 95 [node name="OptionsButton" type="Button" parent="MarginContainer/Control/VBoxContainer"] 92 96 custom_minimum_size = Vector2(200, 70) 93 97 layout_mode = 2 98 + focus_neighbor_top = NodePath("../PlayButton") 94 99 focus_neighbor_bottom = NodePath("../ExitButton") 95 100 focus_next = NodePath("../ExitButton") 96 101 text = "OPTIONS" ··· 98 103 [node name="ExitButton" type="Button" parent="MarginContainer/Control/VBoxContainer"] 99 104 custom_minimum_size = Vector2(200, 70) 100 105 layout_mode = 2 101 - focus_neighbor_top = NodePath("../PlayButton") 106 + focus_neighbor_top = NodePath("../OptionsButton") 102 107 focus_previous = NodePath("../PlayButton") 103 108 text = "EXIT" 104 109 ··· 174 179 theme_override_colors/font_color = Color(0.886275, 0.87451, 0.87451, 1) 175 180 text = "Raptor" 176 181 182 + [node name="MenuSFXPlayer" type="AudioStreamPlayer" parent="."] 183 + bus = &"SFX" 184 + 185 + [connection signal="visibility_changed" from="OptionsLayer" to="." method="_on_options_layer_visibility_changed"] 186 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxContainer/PlayButton" to="." method="_on_button_focused"] 187 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxContainer/PlayButton" to="." method="_on_buton_mouse_enter"] 177 188 [connection signal="pressed" from="MarginContainer/Control/VBoxContainer/PlayButton" to="." method="_on_PlayButton_pressed"] 189 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxContainer/OptionsButton" to="." method="_on_button_focused"] 190 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxContainer/OptionsButton" to="." method="_on_buton_mouse_enter"] 178 191 [connection signal="pressed" from="MarginContainer/Control/VBoxContainer/OptionsButton" to="." method="_on_options_button_pressed"] 192 + [connection signal="focus_entered" from="MarginContainer/Control/VBoxContainer/ExitButton" to="." method="_on_button_focused"] 193 + [connection signal="mouse_entered" from="MarginContainer/Control/VBoxContainer/ExitButton" to="." method="_on_buton_mouse_enter"] 179 194 [connection signal="pressed" from="MarginContainer/Control/VBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
+6
Scripts/options_menu.gd
··· 1 1 extends CenterContainer 2 2 3 3 @onready var options_layer: Node = get_parent() 4 + @onready var first_UI_option: RebindableActionButton = $VBoxContainer/HotkeysContainer/GridContainer/UiUp/RebindableAction 4 5 5 6 func _input(event): 6 7 if event.is_action_pressed("pause") and options_layer.visible: ··· 9 10 func _close_menu() -> void: 10 11 options_layer.visible = false 11 12 13 + 14 + 15 + func _on_visibility_changed() -> void: 16 + if visible: 17 + first_UI_option.grab_focus()
+9
Scripts/volume_slider_random_audio.gd
··· 1 + extends AudioStreamPlayer 2 + 3 + @export var sounds: Array[AudioStream] 4 + 5 + 6 + func _on_finished() -> void: 7 + var random_sound: int = Global.rng.randi_range(0, sounds.size()-1) 8 + 9 + stream = sounds[random_sound]
+1
Scripts/volume_slider_random_audio.gd.uid
··· 1 + uid://dj732cm3q0hhe
+14 -3
examples-from-addons/gwj_options_menu/scenes/options_menu_example.tscn
··· 1 - [gd_scene load_steps=8 format=3 uid="uid://glhpumkx46qg"] 1 + [gd_scene load_steps=15 format=3 uid="uid://glhpumkx46qg"] 2 2 3 3 [ext_resource type="Script" uid="uid://q5u6ll3j24br" path="res://Scripts/options_menu.gd" id="1_065bb"] 4 4 [ext_resource type="PackedScene" uid="uid://ce2r6mevl3dp2" path="res://addons/gwj_accessibility_scripts/options/rebindable_action.tscn" id="1_ee5m2"] 5 5 [ext_resource type="FontFile" uid="uid://da2t6lyf41wty" path="res://Assets/fonts/open-sans/open-sans-bold.ttf" id="2_avw1f"] 6 6 [ext_resource type="PackedScene" uid="uid://cxch7x2j3wv3p" path="res://addons/gwj_accessibility_scripts/options/volume_slider.tscn" id="2_vxtyn"] 7 - [ext_resource type="AudioStream" uid="uid://nb5bufmvmchf" path="res://examples-from-addons/gwj_options_menu/assets/feedback_sound.wav" id="3_vlk37"] 8 7 [ext_resource type="PackedScene" uid="uid://cf00wkvfngqp2" path="res://addons/gwj_accessibility_scripts/options/mute_button.tscn" id="4_sokce"] 8 + [ext_resource type="AudioStream" uid="uid://bhnrews1wxh02" path="res://Assets/sfx/cough_male/cough_male_advanced03.wav" id="5_avw1f"] 9 9 [ext_resource type="PackedScene" uid="uid://dh5kn8bfiy1wn" path="res://addons/gwj_accessibility_scripts/options/setting_slider.tscn" id="5_jc3wj"] 10 + [ext_resource type="Script" uid="uid://dj732cm3q0hhe" path="res://Scripts/volume_slider_random_audio.gd" id="6_lhsem"] 11 + [ext_resource type="AudioStream" uid="uid://djdls7gry35v3" path="res://Assets/sfx/cough_female/cough_female_advanced01.wav" id="7_hg4ey"] 12 + [ext_resource type="AudioStream" uid="uid://dgkiw40ewavra" path="res://Assets/sfx/cough_female/cough_female_dying01.wav" id="8_galyv"] 13 + [ext_resource type="AudioStream" uid="uid://bau3adrenygy4" path="res://Assets/sfx/cough_female/cough_female_sick01.wav" id="9_5idlf"] 14 + [ext_resource type="AudioStream" uid="uid://c37sgowobd70u" path="res://Assets/sfx/cough_male/cough_male_advanced01.wav" id="10_5cwfm"] 15 + [ext_resource type="AudioStream" uid="uid://bds5ldgkox4g6" path="res://Assets/sfx/cough_male/cough_male_dying01.wav" id="11_v58jt"] 16 + [ext_resource type="AudioStream" uid="uid://bkk8xqaorss3i" path="res://Assets/sfx/cough_male/cough_male_sick01.wav" id="12_f0tyn"] 10 17 11 18 [node name="MarginContainer" type="CenterContainer"] 12 19 anchors_preset = 15 ··· 111 118 feedback_sound_path = NodePath("AudioStreamPlayer") 112 119 113 120 [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="VBoxContainer/HotkeysContainer/VolumeContainer/VolumeSlider"] 114 - stream = ExtResource("3_vlk37") 121 + stream = ExtResource("5_avw1f") 122 + script = ExtResource("6_lhsem") 123 + sounds = Array[AudioStream]([ExtResource("7_hg4ey"), ExtResource("8_galyv"), ExtResource("9_5idlf"), ExtResource("10_5cwfm"), ExtResource("11_v58jt"), ExtResource("12_f0tyn")]) 115 124 116 125 [node name="MuteContainer" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/VolumeContainer"] 117 126 layout_mode = 2 ··· 176 185 size_flags_vertical = 4 177 186 text = "Close Options" 178 187 188 + [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"] 189 + [connection signal="finished" from="VBoxContainer/HotkeysContainer/VolumeContainer/VolumeSlider/AudioStreamPlayer" to="VBoxContainer/HotkeysContainer/VolumeContainer/VolumeSlider/AudioStreamPlayer" method="_on_finished"] 179 190 [connection signal="pressed" from="VBoxContainer/CloseButton" to="." method="_close_menu"] 180 191 181 192 [editable path="VBoxContainer/HotkeysContainer/GridContainer/HBoxContainer/RebindableAction"]
+8
project.godot
··· 61 61 62 62 [input] 63 63 64 + ui_accept={ 65 + "deadzone": 0.5, 66 + "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) 67 + , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194310,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) 68 + , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null) 69 + , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null) 70 + ] 71 + } 64 72 debug_restart_game={ 65 73 "deadzone": 0.5, 66 74 "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":82,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)