Abstract statefulness of new menu item type

This commit is contained in:
smoogipoo
2019-11-08 11:15:03 +09:00
parent 4fe69dbc89
commit ce08d664a5
6 changed files with 181 additions and 57 deletions

View File

@ -43,8 +43,8 @@ namespace osu.Game.Graphics.UserInterface
{
switch (item)
{
case ToggleMenuItem toggle:
return new DrawableToggleMenuItem(toggle);
case StatefulMenuItem stateful:
return new DrawableStatefulMenuItem(stateful);
}
return new DrawableOsuMenuItem(item);