Exemplo n.º 1
0
        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();
        }
Exemplo n.º 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 },
            };
        }
Exemplo n.º 3
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.ValueChanged += _ => updateDrawables();
            HasBroken.ValueChanged    += _ => updateDrawables();
        }
Exemplo n.º 4
0
 public DrawableNoteSheetHead(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Head)
 {
 }
Exemplo n.º 5
0
 public DrawableNoteSheetTail(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Tail)
 {
 }