mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Enables/Disables seek and Play/Resume on call to beatmapDisabledChanged
This commit is contained in:
@ -538,13 +538,10 @@ namespace osu.Game
|
||||
// we only want to apply these restrictions when we are inside a screen stack.
|
||||
// the use case for not applying is in visual/unit tests.
|
||||
bool applyBeatmapRulesetRestrictions = !currentScreen?.AllowBeatmapRulesetChange ?? false;
|
||||
bool applyUserSeekRestrictions = !currentScreen?.AllowUserSeek ?? false;
|
||||
|
||||
Ruleset.Disabled = applyBeatmapRulesetRestrictions;
|
||||
Beatmap.Disabled = applyBeatmapRulesetRestrictions;
|
||||
|
||||
musicController.DisableSeek = applyUserSeekRestrictions;
|
||||
|
||||
mainContent.Padding = new MarginPadding { Top = ToolbarOffset };
|
||||
|
||||
CursorOverrideContainer.CanShowCursor = currentScreen?.CursorVisible ?? false;
|
||||
|
Reference in New Issue
Block a user