Add osu!direct toggle to toolbar

This commit is contained in:
Dean Herbert
2017-08-24 20:18:47 +09:00
parent 32a23c7fe4
commit 9adff5f697
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,19 @@
using osu.Framework.Allocation;
using osu.Game.Graphics;
namespace osu.Game.Overlays.Toolbar
{
internal class ToolbarDirectButton : ToolbarOverlayToggleButton
{
public ToolbarDirectButton()
{
SetIcon(FontAwesome.fa_download);
}
[BackgroundDependencyLoader]
private void load(DirectOverlay direct)
{
StateContainer = direct;
}
}
}