2020-07-11 04:47:17 +00:00
|
|
|
|
// 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.
|
|
|
|
|
|
2020-07-14 12:02:29 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
|
2020-07-11 04:47:17 +00:00
|
|
|
|
namespace osu.Game.Overlays.Comments.Buttons
|
|
|
|
|
{
|
2020-07-14 12:02:29 +00:00
|
|
|
|
public class LoadRepliesButton : LoadingButton
|
2020-07-11 04:47:17 +00:00
|
|
|
|
{
|
2020-07-14 12:02:29 +00:00
|
|
|
|
private ButtonContent content;
|
|
|
|
|
|
2020-07-12 09:27:26 +00:00
|
|
|
|
public LoadRepliesButton()
|
|
|
|
|
{
|
2020-07-14 12:02:29 +00:00
|
|
|
|
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 = "load replies";
|
|
|
|
|
}
|
2020-07-12 09:27:26 +00:00
|
|
|
|
}
|
2020-07-11 04:47:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|