mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Hide confine setting entirely in fullscreen
This commit is contained in:
parent
08f23cc424
commit
71edada623
@ -20,6 +20,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
private Bindable<double> sensitivityBindable = new BindableDouble();
|
private Bindable<double> sensitivityBindable = new BindableDouble();
|
||||||
private Bindable<string> ignoredInputHandlers;
|
private Bindable<string> ignoredInputHandlers;
|
||||||
|
|
||||||
|
private Bindable<WindowMode> windowMode;
|
||||||
|
private SettingsEnumDropdown<OsuConfineMouseMode> confineMouseModeSetting;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
|
private void load(OsuConfigManager osuConfig, FrameworkConfigManager config)
|
||||||
{
|
{
|
||||||
@ -30,6 +33,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
configSensitivity.BindValueChanged(val => sensitivityBindable.Value = val.NewValue);
|
configSensitivity.BindValueChanged(val => sensitivityBindable.Value = val.NewValue);
|
||||||
sensitivityBindable.BindValueChanged(val => configSensitivity.Value = val.NewValue);
|
sensitivityBindable.BindValueChanged(val => configSensitivity.Value = val.NewValue);
|
||||||
|
|
||||||
|
windowMode = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
|
||||||
|
windowMode.BindValueChanged(mode => confineMouseModeSetting.Alpha = mode.NewValue == WindowMode.Fullscreen ? 0 : 1);
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new SettingsCheckbox
|
new SettingsCheckbox
|
||||||
@ -47,7 +53,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
LabelText = "Map absolute input to window",
|
LabelText = "Map absolute input to window",
|
||||||
Current = config.GetBindable<bool>(FrameworkSetting.MapAbsoluteInputToWindow)
|
Current = config.GetBindable<bool>(FrameworkSetting.MapAbsoluteInputToWindow)
|
||||||
},
|
},
|
||||||
new SettingsEnumDropdown<OsuConfineMouseMode>
|
confineMouseModeSetting = new SettingsEnumDropdown<OsuConfineMouseMode>
|
||||||
{
|
{
|
||||||
LabelText = "Confine mouse cursor to window",
|
LabelText = "Confine mouse cursor to window",
|
||||||
Current = osuConfig.GetBindable<OsuConfineMouseMode>(OsuSetting.ConfineMouseMode)
|
Current = osuConfig.GetBindable<OsuConfineMouseMode>(OsuSetting.ConfineMouseMode)
|
||||||
|
Loading…
Reference in New Issue
Block a user