1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 11:33:22 +08:00
osu-lazer/osu.Game.Tests/Visual/UserInterface/TestSceneOsuLogo.cs

35 lines
884 B
C#
Raw Normal View History

2023-06-23 00:37:25 +08: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.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Screens.Menu;
2024-12-19 17:44:44 +08:00
using osuTK;
namespace osu.Game.Tests.Visual.UserInterface
{
2022-11-24 13:32:20 +08:00
public partial class TestSceneOsuLogo : OsuTestScene
{
2024-12-19 17:44:44 +08:00
private OsuLogo? logo;
[Test]
public void TestBasic()
{
AddStep("Add logo", () =>
{
2024-12-19 17:44:44 +08:00
Child = logo = new OsuLogo
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
};
});
2024-12-19 17:44:44 +08:00
AddSliderStep("scale", 0.1, 2, 1, scale =>
{
if (logo != null)
Child.Scale = new Vector2((float)scale);
});
}
}
}