2019-01-24 17:43:03 +09:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Timing;
|
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
|
2019-03-25 01:02:36 +09:00
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2019-05-14 22:37:25 +03:00
|
|
|
|
public class TestSceneMusicController : OsuTestScene
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
2019-05-14 22:37:25 +03:00
|
|
|
|
public TestSceneMusicController()
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
|
|
|
|
Clock = new FramedClock();
|
|
|
|
|
|
|
|
|
|
var mc = new MusicController
|
|
|
|
|
{
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
Anchor = Anchor.Centre
|
|
|
|
|
};
|
|
|
|
|
Add(mc);
|
|
|
|
|
|
2019-06-11 14:28:52 +09:00
|
|
|
|
AddStep(@"show", () => mc.Show());
|
2018-05-23 17:37:39 +09:00
|
|
|
|
AddToggleStep(@"toggle beatmap lock", state => Beatmap.Disabled = state);
|
2019-06-14 13:40:32 +09:00
|
|
|
|
AddStep(@"show", () => mc.Hide());
|
2018-04-13 18:19:50 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|