mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +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 = isDisabled ? "We can't rotate a circle around itself! Can we?" : string.Empty;
|
||||||
selectionCentreButton.TooltipText = "We can't rotate a circle around itself! Can we?";
|
|
||||||
else
|
|
||||||
selectionCentreButton.TooltipText = string.Empty;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,12 +214,9 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
|
|
||||||
foreach (var item in toolboxCollection.Items)
|
foreach (var item in toolboxCollection.Items)
|
||||||
{
|
{
|
||||||
item.Selected.DisabledChanged += (isDisabled) =>
|
item.Selected.DisabledChanged += isDisabled =>
|
||||||
{
|
{
|
||||||
if (isDisabled)
|
item.TooltipText = isDisabled ? "Add at least one timing point first!" : string.Empty;
|
||||||
item.TooltipText = "Add at least one timing point first!";
|
|
||||||
else
|
|
||||||
item.TooltipText = string.Empty;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user