mirror of https://github.com/ppy/osu
HitObjectMaskLayer -> BlueprintContainer
This commit is contained in:
parent
faab744cbd
commit
26c9390c16
|
@ -32,7 +32,7 @@ public class TestCaseHitObjectComposer : OsuTestCase, IPlacementHandler
|
|||
typeof(DragBox),
|
||||
typeof(HitObjectComposer),
|
||||
typeof(OsuHitObjectComposer),
|
||||
typeof(HitObjectMaskLayer),
|
||||
typeof(BlueprintContainer),
|
||||
typeof(NotNullAttribute),
|
||||
typeof(HitCirclePiece),
|
||||
typeof(HitCircleSelectionMask),
|
||||
|
|
|
@ -35,7 +35,7 @@ public abstract class HitObjectComposer : CompositeDrawable
|
|||
|
||||
private EditRulesetContainer rulesetContainer;
|
||||
|
||||
private HitObjectMaskLayer maskLayer;
|
||||
private BlueprintContainer blueprintContainer;
|
||||
private PlacementContainer placementContainer;
|
||||
|
||||
internal HitObjectComposer(Ruleset ruleset)
|
||||
|
@ -67,7 +67,7 @@ private void load(IBindableBeatmap beatmap, IFrameBasedClock framedClock)
|
|||
var layerAboveRuleset = CreateLayerContainer();
|
||||
layerAboveRuleset.Children = new Drawable[]
|
||||
{
|
||||
maskLayer = new HitObjectMaskLayer(),
|
||||
blueprintContainer = new BlueprintContainer(),
|
||||
placementContainer = new PlacementContainer(),
|
||||
};
|
||||
|
||||
|
@ -148,11 +148,11 @@ protected override void UpdateAfterChildren()
|
|||
/// <param name="hitObject">The <see cref="HitObject"/> to add.</param>
|
||||
public void Add(HitObject hitObject)
|
||||
{
|
||||
maskLayer.AddMaskFor(rulesetContainer.Add(hitObject));
|
||||
blueprintContainer.AddMaskFor(rulesetContainer.Add(hitObject));
|
||||
placementContainer.Refresh();
|
||||
}
|
||||
|
||||
public void Remove(HitObject hitObject) => maskLayer.RemoveMaskFor(rulesetContainer.Remove(hitObject));
|
||||
public void Remove(HitObject hitObject) => blueprintContainer.RemoveMaskFor(rulesetContainer.Remove(hitObject));
|
||||
|
||||
internal abstract EditRulesetContainer CreateRulesetContainer();
|
||||
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
|
||||
namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
{
|
||||
public class HitObjectMaskLayer : CompositeDrawable
|
||||
public class BlueprintContainer : CompositeDrawable
|
||||
{
|
||||
private MaskContainer maskContainer;
|
||||
|
||||
[Resolved]
|
||||
private HitObjectComposer composer { get; set; }
|
||||
|
||||
public HitObjectMaskLayer()
|
||||
public BlueprintContainer()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
Loading…
Reference in New Issue