1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

add onclick in toc title

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

View File

@ -6,6 +6,7 @@ using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
@ -80,6 +81,12 @@ namespace osu.Game.Overlays.Wiki
IdleColour = colourProvider.Light2;
HoverColour = colourProvider.Light1;
}
protected override bool OnClick(ClickEvent e)
{
scrollContainer.ScrollTo(target);
return base.OnClick(e);
}
}
}
}