mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Move menu cursor size to UI section
This commit is contained in:
parent
e14db45374
commit
55c8aa5d5f
15
osu.Game/Overlays/Settings/Sections/SizeSlider.cs
Normal file
15
osu.Game/Overlays/Settings/Sections/SizeSlider.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
|
||||||
|
namespace osu.Game.Overlays.Settings.Sections
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A slider intended to show a "size" multiplier number, where 1x is 1.0.
|
||||||
|
/// </summary>
|
||||||
|
internal class SizeSlider : OsuSliderBar<float>
|
||||||
|
{
|
||||||
|
public override string TooltipText => Current.Value.ToString(@"0.##x");
|
||||||
|
}
|
||||||
|
}
|
@ -54,12 +54,6 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
skinDropdown = new SkinSettingsDropdown(),
|
skinDropdown = new SkinSettingsDropdown(),
|
||||||
new ExportSkinButton(),
|
new ExportSkinButton(),
|
||||||
new SettingsSlider<float, SizeSlider>
|
new SettingsSlider<float, SizeSlider>
|
||||||
{
|
|
||||||
LabelText = "Menu cursor size",
|
|
||||||
Current = config.GetBindable<float>(OsuSetting.MenuCursorSize),
|
|
||||||
KeyboardStep = 0.01f
|
|
||||||
},
|
|
||||||
new SettingsSlider<float, SizeSlider>
|
|
||||||
{
|
{
|
||||||
LabelText = "Gameplay cursor size",
|
LabelText = "Gameplay cursor size",
|
||||||
Current = config.GetBindable<float>(OsuSetting.GameplayCursorSize),
|
Current = config.GetBindable<float>(OsuSetting.GameplayCursorSize),
|
||||||
@ -136,11 +130,6 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
Schedule(() => skinDropdown.Items = skinDropdown.Items.Where(i => i.ID != item.ID).ToArray());
|
Schedule(() => skinDropdown.Items = skinDropdown.Items.Where(i => i.ID != item.ID).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SizeSlider : OsuSliderBar<float>
|
|
||||||
{
|
|
||||||
public override string TooltipText => Current.Value.ToString(@"0.##x");
|
|
||||||
}
|
|
||||||
|
|
||||||
private class SkinSettingsDropdown : SettingsDropdown<SkinInfo>
|
private class SkinSettingsDropdown : SettingsDropdown<SkinInfo>
|
||||||
{
|
{
|
||||||
protected override OsuDropdown<SkinInfo> CreateDropdown() => new SkinDropdownControl();
|
protected override OsuDropdown<SkinInfo> CreateDropdown() => new SkinDropdownControl();
|
||||||
|
@ -21,6 +21,12 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
|
|||||||
LabelText = "Rotate cursor when dragging",
|
LabelText = "Rotate cursor when dragging",
|
||||||
Current = config.GetBindable<bool>(OsuSetting.CursorRotation)
|
Current = config.GetBindable<bool>(OsuSetting.CursorRotation)
|
||||||
},
|
},
|
||||||
|
new SettingsSlider<float, SizeSlider>
|
||||||
|
{
|
||||||
|
LabelText = "Menu cursor size",
|
||||||
|
Current = config.GetBindable<float>(OsuSetting.MenuCursorSize),
|
||||||
|
KeyboardStep = 0.01f
|
||||||
|
},
|
||||||
new SettingsCheckbox
|
new SettingsCheckbox
|
||||||
{
|
{
|
||||||
LabelText = "Parallax",
|
LabelText = "Parallax",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user