mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:33:21 +08:00
Mask -> Piece for non-mask components
This commit is contained in:
parent
d19f80835b
commit
e14719e440
@ -11,11 +11,11 @@ using OpenTK;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircle.Components
|
namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircle.Components
|
||||||
{
|
{
|
||||||
public class HitCircleMask : CompositeDrawable
|
public class HitCirclePiece : CompositeDrawable
|
||||||
{
|
{
|
||||||
private readonly Objects.HitCircle hitCircle;
|
private readonly Objects.HitCircle hitCircle;
|
||||||
|
|
||||||
public HitCircleMask(Objects.HitCircle hitCircle)
|
public HitCirclePiece(Objects.HitCircle hitCircle)
|
||||||
{
|
{
|
||||||
this.hitCircle = hitCircle;
|
this.hitCircle = hitCircle;
|
||||||
|
|
@ -14,7 +14,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircle
|
|||||||
public HitCirclePlacementMask()
|
public HitCirclePlacementMask()
|
||||||
: base(new Objects.HitCircle())
|
: base(new Objects.HitCircle())
|
||||||
{
|
{
|
||||||
InternalChild = new HitCircleMask(HitObject);
|
InternalChild = new HitCirclePiece(HitObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircle
|
|||||||
public HitCircleSelectionMask(DrawableHitCircle hitCircle)
|
public HitCircleSelectionMask(DrawableHitCircle hitCircle)
|
||||||
: base(hitCircle)
|
: base(hitCircle)
|
||||||
{
|
{
|
||||||
InternalChild = new HitCircleMask((Objects.HitCircle)hitCircle.HitObject);
|
InternalChild = new HitCirclePiece((Objects.HitCircle)hitCircle.HitObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,12 +9,12 @@ using OpenTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider.Components
|
namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider.Components
|
||||||
{
|
{
|
||||||
public class SliderBodyMask : CompositeDrawable
|
public class BodyPiece : CompositeDrawable
|
||||||
{
|
{
|
||||||
private readonly Objects.Slider slider;
|
private readonly Objects.Slider slider;
|
||||||
private readonly SliderBody body;
|
private readonly SliderBody body;
|
||||||
|
|
||||||
public SliderBodyMask(Objects.Slider slider)
|
public BodyPiece(Objects.Slider slider)
|
||||||
{
|
{
|
||||||
this.slider = slider;
|
this.slider = slider;
|
||||||
InternalChild = body = new SliderBody(slider)
|
InternalChild = body = new SliderBody(slider)
|
@ -5,12 +5,12 @@ using osu.Game.Rulesets.Osu.Edit.Masks.HitCircle.Components;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider.Components
|
namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider.Components
|
||||||
{
|
{
|
||||||
public class SliderCircleMask : HitCircleMask
|
public class SliderCirclePiece : HitCirclePiece
|
||||||
{
|
{
|
||||||
private readonly Objects.Slider slider;
|
private readonly Objects.Slider slider;
|
||||||
private readonly SliderPosition position;
|
private readonly SliderPosition position;
|
||||||
|
|
||||||
public SliderCircleMask(Objects.Slider slider, SliderPosition position)
|
public SliderCirclePiece(Objects.Slider slider, SliderPosition position)
|
||||||
: base(slider.HeadCircle)
|
: base(slider.HeadCircle)
|
||||||
{
|
{
|
||||||
this.slider = slider;
|
this.slider = slider;
|
@ -12,7 +12,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider
|
|||||||
public SliderCircleSelectionMask(DrawableOsuHitObject hitObject, Objects.Slider slider, SliderPosition position)
|
public SliderCircleSelectionMask(DrawableOsuHitObject hitObject, Objects.Slider slider, SliderPosition position)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
{
|
{
|
||||||
InternalChild = new SliderCircleMask(slider, position);
|
InternalChild = new SliderCirclePiece(slider, position);
|
||||||
|
|
||||||
Select();
|
Select();
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.Slider
|
|||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new SliderBodyMask(sliderObject),
|
new BodyPiece(sliderObject),
|
||||||
headMask = new SliderCircleSelectionMask(slider.HeadCircle, sliderObject, SliderPosition.Start),
|
headMask = new SliderCircleSelectionMask(slider.HeadCircle, sliderObject, SliderPosition.Start),
|
||||||
new SliderCircleSelectionMask(slider.TailCircle, sliderObject, SliderPosition.End),
|
new SliderCircleSelectionMask(slider.TailCircle, sliderObject, SliderPosition.End),
|
||||||
};
|
};
|
||||||
|
@ -34,7 +34,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
typeof(OsuHitObjectComposer),
|
typeof(OsuHitObjectComposer),
|
||||||
typeof(HitObjectMaskLayer),
|
typeof(HitObjectMaskLayer),
|
||||||
typeof(NotNullAttribute),
|
typeof(NotNullAttribute),
|
||||||
typeof(HitCircleMask),
|
typeof(HitCirclePiece),
|
||||||
typeof(HitCircleSelectionMask),
|
typeof(HitCircleSelectionMask),
|
||||||
typeof(HitCirclePlacementMask),
|
typeof(HitCirclePlacementMask),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user