From d36c8e9203a0711136f5ce24e22a51aef7d1111a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 10 Nov 2016 21:54:01 -0500 Subject: [PATCH] Remove certain options when not running on Windows --- osu.Game/Overlays/Options/Audio/AudioSection.cs | 5 +++-- osu.Game/Overlays/Options/Input/MouseOptions.cs | 12 ++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/osu.Game/Overlays/Options/Audio/AudioSection.cs b/osu.Game/Overlays/Options/Audio/AudioSection.cs index af72974a10..417300abcc 100644 --- a/osu.Game/Overlays/Options/Audio/AudioSection.cs +++ b/osu.Game/Overlays/Options/Audio/AudioSection.cs @@ -1,4 +1,5 @@ -using osu.Framework.Graphics; +using osu.Framework; +using osu.Framework.Graphics; using osu.Game.Graphics; namespace osu.Game.Overlays.Options.Audio @@ -12,7 +13,7 @@ namespace osu.Game.Overlays.Options.Audio { Children = new Drawable[] { - new AudioDevicesOptions(), + new AudioDevicesOptions { Alpha = RuntimeInfo.IsWindows ? 1 : 0 }, new VolumeOptions(), new OffsetAdjustmentOptions(), }; diff --git a/osu.Game/Overlays/Options/Input/MouseOptions.cs b/osu.Game/Overlays/Options/Input/MouseOptions.cs index 419aecc675..c15aff0b90 100644 --- a/osu.Game/Overlays/Options/Input/MouseOptions.cs +++ b/osu.Game/Overlays/Options/Input/MouseOptions.cs @@ -17,8 +17,16 @@ namespace osu.Game.Overlays.Options.Input Children = new Drawable[] { new SpriteText { Text = "Sensitivity: TODO slider" }, - rawInput = new CheckBoxOption { LabelText = "Raw input" }, - mapRawInput = new CheckBoxOption { LabelText = "Map absolute raw input to the osu! window" }, + rawInput = new CheckBoxOption + { + LabelText = "Raw input", + Alpha = RuntimeInfo.IsWindows ? 1 : 0 + }, + mapRawInput = new CheckBoxOption + { + LabelText = "Map absolute raw input to the osu! window", + Alpha = RuntimeInfo.IsWindows ? 1 : 0 + }, new SpriteText { Text = "Confine mouse cursor: TODO dropdown" }, disableWheel = new CheckBoxOption { LabelText = "Disable mouse wheel in play mode" }, disableButtons = new CheckBoxOption { LabelText = "Disable mouse buttons in play mode" },