1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 20:35:39 +08:00

Disallow setting sample volume lower than 5% in editor

This commit is contained in:
Bartłomiej Dach
2023-10-20 14:21:11 +02:00
Unverified
parent b321d556b6
commit 12282fff5c
@@ -16,6 +16,7 @@ using osu.Game.Audio;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Screens.Edit.Timing;
using osuTK;
using osuTK.Graphics;
@@ -101,7 +102,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
},
volume = new IndeterminateSliderWithTextBoxInput<int>("Volume", new BindableInt(100)
{
MinValue = 0,
MinValue = DrawableHitObject.MINIMUM_SAMPLE_VOLUME,
MaxValue = 100,
})
}