add all sounds to sound test

This commit is contained in:
Haze Weathers 2024-07-07 22:58:27 -04:00
parent 9c84ac09bf
commit e5859ae452
2 changed files with 132 additions and 6 deletions

View file

@ -1,9 +1,16 @@
tool
extends TextureButton
export (Array, String) var titles
export (Array, AudioStream) var sounds
export (Array, Dictionary) var categories setget set_categories
var current_selection = 0
onready var body = $SoundLabel/Label
onready var category = $SoundLabel/Category
func _ready():
if Engine.editor_hint and categories.empty():
categories = [SoundCategory.new()]
func _gui_input(event):
if Input.is_action_just_pressed("ui_left"):
@ -16,3 +23,23 @@ func _gui_input(event):
Audio.ac_music.stop()
current_selection = posmod(current_selection,sounds.size())
body.text = titles[current_selection]
# for c in categories:
# if current_selection >= c.index:
# category.text = c.name
# category.add_color_override("font_color", c.color)
class SoundCategory extends Resource:
export var starting_index: int = 0
export var title: String = ""
export var color: Color = Color.white
func set_categories(value: Array) -> void:
categories = value
for i in categories.size():
if !categories[i]:
categories[i] = {
index = 0,
name = "",
color = Color.white,
}

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=49 format=2]
[gd_scene load_steps=125 format=2]
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=1]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=2]
@ -6,6 +6,10 @@
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=4]
[ext_resource path="res://ui/theme.tres" type="Theme" id=5]
[ext_resource path="res://audio/sounds/key.ogg" type="AudioStream" id=6]
[ext_resource path="res://audio/sounds/select.ogg" type="AudioStream" id=7]
[ext_resource path="res://audio/sounds/land.ogg" type="AudioStream" id=8]
[ext_resource path="res://audio/sounds/arrow_collect.ogg" type="AudioStream" id=9]
[ext_resource path="res://audio/sounds/confirm.ogg" type="AudioStream" id=10]
[ext_resource path="res://graphics/hud/sound_test_title.png" type="Texture" id=11]
[ext_resource path="res://graphics/player/sg_headphones.png" type="Texture" id=12]
[ext_resource path="res://menus/music_select.gd" type="Script" id=13]
@ -33,14 +37,86 @@
[ext_resource path="res://audio/sounds/gover.ogg" type="AudioStream" id=35]
[ext_resource path="res://audio/sounds/explosion.ogg" type="AudioStream" id=36]
[ext_resource path="res://audio/sounds/scrump_hurt.ogg" type="AudioStream" id=37]
[ext_resource path="res://audio/sounds/sword.ogg" type="AudioStream" id=38]
[ext_resource path="res://audio/sounds/a_egg_collect.ogg" type="AudioStream" id=40]
[ext_resource path="res://audio/sounds/shell.ogg" type="AudioStream" id=38]
[ext_resource path="res://audio/sounds/bullet_barrage.ogg" type="AudioStream" id=39]
[ext_resource path="res://audio/sounds/gun_cock.ogg" type="AudioStream" id=40]
[ext_resource path="res://audio/sounds/a_bmilc.ogg" type="AudioStream" id=41]
[ext_resource path="res://audio/sounds/a_climb.ogg" type="AudioStream" id=42]
[ext_resource path="res://audio/sounds/star.ogg" type="AudioStream" id=43]
[ext_resource path="res://audio/music/moon_trail.ogg" type="AudioStream" id=44]
[ext_resource path="res://menus/main_menu.tscn" type="PackedScene" id=45]
[ext_resource path="res://menus/back_button.tscn" type="PackedScene" id=46]
[ext_resource path="res://audio/sounds/mech_hurt_2.ogg" type="AudioStream" id=47]
[ext_resource path="res://audio/sounds/explosion_small.ogg" type="AudioStream" id=48]
[ext_resource path="res://audio/sounds/mech_hurt_3.ogg" type="AudioStream" id=49]
[ext_resource path="res://audio/sounds/mech_hurt_1.ogg" type="AudioStream" id=50]
[ext_resource path="res://audio/sounds/scrump_shot.ogg" type="AudioStream" id=51]
[ext_resource path="res://audio/sounds/rainbow_laser.ogg" type="AudioStream" id=52]
[ext_resource path="res://audio/sounds/fami_transform.ogg" type="AudioStream" id=53]
[ext_resource path="res://audio/sounds/copsquash.ogg" type="AudioStream" id=54]
[ext_resource path="res://audio/sounds/ominous.ogg" type="AudioStream" id=55]
[ext_resource path="res://audio/sounds/cop_splat.ogg" type="AudioStream" id=56]
[ext_resource path="res://audio/sounds/shard_expel.ogg" type="AudioStream" id=57]
[ext_resource path="res://audio/sounds/absorb_shard.ogg" type="AudioStream" id=58]
[ext_resource path="res://audio/sounds/famira.ogg" type="AudioStream" id=59]
[ext_resource path="res://audio/sounds/great_job_haze.ogg" type="AudioStream" id=60]
[ext_resource path="res://audio/sounds/fail_shard.ogg" type="AudioStream" id=61]
[ext_resource path="res://audio/sounds/good_job_haze.ogg" type="AudioStream" id=62]
[ext_resource path="res://audio/sounds/msx_die.ogg" type="AudioStream" id=63]
[ext_resource path="res://audio/sounds/famira_die.ogg" type="AudioStream" id=64]
[ext_resource path="res://audio/sounds/final_score.ogg" type="AudioStream" id=65]
[ext_resource path="res://audio/sounds/shard_results.ogg" type="AudioStream" id=66]
[ext_resource path="res://audio/sounds/msx_here_take_this.wav" type="AudioStream" id=67]
[ext_resource path="res://audio/sounds/msx_help_me_get_outta_here.ogg" type="AudioStream" id=68]
[ext_resource path="res://audio/sounds/msx_come_here.ogg" type="AudioStream" id=69]
[ext_resource path="res://audio/sounds/msx_fuck.ogg" type="AudioStream" id=70]
[ext_resource path="res://audio/sounds/msx_shit.ogg" type="AudioStream" id=71]
[ext_resource path="res://audio/sounds/fami_fire.ogg" type="AudioStream" id=72]
[ext_resource path="res://audio/sounds/fami_voice.ogg" type="AudioStream" id=73]
[ext_resource path="res://audio/sounds/revolution2083_haze.ogg" type="AudioStream" id=74]
[ext_resource path="res://audio/sounds/se_g2.ogg" type="AudioStream" id=75]
[ext_resource path="res://audio/sounds/victory_haze.ogg" type="AudioStream" id=76]
[ext_resource path="res://audio/sounds/2600_charge.ogg" type="AudioStream" id=77]
[ext_resource path="res://audio/sounds/sword.ogg" type="AudioStream" id=78]
[ext_resource path="res://audio/sounds/spaghetti.ogg" type="AudioStream" id=79]
[ext_resource path="res://audio/sounds/mkey.ogg" type="AudioStream" id=80]
[ext_resource path="res://audio/sounds/fami_grumble.ogg" type="AudioStream" id=81]
[ext_resource path="res://audio/sounds/vulcan.ogg" type="AudioStream" id=82]
[ext_resource path="res://audio/sounds/laser_ready.ogg" type="AudioStream" id=83]
[ext_resource path="res://ui/2ndpuberty_scholar_outline.fnt" type="BitmapFont" id=84]
[ext_resource path="res://audio/sounds/collapse_block_fall.ogg" type="AudioStream" id=85]
[ext_resource path="res://audio/sounds/mech_walk_1.ogg" type="AudioStream" id=86]
[ext_resource path="res://audio/sounds/a_egg_collect.ogg" type="AudioStream" id=87]
[ext_resource path="res://audio/sounds/mech_creak.ogg" type="AudioStream" id=88]
[ext_resource path="res://audio/sounds/mech_unduck.ogg" type="AudioStream" id=89]
[ext_resource path="res://audio/sounds/mech_duck.ogg" type="AudioStream" id=90]
[ext_resource path="res://audio/sounds/resolve.ogg" type="AudioStream" id=91]
[ext_resource path="res://audio/sounds/talking.ogg" type="AudioStream" id=92]
[ext_resource path="res://audio/sounds/mech_walk.ogg" type="AudioStream" id=93]
[ext_resource path="res://audio/sounds/mech_walk_2.ogg" type="AudioStream" id=94]
[ext_resource path="res://audio/sounds/good_job_penny.ogg" type="AudioStream" id=95]
[ext_resource path="res://audio/sounds/good_job_ivy.ogg" type="AudioStream" id=96]
[ext_resource path="res://audio/sounds/good_job_dog.ogg" type="AudioStream" id=97]
[ext_resource path="res://audio/sounds/great_job_penny.ogg" type="AudioStream" id=98]
[ext_resource path="res://audio/sounds/great_job_dog.ogg" type="AudioStream" id=99]
[ext_resource path="res://audio/sounds/great_job_ivy.ogg" type="AudioStream" id=100]
[ext_resource path="res://audio/sounds/victory.ogg" type="AudioStream" id=101]
[ext_resource path="res://audio/sounds/msx_goddammit.ogg" type="AudioStream" id=102]
[ext_resource path="res://audio/sounds/msx_fucking_cop.ogg" type="AudioStream" id=103]
[ext_resource path="res://audio/sounds/msx_motherfucker.ogg" type="AudioStream" id=104]
[ext_resource path="res://audio/sounds/revolution2083.ogg" type="AudioStream" id=105]
[ext_resource path="res://audio/sounds/revolution2083_penny.ogg" type="AudioStream" id=106]
[ext_resource path="res://audio/sounds/revolution2083_dog.ogg" type="AudioStream" id=107]
[ext_resource path="res://audio/sounds/revolution2083_ivy.ogg" type="AudioStream" id=108]
[ext_resource path="res://audio/sounds/victory_penny.ogg" type="AudioStream" id=109]
[ext_resource path="res://audio/sounds/victory_ivy.ogg" type="AudioStream" id=110]
[ext_resource path="res://audio/sounds/good_job.ogg" type="AudioStream" id=111]
[ext_resource path="res://audio/sounds/victory_dog.ogg" type="AudioStream" id=112]
[ext_resource path="res://audio/sounds/teleport.ogg" type="AudioStream" id=113]
[ext_resource path="res://audio/sounds/shard_float.ogg" type="AudioStream" id=114]
[ext_resource path="res://audio/sounds/intro_voiceover.ogg" type="AudioStream" id=115]
[ext_resource path="res://audio/sounds/cop_shoot.ogg" type="AudioStream" id=116]
[ext_resource path="res://audio/sounds/splash.ogg" type="AudioStream" id=117]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 1 )
@ -176,8 +252,21 @@ margin_bottom = 121.0
focus_neighbour_top = NodePath("../Music")
texture_focused = ExtResource( 27 )
script = ExtResource( 16 )
titles = [ "Jump", "Double Jump", "Die", "Climb Down", "Climb Up", "Shoot Arrow", "Game Over", "Collect Key", "Collect Star", "Collect Arrow", "Bone Rattle", "Scrump Hurt", "Scrump Die", "Explosion", "Bubble", "Button", "Sword" ]
sounds = [ ExtResource( 25 ), ExtResource( 34 ), ExtResource( 30 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 32 ), ExtResource( 35 ), ExtResource( 6 ), ExtResource( 43 ), ExtResource( 40 ), ExtResource( 33 ), ExtResource( 37 ), ExtResource( 31 ), ExtResource( 36 ), ExtResource( 24 ), ExtResource( 29 ), ExtResource( 38 ) ]
titles = [ "Select", "Confirm", "Jump", "Double Jump", "Land", "Climb", "Bmilc", "Shoot", "Die", "Sploosh", "Bzaap", "Teleport", "Gover", "Key Get", "Arrow Get", "Star Get", "Skeleton Die", "Scrump Shoot", "Scrump Hurt", "Scrump Die", "Bubble Get", "Big Explosion", "Mech Shoot", "Laser Charge", "Rainbow Laser", "Mech Hurt 1", "Mech Hurt 2", "Mech Hurt 3", "Small Explosion", "Bullet Casing", "Button Click", "Ominous", "GunCock", "Shards Expelled", "Shards Absorbed", "Fami Transform", "Scope Squish", "Scope Splat", "Famira Roar", "2083 Shoot", "Laser Ready", "Famira Breath", "Famira Die", "Collected Shard", "Missed Shard", "Final Score", "Revolution 2083", "Good Job!", "Great Job!", "Wonderful!", "Come Here", "Help Me", "Agh!", "Fuck!", "Shit...", "Take This", "Fami's Grand Plan", "Debug M", "Spaghetti", "Sword", "Egg Collect", "Collapse", "Cop Shoot", "Talking", "Shard Float", "Fami Grumble", "Segz", "Mech Creak", "Mech Step 1", "Mech Step 2", "Mech Walking", "Mech Duck", "Mech Unduck", "Resolve", "Robolution 2083", "Penolution 2083", "Ivolution 2083", "Dogolution 2083", "Classic Good Job", "Good Job - Penny", "Good Job - Ivy", "Good Job - Dog", "Great Job - Penny", "Great Job - Ivy", "Great Job - Dog", "Classic Wonderful", "Wonderful - Penny", "Wonderful - Ivy", "Wonderful - Dog", "Fucking Cop...", "Goddammit...", "Motherfucker...", "Intro Voiceover" ]
sounds = [ ExtResource( 7 ), ExtResource( 10 ), ExtResource( 25 ), ExtResource( 34 ), ExtResource( 8 ), ExtResource( 42 ), ExtResource( 41 ), ExtResource( 32 ), ExtResource( 30 ), ExtResource( 117 ), null, ExtResource( 113 ), ExtResource( 35 ), ExtResource( 6 ), ExtResource( 9 ), ExtResource( 43 ), ExtResource( 33 ), ExtResource( 51 ), ExtResource( 37 ), ExtResource( 31 ), ExtResource( 24 ), ExtResource( 36 ), ExtResource( 39 ), ExtResource( 77 ), ExtResource( 52 ), ExtResource( 50 ), ExtResource( 47 ), ExtResource( 49 ), ExtResource( 48 ), ExtResource( 38 ), ExtResource( 29 ), ExtResource( 55 ), ExtResource( 40 ), ExtResource( 57 ), ExtResource( 58 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 56 ), ExtResource( 59 ), ExtResource( 82 ), ExtResource( 83 ), ExtResource( 72 ), ExtResource( 64 ), ExtResource( 66 ), ExtResource( 61 ), ExtResource( 65 ), ExtResource( 74 ), ExtResource( 62 ), ExtResource( 60 ), ExtResource( 76 ), ExtResource( 69 ), ExtResource( 68 ), ExtResource( 63 ), ExtResource( 70 ), ExtResource( 71 ), ExtResource( 67 ), ExtResource( 73 ), ExtResource( 80 ), ExtResource( 79 ), ExtResource( 78 ), ExtResource( 87 ), ExtResource( 85 ), ExtResource( 116 ), ExtResource( 92 ), ExtResource( 114 ), ExtResource( 81 ), ExtResource( 75 ), ExtResource( 88 ), ExtResource( 86 ), ExtResource( 94 ), ExtResource( 93 ), ExtResource( 90 ), ExtResource( 89 ), ExtResource( 91 ), ExtResource( 105 ), ExtResource( 106 ), ExtResource( 108 ), ExtResource( 107 ), ExtResource( 111 ), ExtResource( 95 ), ExtResource( 96 ), ExtResource( 97 ), ExtResource( 98 ), ExtResource( 100 ), ExtResource( 99 ), ExtResource( 101 ), ExtResource( 109 ), ExtResource( 110 ), ExtResource( 112 ), ExtResource( 103 ), ExtResource( 102 ), ExtResource( 104 ), ExtResource( 115 ) ]
categories = [ {
"color": Color( 0.690196, 0.690196, 0.690196, 1 ),
"index": 0,
"name": "Menu"
}, {
"color": Color( 1, 0.423529, 0.4, 1 ),
"index": 2,
"name": "player"
}, {
"color": Color( 1, 0.631373, 0.4, 1 ),
"index": 13,
"name": "collectibles"
} ]
[node name="SoundLabel" type="Label" parent="Sound"]
material = ExtResource( 4 )
@ -201,10 +290,20 @@ margin_left = 8.0
margin_top = 11.0
margin_right = 152.0
margin_bottom = 35.0
text = "jump"
text = "Select"
align = 1
valign = 1
[node name="Category" type="Label" parent="Sound/SoundLabel"]
visible = false
margin_left = 42.0
margin_right = 160.0
margin_bottom = 10.0
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_fonts/font = ExtResource( 84 )
text = "menu"
align = 2
[node name="Label" type="Label" parent="."]
material = ExtResource( 4 )
margin_top = 180.0