mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 01:52:55 +08:00
32 lines
907 B
C#
32 lines
907 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
namespace osu.Game.Overlays.Wiki
|
|
{
|
|
public class WikiHeader : BreadcrumbControlOverlayHeader
|
|
{
|
|
private const string index_page_string = "index";
|
|
|
|
public WikiHeader()
|
|
{
|
|
TabControl.AddItem(index_page_string);
|
|
}
|
|
|
|
protected override Drawable CreateBackground() => new OverlayHeaderBackground(@"Headers/wiki");
|
|
|
|
protected override OverlayTitle CreateTitle() => new WikiHeaderTitle();
|
|
|
|
private class WikiHeaderTitle : OverlayTitle
|
|
{
|
|
public WikiHeaderTitle()
|
|
{
|
|
Title = "wiki";
|
|
Description = "knowledge base";
|
|
IconTexture = "Icons/Hexacons/wiki";
|
|
}
|
|
}
|
|
}
|
|
}
|