Esempio n. 1
0
        public EditNotePiece()
        {
            Height = NotePiece.NOTE_HEIGHT;

            CornerRadius = 5;
            Masking      = true;

            InternalChild = new NotePiece();
        }
Esempio n. 2
0
        public DrawableNote(Note hitObject)
            : base(hitObject)
        {
            RelativeSizeAxes = Axes.X;
            AutoSizeAxes     = Axes.Y;

            CornerRadius = 5;
            Masking      = true;

            AddInternal(headPiece = new NotePiece());
        }
Esempio n. 3
0
        public DrawableNote(Note hitObject, ManiaAction action)
            : base(hitObject, action)
        {
            RelativeSizeAxes = Axes.X;
            AutoSizeAxes     = Axes.Y;

            CornerRadius = 5;
            Masking      = true;

            InternalChild = headPiece = new NotePiece();
        }
Esempio n. 4
0
        public DrawableNote(Note hitObject, Bindable <Key> key = null)
            : base(hitObject, key)
        {
            RelativeSizeAxes = Axes.X;
            Height           = 100;

            Add(headPiece = new NotePiece
            {
                Anchor = Anchor.TopCentre,
                Origin = Anchor.TopCentre
            });
        }
Esempio n. 5
0
        public DrawableNote(Note hitObject, ManiaAction action)
            : base(hitObject, action)
        {
            RelativeSizeAxes = Axes.X;
            Height           = 100;

            Add(headPiece = new NotePiece
            {
                Anchor = Anchor.TopCentre,
                Origin = Anchor.TopCentre
            });
        }
Esempio n. 6
0
        public DrawableNote(Note hitObject)
            : base(hitObject)
        {
            RelativeSizeAxes = Axes.X;
            AutoSizeAxes     = Axes.Y;

            CornerRadius = 5;
            Masking      = true;

            AddInternal(headPiece = new NotePiece());

            AccentColour.BindValueChanged(colour =>
            {
                headPiece.AccentColour = colour.NewValue;

                EdgeEffect = new EdgeEffectParameters
                {
                    Type   = EdgeEffectType.Glow,
                    Colour = colour.NewValue.Lighten(1f).Opacity(0.2f),
                    Radius = 10,
                };
            }, true);
        }