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