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;
|
private readonly Container content;
|
||||||
protected override Container<Drawable> Content => content;
|
protected override Container<Drawable> Content => content;
|
||||||
|
|
||||||
|
protected readonly OsuSpriteText ValueText;
|
||||||
|
|
||||||
protected Toast(string description, string value, string keybinding)
|
protected Toast(string description, string value, string keybinding)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre;
|
Anchor = Anchor.Centre;
|
||||||
|
@ -49,13 +51,13 @@ protected Toast(string description, string value, string keybinding)
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Text = description.ToUpperInvariant()
|
Text = description.ToUpperInvariant()
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
ValueText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
||||||
Padding = new MarginPadding { Left = 10, Right = 10 },
|
Padding = new MarginPadding { Left = 10, Right = 10 },
|
||||||
Name = "Value",
|
Name = "Value",
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.Centre,
|
||||||
Text = value
|
Text = value
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
|
|
|
@ -62,6 +62,8 @@ public TrackedSettingToast(SettingDescription description)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ValueText.Origin = optionCount > 0 ? Anchor.BottomCentre : Anchor.Centre;
|
||||||
|
|
||||||
for (int i = 0; i < optionCount; i++)
|
for (int i = 0; i < optionCount; i++)
|
||||||
{
|
{
|
||||||
optionLights.Add(new OptionLight
|
optionLights.Add(new OptionLight
|
||||||
|
|
Loading…
Reference in New Issue