Make button text a property

This commit is contained in:
Andrei Zavatski
2020-07-12 12:27:26 +03:00
parent 40aa6c7453
commit da40f29b44
4 changed files with 29 additions and 19 deletions

View File

@ -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);
}
}