1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Fix inspection

This commit is contained in:
Nguyên Minh Hồ 2024-03-30 17:03:40 +07:00
parent 5d497ba4a8
commit 6f782266b5
2 changed files with 4 additions and 10 deletions

View File

@ -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;
};
}

View File

@ -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;
};
}