1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 20:37:26 +08:00

Merge pull request #30482 from peppy/adjust-minimum-scale

Allow scaling down to 5% in popover scale dialog
This commit is contained in:
Bartłomiej Dach 2024-11-04 11:34:42 +01:00 committed by GitHub
commit 7d39765f71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ namespace osu.Game.Rulesets.Osu.Edit
{ {
Current = scaleInputBindable = new BindableNumber<float> Current = scaleInputBindable = new BindableNumber<float>
{ {
MinValue = 0.5f, MinValue = 0.05f,
MaxValue = 2, MaxValue = 2,
Precision = 0.001f, Precision = 0.001f,
Value = 1, Value = 1,
@ -208,7 +208,7 @@ namespace osu.Game.Rulesets.Osu.Edit
if (!scaleHandler.OriginalSurroundingQuad.HasValue) if (!scaleHandler.OriginalSurroundingQuad.HasValue)
return; return;
const float min_scale = 0.5f; const float min_scale = 0.05f;
const float max_scale = 10; const float max_scale = 10;
var scale = scaleHandler.ClampScaleToPlayfieldBounds(new Vector2(max_scale), getOriginPosition(scaleInfo.Value), getAdjustAxis(scaleInfo.Value), getRotation(scaleInfo.Value)); var scale = scaleHandler.ClampScaleToPlayfieldBounds(new Vector2(max_scale), getOriginPosition(scaleInfo.Value), getAdjustAxis(scaleInfo.Value), getRotation(scaleInfo.Value));