mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
prevent scaling container from creating a storyboard background
This commit is contained in:
@ -31,6 +31,8 @@ namespace osu.Game.Screens.Backgrounds
|
||||
[Resolved]
|
||||
private IBindable<WorkingBeatmap> beatmap { get; set; }
|
||||
|
||||
protected virtual bool AllowStoryboardBackground => true;
|
||||
|
||||
public BackgroundScreenDefault(bool animateOnEnter = true)
|
||||
: base(animateOnEnter)
|
||||
{
|
||||
@ -111,7 +113,9 @@ namespace osu.Game.Screens.Backgrounds
|
||||
break;
|
||||
|
||||
case BackgroundSource.BeatmapWithStoryboard:
|
||||
newBackground = new BeatmapBackgroundWithStoryboard(beatmap.Value, backgroundName);
|
||||
newBackground = AllowStoryboardBackground
|
||||
? new BeatmapBackgroundWithStoryboard(beatmap.Value, backgroundName)
|
||||
: new BeatmapBackground(beatmap.Value, backgroundName);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user