Restore deleted line

This commit is contained in:
Lucas A 2019-07-12 20:22:31 +02:00
parent 09d679de8d
commit bbc3cbf563
2 changed files with 6 additions and 2 deletions

View File

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

View File

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