1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-07 23:07:01 +09:00
osu-tools/PerformanceCalculatorGUI/Components/ScreenSelectionButton.cs
2024-01-23 17:00:07 +06:00

21 lines
670 B
C#

// 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.Graphics.Sprites;
using osu.Game.Input.Bindings;
using osu.Game.Overlays.Toolbar;
using osuTK;
namespace PerformanceCalculatorGUI.Components
{
public partial class ScreenSelectionButton : ToolbarButton
{
public ScreenSelectionButton(string title, IconUsage? icon = null, GlobalAction? hotkey = null)
{
Hotkey = hotkey;
TooltipMain = title;
SetIcon(new ScreenSelectionButtonIcon(icon) { IconSize = new Vector2(25) });
}
}
}