public EditNotePiece() { Height = NotePiece.NOTE_HEIGHT; CornerRadius = 5; Masking = true; InternalChild = new NotePiece(); }
public DrawableNote(Note hitObject) : base(hitObject) { RelativeSizeAxes = Axes.X; AutoSizeAxes = Axes.Y; CornerRadius = 5; Masking = true; AddInternal(headPiece = new NotePiece()); }
public DrawableNote(Note hitObject, ManiaAction action) : base(hitObject, action) { RelativeSizeAxes = Axes.X; AutoSizeAxes = Axes.Y; CornerRadius = 5; Masking = true; InternalChild = headPiece = new NotePiece(); }
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 }); }
public DrawableNote(Note hitObject, ManiaAction action) : base(hitObject, action) { RelativeSizeAxes = Axes.X; Height = 100; Add(headPiece = new NotePiece { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre }); }
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); }