コード例 #1
0
ファイル: DrawableNoteSheetCap.cs プロジェクト: xE0F9/rush
        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 },
            };
        }
コード例 #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();
        }