public TestSceneNowPlayingOverlay()
        {
            Clock = new FramedClock();

            var np = new NowPlayingOverlay
            {
                Origin = Anchor.Centre,
                Anchor = Anchor.Centre
            };

            Add(musicController);
            Add(np);

            AddStep(@"show", () => np.Show());
            AddToggleStep(@"toggle beatmap lock", state => Beatmap.Disabled = state);
            AddStep(@"show", () => np.Hide());
        }
示例#2
0
 public void TestShowHideDisable()
 {
     AddStep(@"show", () => nowPlayingOverlay.Show());
     AddToggleStep(@"toggle beatmap lock", state => Beatmap.Disabled = state);
     AddStep(@"hide", () => nowPlayingOverlay.Hide());
 }