Auto stash before merge of "main" and "origin/main"

This commit is contained in:
Albion
2022-12-10 09:14:10 +01:00
parent afdddfc1df
commit 742e4e2abb
143 changed files with 1384 additions and 6 deletions

20
menu/VolumeSlider.gd Normal file
View File

@@ -0,0 +1,20 @@
extends HSlider
var master_bus = AudioServer.get_bus_index("Master")
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_value_changed(value):
AudioServer.set_bus_volume_db(master_bus, value)
if value == -30:
AudioServer.set_bus_mute(master_bus, true)
else:
AudioServer.set_bus_mute(master_bus,false) # Replace with function body.