Skip to content

Commit

Permalink
πŸ§‘πŸ½β€πŸš’ Fix volume slider
Browse files Browse the repository at this point in the history
  • Loading branch information
heytherewill committed Oct 7, 2024
1 parent 472f7ba commit e789a82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nodes/Controls/MuteButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private void OnVolumeChanged(float newVolume)
Muted = newVolume == 0.0f;
}

public override void _Input(InputEvent @event)
public override void _GuiInput(InputEvent @event)
{
base._Input(@event);

Expand Down
2 changes: 2 additions & 0 deletions src/scenes/Controls/MasterVolumeSlider.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ custom_icons/grabber = ExtResource( 4 )
custom_styles/slider = SubResource( 1 )
custom_styles/grabber_area_highlight = SubResource( 2 )
script = ExtResource( 1 )

[connection signal="value_changed" from="MasterVolumeSlider" to="MasterVolumeSlider" method="OnValueChanged"]
2 changes: 1 addition & 1 deletion src/scenes/Game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ volume_db = -10.0

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 17 )
volume_db = -20.0
volume_db = -10.0
autoplay = true

[node name="Them" type="Label" parent="."]
Expand Down

0 comments on commit e789a82

Please sign in to comment.