mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +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);
|
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 =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user