mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Fix inspection
This commit is contained in:
parent
5d497ba4a8
commit
6f782266b5
@ -68,12 +68,9 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
}
|
||||
}
|
||||
};
|
||||
selectionCentreButton.Selected.DisabledChanged += (isDisabled) =>
|
||||
selectionCentreButton.Selected.DisabledChanged += isDisabled =>
|
||||
{
|
||||
if (isDisabled)
|
||||
selectionCentreButton.TooltipText = "We can't rotate a circle around itself! Can we?";
|
||||
else
|
||||
selectionCentreButton.TooltipText = string.Empty;
|
||||
selectionCentreButton.TooltipText = isDisabled ? "We can't rotate a circle around itself! Can we?" : string.Empty;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -214,12 +214,9 @@ namespace osu.Game.Rulesets.Edit
|
||||
|
||||
foreach (var item in toolboxCollection.Items)
|
||||
{
|
||||
item.Selected.DisabledChanged += (isDisabled) =>
|
||||
item.Selected.DisabledChanged += isDisabled =>
|
||||
{
|
||||
if (isDisabled)
|
||||
item.TooltipText = "Add at least one timing point first!";
|
||||
else
|
||||
item.TooltipText = string.Empty;
|
||||
item.TooltipText = isDisabled ? "Add at least one timing point first!" : string.Empty;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user