mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add shared class for notice text in settings
This commit is contained in:
@ -73,13 +73,7 @@ namespace osu.Game.Overlays.Settings
|
||||
return;
|
||||
|
||||
// construct lazily for cases where the label is not needed (may be provided by the Control).
|
||||
FlowContent.Add(warningText = new OsuTextFlowContainer
|
||||
{
|
||||
Colour = colours.Yellow,
|
||||
Margin = new MarginPadding { Bottom = 5 },
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
});
|
||||
FlowContent.Add(warningText = new SettingsNoticeText { Margin = new MarginPadding { Bottom = 5 } });
|
||||
}
|
||||
|
||||
warningText.Alpha = hasValue ? 0 : 1;
|
||||
|
Reference in New Issue
Block a user