mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:52:55 +08:00
Fix comments async loading wasn't really async
This commit is contained in:
parent
7fa3b95286
commit
031bed15da
@ -16,6 +16,7 @@ using osu.Framework.Graphics.Shapes;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Online.Chat;
|
using osu.Game.Online.Chat;
|
||||||
|
using osu.Framework.Allocation;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Comments
|
namespace osu.Game.Overlays.Comments
|
||||||
{
|
{
|
||||||
@ -28,10 +29,16 @@ namespace osu.Game.Overlays.Comments
|
|||||||
|
|
||||||
private readonly BindableBool childrenExpanded = new BindableBool(true);
|
private readonly BindableBool childrenExpanded = new BindableBool(true);
|
||||||
|
|
||||||
private readonly FillFlowContainer childCommentsVisibilityContainer;
|
private FillFlowContainer childCommentsVisibilityContainer;
|
||||||
private readonly Comment comment;
|
private readonly Comment comment;
|
||||||
|
|
||||||
public DrawableComment(Comment comment)
|
public DrawableComment(Comment comment)
|
||||||
|
{
|
||||||
|
this.comment = comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load()
|
||||||
{
|
{
|
||||||
LinkFlowContainer username;
|
LinkFlowContainer username;
|
||||||
FillFlowContainer childCommentsContainer;
|
FillFlowContainer childCommentsContainer;
|
||||||
@ -41,8 +48,6 @@ namespace osu.Game.Overlays.Comments
|
|||||||
GridContainer content;
|
GridContainer content;
|
||||||
VotePill votePill;
|
VotePill votePill;
|
||||||
|
|
||||||
this.comment = comment;
|
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
InternalChild = new FillFlowContainer
|
InternalChild = new FillFlowContainer
|
||||||
|
Loading…
Reference in New Issue
Block a user