mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 05:52:55 +08:00
Merge pull request #2398 from tgi74/rightclickscrolling
Add right click absolute scrolling in song select
This commit is contained in:
commit
dd7020d5a4
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -14,6 +14,7 @@ App.config text eol=crlf
|
|||||||
*.bat text eol=crlf
|
*.bat text eol=crlf
|
||||||
*.cmd text eol=crlf
|
*.cmd text eol=crlf
|
||||||
*.snippet text eol=crlf
|
*.snippet text eol=crlf
|
||||||
|
*.manifest text eol=crlf
|
||||||
|
|
||||||
# Check out with lf (UNIX) line endings
|
# Check out with lf (UNIX) line endings
|
||||||
*.sh text eol=lf
|
*.sh text eol=lf
|
||||||
|
@ -85,6 +85,8 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
|
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
|
||||||
Set(OsuSetting.ScreenshotCaptureMenuCursor, false);
|
Set(OsuSetting.ScreenshotCaptureMenuCursor, false);
|
||||||
|
|
||||||
|
Set(OsuSetting.SongSelectRightMouseScroll, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public OsuConfigManager(Storage storage) : base(storage)
|
public OsuConfigManager(Storage storage) : base(storage)
|
||||||
@ -130,6 +132,7 @@ namespace osu.Game.Configuration
|
|||||||
SpeedChangeVisualisation,
|
SpeedChangeVisualisation,
|
||||||
Skin,
|
Skin,
|
||||||
ScreenshotFormat,
|
ScreenshotFormat,
|
||||||
ScreenshotCaptureMenuCursor
|
ScreenshotCaptureMenuCursor,
|
||||||
|
SongSelectRightMouseScroll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,11 @@ namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
|||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
new SettingsCheckbox
|
||||||
|
{
|
||||||
|
LabelText = "Right mouse drag to absolute scroll",
|
||||||
|
Bindable = config.GetBindable<bool>(OsuSetting.SongSelectRightMouseScroll),
|
||||||
|
},
|
||||||
new SettingsCheckbox
|
new SettingsCheckbox
|
||||||
{
|
{
|
||||||
LabelText = "Show converted beatmaps",
|
LabelText = "Show converted beatmaps",
|
||||||
|
@ -97,6 +97,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private readonly Container<DrawableCarouselItem> scrollableContent;
|
private readonly Container<DrawableCarouselItem> scrollableContent;
|
||||||
|
|
||||||
|
|
||||||
|
public Bindable<bool> RightClickScrollingEnabled = new Bindable<bool>();
|
||||||
|
|
||||||
public Bindable<RandomSelectAlgorithm> RandomAlgorithm = new Bindable<RandomSelectAlgorithm>();
|
public Bindable<RandomSelectAlgorithm> RandomAlgorithm = new Bindable<RandomSelectAlgorithm>();
|
||||||
private readonly List<CarouselBeatmapSet> previouslyVisitedRandomSets = new List<CarouselBeatmapSet>();
|
private readonly List<CarouselBeatmapSet> previouslyVisitedRandomSets = new List<CarouselBeatmapSet>();
|
||||||
private readonly Stack<CarouselBeatmap> randomSelectedBeatmaps = new Stack<CarouselBeatmap>();
|
private readonly Stack<CarouselBeatmap> randomSelectedBeatmaps = new Stack<CarouselBeatmap>();
|
||||||
@ -122,6 +125,10 @@ namespace osu.Game.Screens.Select
|
|||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
config.BindWith(OsuSetting.RandomSelectAlgorithm, RandomAlgorithm);
|
config.BindWith(OsuSetting.RandomSelectAlgorithm, RandomAlgorithm);
|
||||||
|
config.BindWith(OsuSetting.SongSelectRightMouseScroll, RightClickScrollingEnabled);
|
||||||
|
|
||||||
|
RightClickScrollingEnabled.ValueChanged += v => RightMouseScrollbar = v;
|
||||||
|
RightClickScrollingEnabled.TriggerChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveBeatmapSet(BeatmapSetInfo beatmapSet)
|
public void RemoveBeatmapSet(BeatmapSetInfo beatmapSet)
|
||||||
|
Loading…
Reference in New Issue
Block a user