mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
26 lines
615 B
C#
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;
|
|
}
|
|
}
|
|
}
|