예제 #1
0
        public PracticeSettings(IBeatmap beatmap)
        {
            var lyrics = beatmap.HitObjects.OfType <LyricLine>().ToList();

            Children = new Drawable[]
            {
                new OsuSpriteText
                {
                    Text = "Practice preempt time:"
                },
                preemptTimeSliderBar = new PlayerSliderBar <double>(),
                new OsuSpriteText
                {
                    Text = "Lyric:"
                },
                lyricPreview = new LyricPreview(lyrics)
                {
                    Height = 580
                }
            };
        }
예제 #2
0
        public PracticeSettings(IBeatmap beatmap)
            : base("Practice")
        {
            var lyrics = beatmap.HitObjects.OfType <Lyric>().ToList();

            Children = new Drawable[]
            {
                new OsuSpriteText
                {
                    Text = "Practice preempt time:"
                },
                preemptTimeSliderBar = new PlayerSliderBar <double>(),
                new OsuSpriteText
                {
                    Text = "Lyric:"
                },
                lyricPreview = new LyricPreview(lyrics)
                {
                    Height           = 580,
                    RelativeSizeAxes = Axes.X,
                    Spacing          = new Vector2(15),
                }
            };
        }