Add OptionItem class

Allow for centalised logic for all option UI controls.
This commit is contained in:
Dean Herbert
2017-05-04 23:07:24 +09:00
parent b98ae5d7c3
commit 153951d3dd
17 changed files with 156 additions and 126 deletions

View File

@ -16,12 +16,12 @@ namespace osu.Game.Overlays.Options.Sections.Audio
{
Children = new[]
{
new OsuCheckbox
new OptionCheckbox
{
LabelText = "Interface voices",
Bindable = config.GetBindable<bool>(OsuConfig.MenuVoice)
},
new OsuCheckbox
new OptionCheckbox
{
LabelText = "osu! music theme",
Bindable = config.GetBindable<bool>(OsuConfig.MenuMusic)
@ -29,4 +29,4 @@ namespace osu.Game.Overlays.Options.Sections.Audio
};
}
}
}
}