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(); }