mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +08:00
Remove unneeded class from DrawableComment
This commit is contained in:
parent
56349e65f3
commit
7c71cc6b61
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Comments
|
||||
private ShowRepliesButton showRepliesButton;
|
||||
private ChevronButton chevronButton;
|
||||
private DeletedCommentsCounter deletedCommentsCounter;
|
||||
private Loading loading;
|
||||
private LoadingSpinner loading;
|
||||
|
||||
public DrawableComment(Comment comment)
|
||||
{
|
||||
@ -209,10 +209,16 @@ namespace osu.Game.Overlays.Comments
|
||||
}
|
||||
}
|
||||
},
|
||||
loading = new Loading
|
||||
loading = new LoadingSpinner
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y
|
||||
Anchor = Anchor.TopLeft,
|
||||
Origin = Anchor.TopLeft,
|
||||
Size = new Vector2(15),
|
||||
Margin = new MarginPadding
|
||||
{
|
||||
Vertical = 5,
|
||||
Left = 80
|
||||
}
|
||||
},
|
||||
childCommentsVisibilityContainer = new FillFlowContainer
|
||||
{
|
||||
@ -368,6 +374,7 @@ namespace osu.Game.Overlays.Comments
|
||||
|
||||
showMoreButton.IsLoading = false;
|
||||
loading.Hide();
|
||||
loading.FinishTransforms();
|
||||
}
|
||||
|
||||
private class ChevronButton : ShowChildrenButton
|
||||
@ -438,31 +445,5 @@ namespace osu.Game.Overlays.Comments
|
||||
return parentComment.HasMessage ? parentComment.Message : parentComment.IsDeleted ? @"deleted" : string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
private class Loading : Container
|
||||
{
|
||||
private readonly LoadingSpinner loading;
|
||||
|
||||
public Loading()
|
||||
{
|
||||
Child = loading = new LoadingSpinner
|
||||
{
|
||||
Anchor = Anchor.TopLeft,
|
||||
Origin = Anchor.TopLeft,
|
||||
Size = new Vector2(15),
|
||||
Margin = new MarginPadding
|
||||
{
|
||||
Vertical = 5,
|
||||
Left = 80
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
loading.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user