Add chat toggle button.

This commit is contained in:
Dean Herbert
2017-04-19 19:54:03 +09:00
parent c7246fd2ac
commit 093abd6872
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Game.Graphics;
namespace osu.Game.Overlays.Toolbar
{
internal class ToolbarChatButton : ToolbarOverlayToggleButton
{
public ToolbarChatButton()
{
Icon = FontAwesome.fa_comments;
}
[BackgroundDependencyLoader]
private void load(ChatOverlay chat)
{
StateContainer = chat;
Action = chat.ToggleVisibility;
}
}
}