Added menu settings add-on

This commit is contained in:
2026-03-07 14:16:44 +01:00
parent 8b7a8e014f
commit df8c8c6c3b
70 changed files with 4053 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
extends SliderElement
## Name of the audio bus that the volume slider is assigned to.
@export var AUDIO_BUS: String
# Element specific script for applying its value to the game
func _apply_settings() -> void:
# Get the index of the audio bus
var busIndex: int = AudioServer.get_bus_index(AUDIO_BUS)
# Set the volume of the audio bus
AudioServer.set_bus_volume_db(busIndex, linear_to_db(currentValue))