1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 12:32:58 +08:00

Display "no key bound" when no shortcut

This commit is contained in:
smoogipoo 2018-05-14 19:20:53 +09:00
parent 4b3c2466a4
commit 17861c2a16

View File

@ -101,23 +101,18 @@ 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 },
Alpha = 0.3f,
Child = textLine3 = new OsuSpriteText
{
Font = @"Exo2.0-Bold",
TextSize = 12,
AlwaysPresent = true
Alpha = 0.3f,
},
}
}
}
}
},
};
}
@ -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;