Remove mouseWheelCheckbox from InputSettings player overlay

This commit is contained in:
Roman Kapustin 2018-05-10 20:38:55 +03:00
parent ccf82cacb0
commit 93029fd548
1 changed files with 1 additions and 10 deletions

View File

@ -11,17 +11,12 @@ public class InputSettings : PlayerSettingsGroup
{ {
protected override string Title => "Input settings"; protected override string Title => "Input settings";
private readonly PlayerCheckbox mouseWheelCheckbox;
private readonly PlayerCheckbox mouseButtonsCheckbox; private readonly PlayerCheckbox mouseButtonsCheckbox;
public InputSettings() public InputSettings()
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
mouseWheelCheckbox = new PlayerCheckbox
{
LabelText = "Disable mouse wheel"
},
mouseButtonsCheckbox = new PlayerCheckbox mouseButtonsCheckbox = new PlayerCheckbox
{ {
LabelText = "Disable mouse buttons" LabelText = "Disable mouse buttons"
@ -30,10 +25,6 @@ public InputSettings()
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuConfigManager config) private void load(OsuConfigManager config) => mouseButtonsCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
{
mouseWheelCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
mouseButtonsCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
}
} }
} }