mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:52:55 +08:00
Mask -> Piece for components
This commit is contained in:
parent
9656186b64
commit
ea3c960b5b
@ -11,11 +11,11 @@ using OpenTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircleMasks.Components
|
||||
{
|
||||
public class HitCircleMask : CompositeDrawable
|
||||
public class HitCirclePiece : CompositeDrawable
|
||||
{
|
||||
private readonly HitCircle hitCircle;
|
||||
|
||||
public HitCircleMask(HitCircle hitCircle)
|
||||
public HitCirclePiece(HitCircle hitCircle)
|
||||
{
|
||||
this.hitCircle = hitCircle;
|
||||
Origin = Anchor.Centre;
|
@ -13,7 +13,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.HitCircleMasks
|
||||
public HitCircleSelectionMask(DrawableHitCircle hitCircle)
|
||||
: base(hitCircle)
|
||||
{
|
||||
InternalChild = new HitCircleMask((HitCircle)hitCircle.HitObject);
|
||||
InternalChild = new HitCirclePiece((HitCircle)hitCircle.HitObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,12 +10,12 @@ using OpenTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.SliderMasks.Components
|
||||
{
|
||||
public class SliderBodyMask : CompositeDrawable
|
||||
public class SliderBodyPiece : CompositeDrawable
|
||||
{
|
||||
private readonly Slider slider;
|
||||
private readonly SliderBody body;
|
||||
|
||||
public SliderBodyMask(Slider slider)
|
||||
public SliderBodyPiece(Slider slider)
|
||||
{
|
||||
this.slider = slider;
|
||||
InternalChild = body = new SliderBody(slider)
|
@ -6,12 +6,12 @@ using osu.Game.Rulesets.Osu.Objects;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Edit.Masks.SliderMasks.Components
|
||||
{
|
||||
public class SliderCircleMask : HitCircleMask
|
||||
public class SliderCirclePiece : HitCirclePiece
|
||||
{
|
||||
private readonly Slider slider;
|
||||
private readonly SliderPosition position;
|
||||
|
||||
public SliderCircleMask(Slider slider, SliderPosition position)
|
||||
public SliderCirclePiece(Slider slider, SliderPosition position)
|
||||
: base(slider.HeadCircle)
|
||||
{
|
||||
this.slider = slider;
|
@ -13,7 +13,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.SliderMasks
|
||||
public SliderCircleSelectionMask(DrawableOsuHitObject hitObject, Slider slider, SliderPosition position)
|
||||
: base(hitObject)
|
||||
{
|
||||
InternalChild = new SliderCircleMask(slider, position);
|
||||
InternalChild = new SliderCirclePiece(slider, position);
|
||||
|
||||
Select();
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks.SliderMasks
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
new SliderBodyMask(sliderObject),
|
||||
new SliderBodyPiece(sliderObject),
|
||||
headMask = new SliderCircleSelectionMask(slider.HeadCircle, sliderObject, SliderPosition.Start),
|
||||
new SliderCircleSelectionMask(slider.TailCircle, sliderObject, SliderPosition.End),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user