1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +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); selectionCentreButton.Selected.Disabled = !(scaleHandler.CanScaleX.Value || scaleHandler.CanScaleY.Value);
playfieldCentreButton.Selected.Disabled = scaleHandler.IsScalingSlider.Value && !selectionCentreButton.Selected.Disabled; playfieldCentreButton.Selected.Disabled = scaleHandler.IsScalingSlider.Value && !selectionCentreButton.Selected.Disabled;
if (playfieldCentreButton.Selected.Disabled) scaleOrigin.Items.First(b => !b.Selected.Disabled).Select();
scaleOrigin.Items.Last().Select();
else
scaleOrigin.Items.First().Select();
scaleInfo.BindValueChanged(scale => scaleInfo.BindValueChanged(scale =>
{ {