mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 20:25:17 +08:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Screens.Testing;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Timing;
|
|
using osu.Game.Overlays;
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Desktop.VisualTests.Tests
|
|
{
|
|
internal class TestCaseMusicController : TestCase
|
|
{
|
|
public override string Description => @"Tests music controller ui.";
|
|
|
|
private MusicController mc;
|
|
|
|
public TestCaseMusicController()
|
|
{
|
|
Clock = new FramedClock();
|
|
}
|
|
|
|
public override void Reset()
|
|
{
|
|
base.Reset();
|
|
Clock.ProcessFrame();
|
|
mc = new MusicController
|
|
{
|
|
Origin = Anchor.Centre,
|
|
Anchor = Anchor.Centre
|
|
};
|
|
Add(mc);
|
|
AddToggle(@"Show", state => mc.State = state ? Visibility.Visible : Visibility.Hidden);
|
|
}
|
|
}
|
|
}
|