mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Allow individual storyboard layers to disable masking
This commit is contained in:
parent
f676052528
commit
4bb15a8b93
@ -44,7 +44,6 @@ namespace osu.Game.Screens.Play
|
||||
return;
|
||||
|
||||
drawableStoryboard = storyboard.CreateDrawable();
|
||||
drawableStoryboard.Masking = true;
|
||||
|
||||
if (async)
|
||||
LoadComponentAsync(drawableStoryboard, Add);
|
||||
|
@ -22,6 +22,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
Anchor = Anchor.Centre;
|
||||
Origin = Anchor.Centre;
|
||||
Enabled = layer.EnabledWhenPassing;
|
||||
Masking = layer.Masking;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -10,15 +10,17 @@ namespace osu.Game.Storyboards
|
||||
{
|
||||
public string Name;
|
||||
public int Depth;
|
||||
public bool Masking;
|
||||
public bool EnabledWhenPassing = true;
|
||||
public bool EnabledWhenFailing = true;
|
||||
|
||||
public List<IStoryboardElement> Elements = new List<IStoryboardElement>();
|
||||
|
||||
public StoryboardLayer(string name, int depth)
|
||||
public StoryboardLayer(string name, int depth, bool masking = true)
|
||||
{
|
||||
Name = name;
|
||||
Depth = depth;
|
||||
Masking = masking;
|
||||
}
|
||||
|
||||
public void Add(IStoryboardElement element)
|
||||
|
Loading…
Reference in New Issue
Block a user