mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Delete breadcrumb implementation
This commit is contained in:
@ -7,7 +7,6 @@ using NUnit.Framework;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Changelog;
|
||||
using osu.Game.Overlays.Changelog.Header;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
@ -25,9 +24,6 @@ namespace osu.Game.Tests.Visual.Online
|
||||
typeof(ChangelogListing),
|
||||
typeof(ChangelogSingleBuild),
|
||||
typeof(ChangelogBuild),
|
||||
typeof(Breadcrumb),
|
||||
typeof(BreadcrumbListing),
|
||||
typeof(BreadcrumbRelease),
|
||||
};
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
@ -1,57 +0,0 @@
|
||||
// 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 osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Overlays.Changelog.Header;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneTextBadgePair : OsuTestScene
|
||||
{
|
||||
public TestSceneTextBadgePair()
|
||||
{
|
||||
Breadcrumb breadcrumb;
|
||||
|
||||
Add(new Container
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Width = 250,
|
||||
Height = 50,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
Colour = Color4.Gray,
|
||||
Alpha = 0.5f,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
breadcrumb = new TestBadgePair(Color4.DeepSkyBlue, "Test")
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
AddStep(@"Deactivate", breadcrumb.Deactivate);
|
||||
AddStep(@"Activate", breadcrumb.Activate);
|
||||
AddStep(@"Hide text", () => breadcrumb.HideText(200));
|
||||
AddStep(@"Show text", () => breadcrumb.ShowText(200));
|
||||
AddStep(@"Different text", () => breadcrumb.ShowText(200, "This one's a little bit wider"));
|
||||
AddStep(@"Different text", () => breadcrumb.ShowText(200, "Ok?.."));
|
||||
}
|
||||
|
||||
private class TestBadgePair : Breadcrumb
|
||||
{
|
||||
public TestBadgePair(ColourInfo badgeColour, string displayText = "Listing", bool startCollapsed = true)
|
||||
: base(badgeColour, displayText, startCollapsed)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user