mirror of https://github.com/ppy/osu
Restore deleted line
This commit is contained in:
parent
09d679de8d
commit
bbc3cbf563
|
@ -16,6 +16,8 @@ public abstract class Toast : Container
|
|||
private readonly Container content;
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
protected readonly OsuSpriteText ValueText;
|
||||
|
||||
protected Toast(string description, string value, string keybinding)
|
||||
{
|
||||
Anchor = Anchor.Centre;
|
||||
|
@ -49,13 +51,13 @@ protected Toast(string description, string value, string keybinding)
|
|||
Origin = Anchor.TopCentre,
|
||||
Text = description.ToUpperInvariant()
|
||||
},
|
||||
new OsuSpriteText
|
||||
ValueText = new OsuSpriteText
|
||||
{
|
||||
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
||||
Padding = new MarginPadding { Left = 10, Right = 10 },
|
||||
Name = "Value",
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Origin = Anchor.Centre,
|
||||
Text = value
|
||||
},
|
||||
new OsuSpriteText
|
||||
|
|
|
@ -62,6 +62,8 @@ public TrackedSettingToast(SettingDescription description)
|
|||
break;
|
||||
}
|
||||
|
||||
ValueText.Origin = optionCount > 0 ? Anchor.BottomCentre : Anchor.Centre;
|
||||
|
||||
for (int i = 0; i < optionCount; i++)
|
||||
{
|
||||
optionLights.Add(new OptionLight
|
||||
|
|
Loading…
Reference in New Issue