mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 09:03:21 +08:00
Display "no key bound" when no shortcut
This commit is contained in:
parent
4b3c2466a4
commit
17861c2a16
@ -101,20 +101,15 @@ namespace osu.Game.Overlays
|
||||
Origin = Anchor.TopCentre,
|
||||
AutoSizeAxes = Axes.Both
|
||||
},
|
||||
new Container
|
||||
textLine3 = new OsuSpriteText
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Margin = new MarginPadding { Bottom = 15 },
|
||||
Font = @"Exo2.0-Bold",
|
||||
TextSize = 12,
|
||||
Alpha = 0.3f,
|
||||
Child = textLine3 = new OsuSpriteText
|
||||
{
|
||||
Font = @"Exo2.0-Bold",
|
||||
TextSize = 12,
|
||||
AlwaysPresent = true
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -183,6 +178,9 @@ namespace osu.Game.Overlays
|
||||
textLine2.Text = description.Value;
|
||||
textLine3.Text = description.Shortcut.ToUpper();
|
||||
|
||||
if (string.IsNullOrEmpty(textLine3.Text))
|
||||
textLine3.Text = "NO KEY BOUND";
|
||||
|
||||
Display(box);
|
||||
|
||||
int optionCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user