mirror of
https://github.com/ppy/osu
synced 2024-12-17 12:25:19 +00:00
Merge pull request #507 from Jorolf/seperateCursorSize
Separated menu and gameplay cursor size
This commit is contained in:
commit
91f088e67e
@ -23,7 +23,8 @@ namespace osu.Game.Configuration
|
|||||||
Set(OsuConfig.SavePassword, false);
|
Set(OsuConfig.SavePassword, false);
|
||||||
Set(OsuConfig.SaveUsername, true);
|
Set(OsuConfig.SaveUsername, true);
|
||||||
|
|
||||||
Set(OsuConfig.CursorSize, 1.0, 0.5f, 2);
|
Set(OsuConfig.MenuCursorSize, 1.0, 0.5f, 2);
|
||||||
|
Set(OsuConfig.GameplayCursorSize, 1.0, 0.5f, 2);
|
||||||
Set(OsuConfig.DimLevel, 30, 0, 100);
|
Set(OsuConfig.DimLevel, 30, 0, 100);
|
||||||
|
|
||||||
Set(OsuConfig.MouseDisableButtons, false);
|
Set(OsuConfig.MouseDisableButtons, false);
|
||||||
@ -223,7 +224,8 @@ namespace osu.Game.Configuration
|
|||||||
ComboFireHeight,
|
ComboFireHeight,
|
||||||
ConfirmExit,
|
ConfirmExit,
|
||||||
AutoSendNowPlaying,
|
AutoSendNowPlaying,
|
||||||
CursorSize,
|
MenuCursorSize,
|
||||||
|
GameplayCursorSize,
|
||||||
AutomaticCursorSizing,
|
AutomaticCursorSizing,
|
||||||
DimLevel,
|
DimLevel,
|
||||||
Display,
|
Display,
|
||||||
|
@ -54,7 +54,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
cursorScale = config.GetBindable<double>(OsuConfig.CursorSize);
|
cursorScale = config.GetBindable<double>(OsuConfig.GameplayCursorSize);
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config, TextureStore textures, OsuColour colour)
|
private void load(OsuConfigManager config, TextureStore textures, OsuColour colour)
|
||||||
{
|
{
|
||||||
cursorScale = config.GetBindable<double>(OsuConfig.CursorSize);
|
cursorScale = config.GetBindable<double>(OsuConfig.MenuCursorSize);
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
@ -61,8 +61,13 @@ namespace osu.Game.Overlays.Options.Sections
|
|||||||
},
|
},
|
||||||
new OptionSlider<double>
|
new OptionSlider<double>
|
||||||
{
|
{
|
||||||
LabelText = "Cursor size",
|
LabelText = "Menu cursor size",
|
||||||
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.CursorSize)
|
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.MenuCursorSize)
|
||||||
|
},
|
||||||
|
new OptionSlider<double>
|
||||||
|
{
|
||||||
|
LabelText = "Gameplay cursor size",
|
||||||
|
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.GameplayCursorSize)
|
||||||
},
|
},
|
||||||
new OsuCheckbox
|
new OsuCheckbox
|
||||||
{
|
{
|
||||||
@ -72,4 +77,4 @@ namespace osu.Game.Overlays.Options.Sections
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user