Added menu settings add-on
This commit is contained in:
1 parent
8b7a8e014f
commit
df8c8c6c3b
70 files changed
+4053
-1
No files matched your search
+13
@@ -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))
|
||||
+1
@@ -0,0 +1 @@
|
||||
uid://b16tk8008cqdj
|
||||