1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:07:52 +08:00

Simplify logic

This commit is contained in:
Bartłomiej Dach 2024-05-29 10:01:04 +02:00
parent 96a8bdf920
commit ba40737356
No known key found for this signature in database

View File

@ -124,10 +124,7 @@ namespace osu.Game.Rulesets.Osu.Edit
selectionCentreButton.Selected.Disabled = !(scaleHandler.CanScaleX.Value || scaleHandler.CanScaleY.Value);
playfieldCentreButton.Selected.Disabled = scaleHandler.IsScalingSlider.Value && !selectionCentreButton.Selected.Disabled;
if (playfieldCentreButton.Selected.Disabled)
scaleOrigin.Items.Last().Select();
else
scaleOrigin.Items.First().Select();
scaleOrigin.Items.First(b => !b.Selected.Disabled).Select();
scaleInfo.BindValueChanged(scale =>
{