1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

cache scroll container

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-04 11:43:00 +07:00
parent 4e73d02540
commit e28b38653b
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -26,6 +26,9 @@ namespace osu.Game.Overlays
[Resolved]
private IAPIProvider api { get; set; }
[Cached]
private readonly OverlayScrollContainer scrollContainer;
private GetWikiRequest request;
private CancellationTokenSource cancellationToken;
@ -37,6 +40,7 @@ namespace osu.Game.Overlays
public WikiOverlay()
: base(OverlayColourScheme.Orange, false)
{
scrollContainer = ScrollFlow;
}
public void ShowPage(string pagePath = index_path)