public DrawableNoteSheetBody(DrawableNoteSheet noteSheet)
            : base(noteSheet.HitObject.Body)
        {
            this.noteSheet = noteSheet;

            RelativeSizeAxes = Axes.Y;
            Height           = 1f;

            AddRangeInternal(new Drawable[]
            {
                backgroundBox = new Box {
                    RelativeSizeAxes = Axes.Both
                },
                triangles = new Triangles {
                    RelativeSizeAxes = Axes.Both
                },
                topBox = new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Height           = border_size,
                    Origin           = Anchor.TopCentre,
                    Anchor           = Anchor.TopCentre,
                },
                bottomBox = new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Height           = border_size,
                    Origin           = Anchor.BottomCentre,
                    Anchor           = Anchor.BottomCentre,
                }
            });

            AccentColour.ValueChanged += _ => updateDrawables();
            HasBroken.ValueChanged    += _ => updateDrawables();
        }
Exemple #2
0
        public DrawableNoteSheetCap(DrawableNoteSheet noteSheet, TObject hitObject)
            : base(hitObject)
        {
            NoteSheet = noteSheet;
            Size      = new Vector2(DrawableNoteSheet.NOTE_SHEET_SIZE * 1.1f);
            Origin    = Anchor.Centre;

            Content.Child = capStar = new DrawableNoteSheetCapStar
            {
                Origin           = Anchor.Centre,
                Anchor           = Anchor.Centre,
                RelativeSizeAxes = Axes.Both,
                AccentColour     = { BindTarget = AccentColour },
            };
        }
        public DrawableNoteSheetCap(DrawableNoteSheet noteSheet, TObject hitObject)
            : base(hitObject)
        {
            NoteSheet = noteSheet;
            Size      = new Vector2(DrawableNoteSheet.NOTE_SHEET_SIZE * 1.1f);
            Origin    = Anchor.Centre;

            Content.Child = capStar = new DrawableNoteSheetCapStar
            {
                Origin           = Anchor.Centre,
                Anchor           = Anchor.Centre,
                RelativeSizeAxes = Axes.Both
            };

            AccentColour.ValueChanged += _ => updateDrawables();
            HasBroken.ValueChanged    += _ => updateDrawables();
        }
Exemple #4
0
 public DrawableNoteSheetHead(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Head)
 {
 }
Exemple #5
0
 public DrawableNoteSheetTail(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Tail)
 {
 }