mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Revert OsuButton
changes
This commit is contained in:
parent
7d86010903
commit
5541ebc76b
@ -20,7 +20,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public class OsuButton : Button
|
||||
{
|
||||
public virtual LocalisableString Text
|
||||
public LocalisableString Text
|
||||
{
|
||||
get => SpriteText?.Text ?? default;
|
||||
set
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Utility
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public override LocalisableString Text
|
||||
public new LocalisableString Text
|
||||
{
|
||||
get => base.Text;
|
||||
set => base.Text = $"{value} (Press {key.ToString().Replace("Number", string.Empty)})";
|
||||
|
Loading…
Reference in New Issue
Block a user