A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using System;
5using osu.Framework.Localisation;
6
7namespace osu.Framework.Graphics.UserInterface
8{
9 public class DropdownMenuItem<T> : MenuItem
10 {
11 public readonly T Value;
12
13 public DropdownMenuItem(LocalisableString text, T value)
14 : base(text)
15 {
16 Value = value;
17 }
18
19 public DropdownMenuItem(LocalisableString text, T value, Action action)
20 : base(text, action)
21 {
22 Value = value;
23 }
24 }
25}