// Copyright (c) ppy Pty Ltd . 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; using osu.Game.Seasonal; using osuTK; namespace osu.Game.Tests.Visual.UserInterface { public partial class TestSceneOsuLogo : OsuTestScene { private OsuLogo? logo; private float scale = 1; protected override void LoadComplete() { base.LoadComplete(); AddSliderStep("scale", 0.1, 2, 1, scale => { if (logo != null) Child.Scale = new Vector2(this.scale = (float)scale); }); } [Test] public void TestBasic() { AddStep("Add logo", () => { Child = logo = new OsuLogo { Anchor = Anchor.Centre, Origin = Anchor.Centre, Scale = new Vector2(scale), }; }); } [Test] public void TestChristmas() { AddStep("Add logo", () => { Child = logo = new OsuLogoChristmas { Anchor = Anchor.Centre, Origin = Anchor.Centre, Scale = new Vector2(scale), }; }); } } }