2019-01-24 17:43:03 +09:00
|
|
|
|
// 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.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
2022-01-27 20:53:48 -08:00
|
|
|
|
using osu.Framework.Localisation;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.UserInterface
|
|
|
|
|
{
|
|
|
|
|
public class OsuMenuItem : MenuItem
|
|
|
|
|
{
|
|
|
|
|
public readonly MenuItemType Type;
|
|
|
|
|
|
2023-01-15 01:46:11 +03:00
|
|
|
|
public OsuMenuItem(LocalisableString text, MenuItemType type = MenuItemType.Standard)
|
2019-11-07 16:04:13 +09:00
|
|
|
|
: this(text, type, null)
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-15 01:46:11 +03:00
|
|
|
|
public OsuMenuItem(LocalisableString text, MenuItemType type, Action? action)
|
2018-04-13 18:19:50 +09:00
|
|
|
|
: base(text, action)
|
|
|
|
|
{
|
|
|
|
|
Type = type;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|