mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
add ToolbarWikiButton
This commit is contained in:
parent
416e08ae7a
commit
25f2c582e7
19
osu.Game/Overlays/Toolbar/ToolbarWikiButton.cs
Normal file
19
osu.Game/Overlays/Toolbar/ToolbarWikiButton.cs
Normal file
@ -0,0 +1,19 @@
|
||||
// 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.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
public class ToolbarWikiButton : ToolbarOverlayToggleButton
|
||||
{
|
||||
protected override Anchor TooltipAnchor => Anchor.TopRight;
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(WikiOverlay wiki)
|
||||
{
|
||||
StateContainer = wiki;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user