mirror of
https://github.com/ppy/osu
synced 2024-12-10 09:00:14 +00:00
HitObjectMaskLayer -> BlueprintContainer
This commit is contained in:
parent
faab744cbd
commit
26c9390c16
@ -32,7 +32,7 @@ namespace osu.Game.Tests.Visual
|
||||
typeof(DragBox),
|
||||
typeof(HitObjectComposer),
|
||||
typeof(OsuHitObjectComposer),
|
||||
typeof(HitObjectMaskLayer),
|
||||
typeof(BlueprintContainer),
|
||||
typeof(NotNullAttribute),
|
||||
typeof(HitCirclePiece),
|
||||
typeof(HitCircleSelectionMask),
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
|
||||
private EditRulesetContainer rulesetContainer;
|
||||
|
||||
private HitObjectMaskLayer maskLayer;
|
||||
private BlueprintContainer blueprintContainer;
|
||||
private PlacementContainer placementContainer;
|
||||
|
||||
internal HitObjectComposer(Ruleset ruleset)
|
||||
@ -67,7 +67,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
var layerAboveRuleset = CreateLayerContainer();
|
||||
layerAboveRuleset.Children = new Drawable[]
|
||||
{
|
||||
maskLayer = new HitObjectMaskLayer(),
|
||||
blueprintContainer = new BlueprintContainer(),
|
||||
placementContainer = new PlacementContainer(),
|
||||
};
|
||||
|
||||
@ -148,11 +148,11 @@ namespace osu.Game.Rulesets.Edit
|
||||
/// <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 @@ using osu.Game.Rulesets.Objects.Drawables;
|
||||
|
||||
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
Block a user