mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Make button text a property
This commit is contained in:
@ -13,11 +13,9 @@ namespace osu.Game.Overlays.Comments.Buttons
|
||||
{
|
||||
public readonly BindableBool Expanded = new BindableBool(true);
|
||||
|
||||
private readonly int count;
|
||||
|
||||
public ShowRepliesButton(int count)
|
||||
{
|
||||
this.count = count;
|
||||
Text = "reply".ToQuantity(count);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
@ -36,7 +34,5 @@ namespace osu.Game.Overlays.Comments.Buttons
|
||||
Expanded.Toggle();
|
||||
return base.OnClick(e);
|
||||
}
|
||||
|
||||
protected override string GetText() => "reply".ToQuantity(count);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user