mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 10:17:19 +08:00
cache scroll container
This commit is contained in:
parent
4e73d02540
commit
e28b38653b
@ -26,6 +26,9 @@ namespace osu.Game.Overlays
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; }
|
||||||
|
|
||||||
|
[Cached]
|
||||||
|
private readonly OverlayScrollContainer scrollContainer;
|
||||||
|
|
||||||
private GetWikiRequest request;
|
private GetWikiRequest request;
|
||||||
|
|
||||||
private CancellationTokenSource cancellationToken;
|
private CancellationTokenSource cancellationToken;
|
||||||
@ -37,6 +40,7 @@ namespace osu.Game.Overlays
|
|||||||
public WikiOverlay()
|
public WikiOverlay()
|
||||||
: base(OverlayColourScheme.Orange, false)
|
: base(OverlayColourScheme.Orange, false)
|
||||||
{
|
{
|
||||||
|
scrollContainer = ScrollFlow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowPage(string pagePath = index_path)
|
public void ShowPage(string pagePath = index_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user