Ejemplo n.º 1
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 },
            };
        }
Ejemplo 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.ValueChanged += _ => updateDrawables();
            HasBroken.ValueChanged    += _ => updateDrawables();
        }