Rename classes as per review feedback

This commit is contained in:
Dean Herbert
2021-05-25 18:50:33 +09:00
parent 5ea948aabe
commit 871ca8054f
2 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Storyboards
public Storyboard() public Storyboard()
{ {
layers.Add("Video", new StoryboardLayerVideo("Video", 4, false)); layers.Add("Video", new StoryboardVideoLayer("Video", 4, false));
layers.Add("Background", new StoryboardLayer("Background", 3)); layers.Add("Background", new StoryboardLayer("Background", 3));
layers.Add("Fail", new StoryboardLayer("Fail", 2) { VisibleWhenPassing = false, }); layers.Add("Fail", new StoryboardLayer("Fail", 2) { VisibleWhenPassing = false, });
layers.Add("Pass", new StoryboardLayer("Pass", 1) { VisibleWhenFailing = false, }); layers.Add("Pass", new StoryboardLayer("Pass", 1) { VisibleWhenFailing = false, });

View File

@ -7,19 +7,19 @@ using osuTK;
namespace osu.Game.Storyboards namespace osu.Game.Storyboards
{ {
public class StoryboardLayerVideo : StoryboardLayer public class StoryboardVideoLayer : StoryboardLayer
{ {
public StoryboardLayerVideo(string name, int depth, bool masking) public StoryboardVideoLayer(string name, int depth, bool masking)
: base(name, depth, masking) : base(name, depth, masking)
{ {
} }
public override DrawableStoryboardLayer CreateDrawable() public override DrawableStoryboardLayer CreateDrawable()
=> new DrawableStoryboardLayerVideo(this) { Depth = Depth, Name = Name }; => new DrawableStoryboardVideoLayer(this) { Depth = Depth, Name = Name };
public class DrawableStoryboardLayerVideo : DrawableStoryboardLayer public class DrawableStoryboardVideoLayer : DrawableStoryboardLayer
{ {
public DrawableStoryboardLayerVideo(StoryboardLayerVideo layer) public DrawableStoryboardVideoLayer(StoryboardVideoLayer layer)
: base(layer) : base(layer)
{ {
// for videos we want to take on the full size of the storyboard container hierarchy // for videos we want to take on the full size of the storyboard container hierarchy