mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Show game time display in clock
This commit is contained in:
@ -5,6 +5,7 @@ using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Game.Overlays.Toolbar;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
@ -14,11 +15,13 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[TestFixture]
|
||||
public class TestSceneToolbarClock : OsuManualInputManagerTestScene
|
||||
{
|
||||
private readonly Container mainContainer;
|
||||
|
||||
public TestSceneToolbarClock()
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Container
|
||||
mainContainer = new Container
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
@ -60,5 +63,17 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRealGameTime()
|
||||
{
|
||||
AddStep("Set game time real", () => mainContainer.Clock = Clock);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLongGameTime()
|
||||
{
|
||||
AddStep("Set game time long", () => mainContainer.Clock = new FramedOffsetClock(Clock, false) { Offset = 3600.0 * 24 * 1000 * 98 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user