1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 01:33:47 +08:00

cache scroll container

This commit is contained in:
Gagah Pangeran Rosfatiputra
2021-06-04 11:43:00 +07:00
Unverified
parent 4e73d02540
commit e28b38653b
+4
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)