mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Add ability to change number on replies button
This commit is contained in:
parent
c74500b4b4
commit
0d91277ea5
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using Humanizer;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Input.Events;
|
||||
@ -15,7 +13,12 @@ namespace osu.Game.Overlays.Comments.Buttons
|
||||
|
||||
public ShowRepliesButton(int count)
|
||||
{
|
||||
Text = "reply".ToQuantity(count);
|
||||
Count = count;
|
||||
}
|
||||
|
||||
public int Count
|
||||
{
|
||||
set => Text = "reply".ToQuantity(value);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
Loading…
Reference in New Issue
Block a user