mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:07:52 +08:00
Simplify logic
This commit is contained in:
parent
96a8bdf920
commit
ba40737356
@ -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 =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user