Beispiel #1
0
        public void TestSongBar()
        {
            SongBar songBar = null;

            AddStep("create bar", () => Child = songBar = new SongBar
            {
                RelativeSizeAxes = Axes.X,
                Anchor           = Anchor.Centre,
                Origin           = Anchor.Centre
            });
            AddUntilStep("wait for loaded", () => songBar.IsLoaded);

            AddStep("set beatmap", () =>
            {
                var beatmap               = CreateAPIBeatmap(Ruleset.Value);
                beatmap.CircleSize        = 3.4f;
                beatmap.ApproachRate      = 6.8f;
                beatmap.OverallDifficulty = 5.5f;
                beatmap.StarRating        = 4.56f;
                beatmap.Length            = 123456;
                beatmap.BPM               = 133;

                songBar.Beatmap = new TournamentBeatmap(beatmap);
            });
            AddStep("set mods to HR", () => songBar.Mods = LegacyMods.HardRock);
            AddStep("set mods to DT", () => songBar.Mods = LegacyMods.DoubleTime);
            AddStep("unset mods", () => songBar.Mods     = LegacyMods.None);
        }
 protected BeatmapInfoScreen()
 {
     AddInternal(SongBar = new SongBar
     {
         Anchor = Anchor.BottomRight,
         Origin = Anchor.BottomRight,
     });
 }
Beispiel #3
0
 protected BeatmapInfoScreen()
 {
     AddInternal(SongBar = new SongBar
     {
         Anchor = Anchor.BottomRight,
         Origin = Anchor.BottomRight,
         Depth  = float.MinValue,
     });
 }