mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 00:52:59 +08:00
34 lines
971 B
C#
34 lines
971 B
C#
// 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.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.UserInterface;
|
|
using osu.Game.Resources.Localisation.Web;
|
|
|
|
namespace osu.Game.Overlays.Comments.Buttons
|
|
{
|
|
public class LoadRepliesButton : LoadingButton
|
|
{
|
|
private ButtonContent content;
|
|
|
|
public LoadRepliesButton()
|
|
{
|
|
AutoSizeAxes = Axes.Both;
|
|
}
|
|
|
|
protected override Drawable CreateContent() => content = new ButtonContent();
|
|
|
|
protected override void OnLoadStarted() => content.ToggleTextVisibility(false);
|
|
|
|
protected override void OnLoadFinished() => content.ToggleTextVisibility(true);
|
|
|
|
private class ButtonContent : CommentRepliesButton
|
|
{
|
|
public ButtonContent()
|
|
{
|
|
Text = CommentsStrings.LoadReplies;
|
|
}
|
|
}
|
|
}
|
|
}
|