Files
osu-framework/osu.Framework/Graphics/UserInterface/DropdownMenuItem.cs
Dean Herbert 75ed421f60 Automated pass
2023-06-24 00:42:48 +09:00

26 lines
615 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 System;
using osu.Framework.Localisation;
namespace osu.Framework.Graphics.UserInterface
{
public class DropdownMenuItem<T> : MenuItem
{
public readonly T Value;
public DropdownMenuItem(LocalisableString text, T value)
: base(text)
{
Value = value;
}
public DropdownMenuItem(T value, Action action)
: base(action)
{
Value = value;
}
}
}