mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +08:00
Cleanup
This commit is contained in:
parent
5fa93f4a05
commit
e06fe7950b
@ -182,23 +182,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
AddAssert("Logo is tracking", () => trackingContainer.IsLogoTracking);
|
AddAssert("Logo is tracking", () => trackingContainer.IsLogoTracking);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void SetFacadeSizeTest()
|
|
||||||
{
|
|
||||||
AddStep("Add tracking containers", addFacadeContainers);
|
|
||||||
AddStep("Break stuff", () => { logoFacade.Size = new Vector2(0, 0); });
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void SetMultipleContainers()
|
|
||||||
{
|
|
||||||
LogoTrackingContainer newContainer = new LogoTrackingContainer();
|
|
||||||
AddStep("Add tracking containers", addFacadeContainers);
|
|
||||||
AddStep("Move facade to random position", startTrackingRandom);
|
|
||||||
AddStep("Add logo to new container", () => newContainer.SetLogo(logo));
|
|
||||||
AddStep("Break stuff", () => newContainer.Tracking = true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addFacadeContainers()
|
private void addFacadeContainers()
|
||||||
{
|
{
|
||||||
AddRange(new Drawable[]
|
AddRange(new Drawable[]
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection.Metadata.Ecma335;
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.MathUtils;
|
using osu.Framework.MathUtils;
|
||||||
@ -133,8 +132,6 @@ namespace osu.Game.Graphics.Containers
|
|||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Vector2 size;
|
|
||||||
|
|
||||||
private class ExposedFacade : Facade
|
private class ExposedFacade : Facade
|
||||||
{
|
{
|
||||||
public void SetSize(Vector2 size)
|
public void SetSize(Vector2 size)
|
||||||
|
Loading…
Reference in New Issue
Block a user