Reorder parameters

This commit is contained in:
smoogipoo
2019-11-08 12:55:22 +09:00
parent 30f877c4ab
commit 0a15a13fab
4 changed files with 22 additions and 13 deletions

View File

@ -14,9 +14,8 @@ namespace osu.Game.Graphics.UserInterface
}
public ToggleMenuItem(string text, MenuItemType type, Action<bool> action)
: base(text, type, value => !value)
: base(text, value => !value, type, action)
{
State.BindValueChanged(state => action?.Invoke(state.NewValue));
}
public override IconUsage? GetIconForState(bool state) => state ? (IconUsage?)FontAwesome.Solid.Check : null;