mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Add osu!direct toggle to toolbar
This commit is contained in:
parent
32a23c7fe4
commit
9adff5f697
@ -219,6 +219,7 @@ namespace osu.Game
|
||||
|
||||
dependencies.Cache(settings);
|
||||
dependencies.Cache(social);
|
||||
dependencies.Cache(direct);
|
||||
dependencies.Cache(chat);
|
||||
dependencies.Cache(userProfile);
|
||||
dependencies.Cache(musicController);
|
||||
|
@ -58,6 +58,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
AutoSizeAxes = Axes.X,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new ToolbarDirectButton(),
|
||||
new ToolbarChatButton(),
|
||||
new ToolbarSocialButton(),
|
||||
new ToolbarMusicButton(),
|
||||
|
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;
|
||||
}
|
||||
}
|
||||
}
|
@ -130,6 +130,7 @@
|
||||
<Compile Include="Overlays\Profile\Sections\RanksSection.cs" />
|
||||
<Compile Include="Overlays\Profile\Sections\RecentSection.cs" />
|
||||
<Compile Include="Graphics\Containers\ConstrainedIconContainer.cs" />
|
||||
<Compile Include="Overlays\Toolbar\ToolbarDirectButton.cs" />
|
||||
<Compile Include="Rulesets\Mods\IApplicableToDifficulty.cs" />
|
||||
<Compile Include="Rulesets\UI\RulesetInputManager.cs" />
|
||||
<Compile Include="Screens\Play\KeyCounterAction.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user