mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add osu!direct toggle to toolbar
This commit is contained in:
19
osu.Game/Overlays/Toolbar/ToolbarDirectButton.cs
Normal file
19
osu.Game/Overlays/Toolbar/ToolbarDirectButton.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user