bunch of fixes and changes done
This commit is contained in:
parent
4a9193e549
commit
73b9a706a3
59 changed files with 940 additions and 68 deletions
22
music/music_panel.gd
Normal file
22
music/music_panel.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends Control
|
||||
|
||||
@export var ambient_player : AudioStreamPlayer
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
_on_h_slider_value_changed(0.5)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_h_slider_value_changed(value: float) -> void:
|
||||
#var new_db = linear_to_db(value)
|
||||
AudioServer.set_bus_volume_linear(1, value)
|
||||
|
||||
|
||||
func _on_audio_stream_player_finished() -> void:
|
||||
ambient_player.play()
|
||||
Loading…
Add table
Add a link
Reference in a new issue