コード例 #1
0
        public DrawableNoteSheetBody(DrawableNoteSheet noteSheet)
            : base(noteSheet.HitObject.Body)
        {
            this.noteSheet = noteSheet;

            RelativeSizeAxes = Axes.Y;
            Height           = 1f;

            AddRangeInternal(new Drawable[]
            {
                backgroundBox = new Box {
                    RelativeSizeAxes = Axes.Both
                },
                triangles = new Triangles {
                    RelativeSizeAxes = Axes.Both
                },
                topBox = new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Height           = border_size,
                    Origin           = Anchor.TopCentre,
                    Anchor           = Anchor.TopCentre,
                },
                bottomBox = new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Height           = border_size,
                    Origin           = Anchor.BottomCentre,
                    Anchor           = Anchor.BottomCentre,
                }
            });

            AccentColour.ValueChanged += _ => updateDrawables();
            HasBroken.ValueChanged    += _ => updateDrawables();
        }
コード例 #2
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 },
            };
        }
コード例 #3
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();
        }
コード例 #4
0
 public DrawableNoteSheetHead(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Head)
 {
 }
コード例 #5
0
ファイル: DrawableNoteSheetTail.cs プロジェクト: xE0F9/rush
 public DrawableNoteSheetTail(DrawableNoteSheet noteSheet)
     : base(noteSheet, noteSheet.HitObject.Tail)
 {
 }