breadwinner/classes/options/audio_options.gd
Hellie-xd 900f5eb6c3 kinda working options menu, but needs work
also audio lags on my pc, probably the cpu cant keep up with the audio
2026-08-12 01:47:15 +02:00

24 lines
528 B
GDScript

class_name AudioOptions extends Options
#TODO: add audio related settings here, each have their own property
var master_audio_level: float = 100.0:
set(value):
master_audio_level = clamp(value, 0.0, 100.0)
var sound_effects_audio_level: float = 100.0:
set(value):
sound_effects_audio_level = clamp(value, 0.0, 100.0)
var current_audio_type: AudioTypes = AudioTypes.RAYTRACED_AUDIO
enum AudioTypes {
RAYTRACED_AUDIO,
SIMPLE_VERB,
DELAY_VERB,
CONSTANT_VERB
}
func _init() -> void:
cur_type = Options.type.AUDIO