mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 07:04:15 +08:00
Merge pull request #159 from SirCmpwn/platform-options
Remove certain options when not running on Windows
This commit is contained in:
commit
a39d28efe2
@ -1,4 +1,5 @@
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Options.Audio
|
namespace osu.Game.Overlays.Options.Audio
|
||||||
@ -12,7 +13,7 @@ namespace osu.Game.Overlays.Options.Audio
|
|||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new AudioDevicesOptions(),
|
new AudioDevicesOptions { Alpha = RuntimeInfo.IsWindows ? 1 : 0 },
|
||||||
new VolumeOptions(),
|
new VolumeOptions(),
|
||||||
new OffsetAdjustmentOptions(),
|
new OffsetAdjustmentOptions(),
|
||||||
};
|
};
|
||||||
|
@ -17,8 +17,16 @@ namespace osu.Game.Overlays.Options.Input
|
|||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new SpriteText { Text = "Sensitivity: TODO slider" },
|
new SpriteText { Text = "Sensitivity: TODO slider" },
|
||||||
rawInput = new CheckBoxOption { LabelText = "Raw input" },
|
rawInput = new CheckBoxOption
|
||||||
mapRawInput = new CheckBoxOption { LabelText = "Map absolute raw input to the osu! window" },
|
{
|
||||||
|
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" },
|
new SpriteText { Text = "Confine mouse cursor: TODO dropdown" },
|
||||||
disableWheel = new CheckBoxOption { LabelText = "Disable mouse wheel in play mode" },
|
disableWheel = new CheckBoxOption { LabelText = "Disable mouse wheel in play mode" },
|
||||||
disableButtons = new CheckBoxOption { LabelText = "Disable mouse buttons in play mode" },
|
disableButtons = new CheckBoxOption { LabelText = "Disable mouse buttons in play mode" },
|
||||||
|
Loading…
Reference in New Issue
Block a user