Separated menu and gameplay cursor size

This commit is contained in:
Jorolf 2017-03-17 18:40:03 +01:00
parent 77067b7e64
commit 8568e1536c
3 changed files with 9 additions and 2 deletions

View File

@ -24,6 +24,7 @@ namespace osu.Game.Configuration
Set(OsuConfig.SaveUsername, true);
Set(OsuConfig.CursorSize, 1.0, 0.5f, 2);
Set(OsuConfig.GameplayCursorSize, 1.0, 0.5f, 2);
Set(OsuConfig.DimLevel, 30, 0, 100);
Set(OsuConfig.MouseDisableButtons, false);
@ -224,6 +225,7 @@ namespace osu.Game.Configuration
ConfirmExit,
AutoSendNowPlaying,
CursorSize,
GameplayCursorSize,
AutomaticCursorSizing,
DimLevel,
Display,

View File

@ -54,7 +54,7 @@ namespace osu.Game.Graphics.Cursor
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
cursorScale = config.GetBindable<double>(OsuConfig.CursorSize);
cursorScale = config.GetBindable<double>(OsuConfig.GameplayCursorSize);
Children = new Drawable[]
{

View File

@ -61,9 +61,14 @@ namespace osu.Game.Overlays.Options.Sections
},
new OptionSlider<double>
{
LabelText = "Cursor size",
LabelText = "Menu Cursor size",
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.CursorSize)
},
new OptionSlider<double>
{
LabelText = "Gameplay Cursor size",
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.GameplayCursorSize)
},
new OsuCheckbox
{
LabelText = "Automatic cursor size",