mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 13:55:55 +00:00
Settings load/save
This commit is contained in:
parent
e86dda79b7
commit
1e38945f63
5 changed files with 68 additions and 3 deletions
|
|
@ -11,6 +11,12 @@ public partial class AudioSlider : HSlider
|
|||
public override void _Ready()
|
||||
{
|
||||
_audioBusIndex = AudioServer.GetBusIndex(AudioBusName);
|
||||
|
||||
CallDeferred(MethodName.InitializeDeferred);
|
||||
}
|
||||
|
||||
private void InitializeDeferred()
|
||||
{
|
||||
this.Value = AudioServer.GetBusVolumeLinear(_audioBusIndex);
|
||||
|
||||
this.ValueChanged += MusicVolumeSliderOnValueChanged;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue