mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Reorder parameters
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user