Show game time display in clock

This commit is contained in:
Dean Herbert
2022-03-26 17:55:33 +09:00
parent e8f5a8e3d6
commit 999ae88af2
2 changed files with 45 additions and 18 deletions

View File

@ -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 });
}
}
}