mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -12,7 +12,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBackButton : OsuTestScene
|
||||
public partial class TestSceneBackButton : OsuTestScene
|
||||
{
|
||||
public TestSceneBackButton()
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneBeatSyncedContainer : OsuTestScene
|
||||
public partial class TestSceneBeatSyncedContainer : OsuTestScene
|
||||
{
|
||||
private TestBeatSyncedContainer beatContainer;
|
||||
|
||||
@ -171,7 +171,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("effect has kiai", () => actualEffectPoint != null && ((EffectControlPoint)actualEffectPoint).KiaiMode);
|
||||
}
|
||||
|
||||
private class TestBeatSyncedContainer : BeatSyncedContainer
|
||||
private partial class TestBeatSyncedContainer : BeatSyncedContainer
|
||||
{
|
||||
private const int flash_layer_height = 150;
|
||||
|
||||
@ -321,7 +321,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class InfoString : FillFlowContainer
|
||||
private partial class InfoString : FillFlowContainer
|
||||
{
|
||||
private const int text_size = 20;
|
||||
private const int margin = 7;
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Overlays.BeatmapListing;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBeatmapListingCardSizeTabControl : OsuTestScene
|
||||
public partial class TestSceneBeatmapListingCardSizeTabControl : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
@ -19,7 +19,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBeatmapListingSearchControl : OsuTestScene
|
||||
public partial class TestSceneBeatmapListingSearchControl : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBeatmapListingSortTabControl : OsuTestScene
|
||||
public partial class TestSceneBeatmapListingSortTabControl : OsuTestScene
|
||||
{
|
||||
private readonly BeatmapListingSortTabControl control;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBeatmapSearchFilter : OsuTestScene
|
||||
public partial class TestSceneBeatmapSearchFilter : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneBreadcrumbControl : OsuTestScene
|
||||
public partial class TestSceneBreadcrumbControl : OsuTestScene
|
||||
{
|
||||
private readonly TestBreadcrumbControl breadcrumbs;
|
||||
|
||||
@ -62,7 +62,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Circles,
|
||||
}
|
||||
|
||||
private class TestBreadcrumbControl : BreadcrumbControl<BreadcrumbTab>
|
||||
private partial class TestBreadcrumbControl : BreadcrumbControl<BreadcrumbTab>
|
||||
{
|
||||
public BreadcrumbTabItem GetDrawable(BreadcrumbTab tab) => (BreadcrumbTabItem)TabContainer.First(t => t.Value == tab);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneBreadcrumbControlHeader : OsuTestScene
|
||||
public partial class TestSceneBreadcrumbControlHeader : OsuTestScene
|
||||
{
|
||||
private static readonly string[] items = { "first", "second", "third", "fourth", "fifth" };
|
||||
|
||||
@ -48,7 +48,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep($"Remove {item} item", () => header.RemoveItem(item));
|
||||
}
|
||||
|
||||
private class TestHeader : BreadcrumbControlOverlayHeader
|
||||
private partial class TestHeader : BreadcrumbControlOverlayHeader
|
||||
{
|
||||
public TestHeader()
|
||||
{
|
||||
@ -77,7 +77,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
protected override OverlayTitle CreateTitle() => new TestTitle();
|
||||
}
|
||||
|
||||
private class TestTitle : OverlayTitle
|
||||
private partial class TestTitle : OverlayTitle
|
||||
{
|
||||
public TestTitle()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneButtonSystem : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneButtonSystem : OsuManualInputManagerTestScene
|
||||
{
|
||||
private OsuLogo logo;
|
||||
private ButtonSystem buttons;
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneColourPicker : OsuTestScene
|
||||
public partial class TestSceneColourPicker : OsuTestScene
|
||||
{
|
||||
private readonly Bindable<Colour4> colour = new Bindable<Colour4>(Colour4.Aquamarine);
|
||||
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep("set red", () => colour.Value = Colour4.Red);
|
||||
}
|
||||
|
||||
private class ColourProvidingContainer : Container
|
||||
private partial class ColourProvidingContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider provider { get; }
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneCommentEditor : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneCommentEditor : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
@ -103,7 +103,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("cancel action fired", () => cancellableCommentEditor.Cancelled);
|
||||
}
|
||||
|
||||
private class TestCommentEditor : CommentEditor
|
||||
private partial class TestCommentEditor : CommentEditor
|
||||
{
|
||||
public new Bindable<string> Current => base.Current;
|
||||
public new FillFlowContainer ButtonsContainer => base.ButtonsContainer;
|
||||
@ -126,7 +126,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
protected override string TextBoxPlaceholder => @"This text box is empty";
|
||||
}
|
||||
|
||||
private class TestCancellableCommentEditor : CancellableCommentEditor
|
||||
private partial class TestCancellableCommentEditor : CancellableCommentEditor
|
||||
{
|
||||
public new FillFlowContainer ButtonsContainer => base.ButtonsContainer;
|
||||
protected override string FooterText => @"Wow, another one. Sicc";
|
||||
|
@ -16,7 +16,7 @@ using osu.Framework.Testing;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneCommentRepliesButton : OsuTestScene
|
||||
public partial class TestSceneCommentRepliesButton : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
@ -54,7 +54,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("Icon facing downwards", () => button.Icon.Scale.Y == 1);
|
||||
}
|
||||
|
||||
private class TestButton : CommentRepliesButton
|
||||
private partial class TestButton : CommentRepliesButton
|
||||
{
|
||||
public SpriteIcon Icon => this.ChildrenOfType<SpriteIcon>().First();
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneContextMenu : OsuTestScene
|
||||
public partial class TestSceneContextMenu : OsuTestScene
|
||||
{
|
||||
private const int start_time = 0;
|
||||
private const int duration = 1000;
|
||||
@ -113,12 +113,12 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class MyContextMenuContainer : Container, IHasContextMenu
|
||||
private partial class MyContextMenuContainer : Container, IHasContextMenu
|
||||
{
|
||||
public MenuItem[] ContextMenuItems => makeMenu();
|
||||
}
|
||||
|
||||
private class AnotherContextMenuContainer : Container, IHasContextMenu
|
||||
private partial class AnotherContextMenuContainer : Container, IHasContextMenu
|
||||
{
|
||||
public MenuItem[] ContextMenuItems
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneCursors : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneCursors : OsuManualInputManagerTestScene
|
||||
{
|
||||
private readonly GlobalCursorDisplay globalCursorDisplay;
|
||||
private readonly CustomCursorBox[] cursorBoxes = new CustomCursorBox[6];
|
||||
@ -239,7 +239,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
private bool checkAtMouse(CursorContainer cursorContainer)
|
||||
=> Precision.AlmostEquals(InputManager.CurrentState.Mouse.Position, cursorContainer.ToScreenSpace(cursorContainer.ActiveCursor.DrawPosition));
|
||||
|
||||
private class CustomCursorBox : Container, IProvideCursor
|
||||
private partial class CustomCursorBox : Container, IProvideCursor
|
||||
{
|
||||
public bool SmoothTransition;
|
||||
|
||||
@ -290,11 +290,11 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestCursorContainer : CursorContainer
|
||||
private partial class TestCursorContainer : CursorContainer
|
||||
{
|
||||
protected override Drawable CreateCursor() => new TestCursor();
|
||||
|
||||
private class TestCursor : CircularContainer
|
||||
private partial class TestCursor : CircularContainer
|
||||
{
|
||||
public TestCursor()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ using APIUser = osu.Game.Online.API.Requests.Responses.APIUser;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneDashboardBeatmapListing : OsuTestScene
|
||||
public partial class TestSceneDashboardBeatmapListing : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
|
||||
|
@ -32,7 +32,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneDeleteLocalScore : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneDeleteLocalScore : OsuManualInputManagerTestScene
|
||||
{
|
||||
private readonly ContextMenuContainer contextMenuContainer;
|
||||
private readonly BeatmapLeaderboard leaderboard;
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Overlays.Dialog;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneDialogOverlay : OsuTestScene
|
||||
public partial class TestSceneDialogOverlay : OsuTestScene
|
||||
{
|
||||
private DialogOverlay overlay;
|
||||
|
||||
@ -114,7 +114,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("dialog displayed", () => overlay.CurrentDialog == dialog);
|
||||
}
|
||||
|
||||
public class SlowLoadingDialogOverlay : DialogOverlay
|
||||
public partial class SlowLoadingDialogOverlay : DialogOverlay
|
||||
{
|
||||
public ManualResetEventSlim LoadEvent = new ManualResetEventSlim();
|
||||
|
||||
@ -166,7 +166,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("dialog is not part of hierarchy", () => testDialog.Parent == null);
|
||||
}
|
||||
|
||||
private class TestPopupDialog : PopupDialog
|
||||
private partial class TestPopupDialog : PopupDialog
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Overlays.Mods;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneDifficultyMultiplierDisplay : OsuTestScene
|
||||
public partial class TestSceneDifficultyMultiplierDisplay : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -13,7 +13,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneDrawableDate : OsuTestScene
|
||||
public partial class TestSceneDrawableDate : OsuTestScene
|
||||
{
|
||||
public TestSceneDrawableDate()
|
||||
{
|
||||
@ -36,7 +36,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class PokeyDrawableDate : CompositeDrawable
|
||||
private partial class PokeyDrawableDate : CompositeDrawable
|
||||
{
|
||||
public PokeyDrawableDate(DateTimeOffset date)
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneEditorSidebar : OsuTestScene
|
||||
public partial class TestSceneEditorSidebar : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
@ -11,7 +11,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneExpandingBar : OsuTestScene
|
||||
public partial class TestSceneExpandingBar : OsuTestScene
|
||||
{
|
||||
public TestSceneExpandingBar()
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneExpandingContainer : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneExpandingContainer : OsuManualInputManagerTestScene
|
||||
{
|
||||
private TestExpandingContainer container;
|
||||
private SettingsToolboxGroup toolboxGroup;
|
||||
@ -149,7 +149,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("container still expanded", () => container.Expanded.Value);
|
||||
}
|
||||
|
||||
private class TestExpandingContainer : ExpandingContainer
|
||||
private partial class TestExpandingContainer : ExpandingContainer
|
||||
{
|
||||
public TestExpandingContainer()
|
||||
: base(120, 250)
|
||||
|
@ -12,7 +12,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFPSCounter : OsuTestScene
|
||||
public partial class TestSceneFPSCounter : OsuTestScene
|
||||
{
|
||||
[SetUpSteps]
|
||||
public void SetUpSteps()
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Overlays.FirstRunSetup;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFirstRunScreenBehaviour : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneFirstRunScreenBehaviour : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Overlays.FirstRunSetup;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFirstRunScreenBundledBeatmaps : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneFirstRunScreenBundledBeatmaps : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Overlays.FirstRunSetup;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFirstRunScreenImportFromStable : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneFirstRunScreenImportFromStable : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Overlays.FirstRunSetup;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFirstRunScreenUIScale : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneFirstRunScreenUIScale : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
|
||||
|
@ -25,7 +25,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFirstRunSetupOverlay : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneFirstRunSetupOverlay : OsuManualInputManagerTestScene
|
||||
{
|
||||
private FirstRunSetupOverlay overlay;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Screens.Select;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFooterButtonMods : OsuTestScene
|
||||
public partial class TestSceneFooterButtonMods : OsuTestScene
|
||||
{
|
||||
private readonly TestFooterButtonMods footerButtonMods;
|
||||
|
||||
@ -81,7 +81,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
return expectedValue == footerButtonMods.MultiplierText.Current.Value;
|
||||
}
|
||||
|
||||
private class TestFooterButtonMods : FooterButtonMods
|
||||
private partial class TestFooterButtonMods : FooterButtonMods
|
||||
{
|
||||
public new OsuSpriteText MultiplierText => base.MultiplierText;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays.Dashboard.Friends;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneFriendsOnlineStatusControl : OsuTestScene
|
||||
public partial class TestSceneFriendsOnlineStatusControl : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
@ -11,7 +11,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneHistoryTextBox : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneHistoryTextBox : OsuManualInputManagerTestScene
|
||||
{
|
||||
private const string temp = "Temp message";
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Screens.Menu;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneHoldToConfirmOverlay : OsuTestScene
|
||||
public partial class TestSceneHoldToConfirmOverlay : OsuTestScene
|
||||
{
|
||||
protected override double TimePerAction => 100; // required for the early exit test, since hold-to-confirm delay is 200ms
|
||||
|
||||
@ -59,7 +59,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddUntilStep("wait until fired again", () => overlay.Fired);
|
||||
}
|
||||
|
||||
private class TestHoldToConfirmOverlay : ExitConfirmOverlay
|
||||
private partial class TestHoldToConfirmOverlay : ExitConfirmOverlay
|
||||
{
|
||||
public void Begin() => BeginConfirm();
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneIconButton : OsuTestScene
|
||||
public partial class TestSceneIconButton : OsuTestScene
|
||||
{
|
||||
public TestSceneIconButton()
|
||||
{
|
||||
@ -38,7 +38,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class ColouredIconButton : IconButton
|
||||
private partial class ColouredIconButton : IconButton
|
||||
{
|
||||
public ColouredIconButton()
|
||||
{
|
||||
@ -47,7 +47,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class NamedIconButton : Container
|
||||
private partial class NamedIconButton : Container
|
||||
{
|
||||
public NamedIconButton(string name, IconButton button)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLabelledColourPalette : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneLabelledColourPalette : OsuManualInputManagerTestScene
|
||||
{
|
||||
private LabelledColourPalette component;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLabelledDrawable : OsuTestScene
|
||||
public partial class TestSceneLabelledDrawable : OsuTestScene
|
||||
{
|
||||
[TestCase(false)]
|
||||
[TestCase(true)]
|
||||
@ -88,7 +88,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert($"description {(hasDescription ? "visible" : "hidden")}", () => component.ChildrenOfType<TextFlowContainer>().ElementAt(1).IsPresent == hasDescription);
|
||||
}
|
||||
|
||||
private class PaddedLabelledDrawable : LabelledDrawable<Drawable>
|
||||
private partial class PaddedLabelledDrawable : LabelledDrawable<Drawable>
|
||||
{
|
||||
public PaddedLabelledDrawable()
|
||||
: base(true)
|
||||
@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class NonPaddedLabelledDrawable : LabelledDrawable<Drawable>
|
||||
private partial class NonPaddedLabelledDrawable : LabelledDrawable<Drawable>
|
||||
{
|
||||
public NonPaddedLabelledDrawable()
|
||||
: base(false)
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterfaceV2;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLabelledDropdown : OsuTestScene
|
||||
public partial class TestSceneLabelledDropdown : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestLabelledDropdown()
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLabelledSliderBar : OsuTestScene
|
||||
public partial class TestSceneLabelledSliderBar : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestBasic() => createSliderBar();
|
||||
@ -101,7 +101,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
private class OverlayColourContainer : Container
|
||||
private partial class OverlayColourContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider;
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.UserInterfaceV2;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLabelledSwitchButton : OsuTestScene
|
||||
public partial class TestSceneLabelledSwitchButton : OsuTestScene
|
||||
{
|
||||
[TestCase(false)]
|
||||
[TestCase(true)]
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.UserInterfaceV2;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneLabelledTextBox : OsuTestScene
|
||||
public partial class TestSceneLabelledTextBox : OsuTestScene
|
||||
{
|
||||
[TestCase(false)]
|
||||
[TestCase(true)]
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLoadingLayer : OsuTestScene
|
||||
public partial class TestSceneLoadingLayer : OsuTestScene
|
||||
{
|
||||
private TestLoadingLayer overlay;
|
||||
|
||||
@ -87,7 +87,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep("hide", () => overlay.Hide());
|
||||
}
|
||||
|
||||
private class TestLoadingLayer : LoadingLayer
|
||||
private partial class TestLoadingLayer : LoadingLayer
|
||||
{
|
||||
public new Box BackgroundDimLayer => base.BackgroundDimLayer;
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLoadingSpinner : OsuGridTestScene
|
||||
public partial class TestSceneLoadingSpinner : OsuGridTestScene
|
||||
{
|
||||
public TestSceneLoadingSpinner()
|
||||
: base(2, 2)
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics.Sprites;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneLogoAnimation : OsuTestScene
|
||||
public partial class TestSceneLogoAnimation : OsuTestScene
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LargeTextureStore textures)
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneLogoTrackingContainer : OsuTestScene
|
||||
public partial class TestSceneLogoTrackingContainer : OsuTestScene
|
||||
{
|
||||
private OsuLogo logo;
|
||||
private TestLogoTrackingContainer trackingContainer;
|
||||
@ -277,7 +277,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Schedule(moveLogoFacade);
|
||||
}
|
||||
|
||||
private class TestLogoTrackingContainer : LogoTrackingContainer
|
||||
private partial class TestLogoTrackingContainer : LogoTrackingContainer
|
||||
{
|
||||
/// <summary>
|
||||
/// Check that the logo is tracking the position of the facade, with an acceptable precision lenience.
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModColumn : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneModColumn : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
@ -294,7 +294,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
modState.Filtered.Value = filter?.Invoke(modState.Mod) == false;
|
||||
}
|
||||
|
||||
private class TestModColumn : ModColumn
|
||||
private partial class TestModColumn : ModColumn
|
||||
{
|
||||
public new bool SelectionAnimationRunning => base.SelectionAnimationRunning;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneModDifficultyAdjustSettings : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneModDifficultyAdjustSettings : OsuManualInputManagerTestScene
|
||||
{
|
||||
private OsuModDifficultyAdjust modDifficultyAdjust;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Screens.Play.HUD;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneModDisplay : OsuTestScene
|
||||
public partial class TestSceneModDisplay : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestMode([Values] ExpansionMode mode)
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Screens.Play.HUD;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneModFlowDisplay : OsuTestScene
|
||||
public partial class TestSceneModFlowDisplay : OsuTestScene
|
||||
{
|
||||
private ModFlowDisplay modFlow;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Rulesets.UI;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneModIcon : OsuTestScene
|
||||
public partial class TestSceneModIcon : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestShowAllMods()
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModPanel : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneModPanel : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -25,7 +25,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneModPresetColumn : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneModPresetColumn : OsuManualInputManagerTestScene
|
||||
{
|
||||
protected override bool UseFreshStoragePerRun => true;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModPresetPanel : OsuTestScene
|
||||
public partial class TestSceneModPresetPanel : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -28,7 +28,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModSelectOverlay : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneModSelectOverlay : OsuManualInputManagerTestScene
|
||||
{
|
||||
protected override bool UseFreshStoragePerRun => true;
|
||||
|
||||
@ -584,7 +584,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
private ModPanel getPanelForMod(Type modType)
|
||||
=> modSelectOverlay.ChildrenOfType<ModPanel>().Single(panel => panel.Mod.GetType() == modType);
|
||||
|
||||
private class TestModSelectOverlay : UserModSelectOverlay
|
||||
private partial class TestModSelectOverlay : UserModSelectOverlay
|
||||
{
|
||||
protected override bool ShowPresets => true;
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Rulesets.Osu.Mods;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModSettingsArea : OsuTestScene
|
||||
public partial class TestSceneModSettingsArea : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -22,7 +22,7 @@ using osuTK;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModSwitchSmall : OsuTestScene
|
||||
public partial class TestSceneModSwitchSmall : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestOsu() => createSwitchTestFor(new OsuRuleset());
|
||||
|
@ -22,7 +22,7 @@ using osuTK;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModSwitchTiny : OsuTestScene
|
||||
public partial class TestSceneModSwitchTiny : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestOsu() => createSwitchTestFor(new OsuRuleset());
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneModsEffectDisplay : OsuTestScene
|
||||
public partial class TestSceneModsEffectDisplay : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
@ -53,7 +53,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddUntilStep("colours are correct", () => testDisplay.Container.Colour == colourProvider.Background5 && background.Colour == colours.ForModType(ModType.DifficultyIncrease));
|
||||
}
|
||||
|
||||
private class TestDisplay : ModsEffectDisplay
|
||||
private partial class TestDisplay : ModsEffectDisplay
|
||||
{
|
||||
public Container<Drawable> Container => Content;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneNotificationOverlay : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneNotificationOverlay : OsuManualInputManagerTestScene
|
||||
{
|
||||
private NotificationOverlay notificationOverlay = null!;
|
||||
|
||||
@ -617,12 +617,12 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
notificationOverlay.Post(new SimpleNotification { Text = @"Spam incoming!!" });
|
||||
}
|
||||
|
||||
private class BackgroundNotification : SimpleNotification
|
||||
private partial class BackgroundNotification : SimpleNotification
|
||||
{
|
||||
public override bool IsImportant => false;
|
||||
}
|
||||
|
||||
private class BackgroundProgressNotification : ProgressNotification
|
||||
private partial class BackgroundProgressNotification : ProgressNotification
|
||||
{
|
||||
public override bool IsImportant => false;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Rulesets.Osu;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneNowPlayingOverlay : OsuTestScene
|
||||
public partial class TestSceneNowPlayingOverlay : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private MusicController musicController = new MusicController();
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays.OSD;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneOnScreenDisplay : OsuTestScene
|
||||
public partial class TestSceneOnScreenDisplay : OsuTestScene
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
@ -95,7 +95,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Setting4
|
||||
}
|
||||
|
||||
private class EmptyToast : Toast
|
||||
private partial class EmptyToast : Toast
|
||||
{
|
||||
public EmptyToast()
|
||||
: base("", "", "")
|
||||
@ -103,7 +103,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class LengthyToast : Toast
|
||||
private partial class LengthyToast : Toast
|
||||
{
|
||||
public LengthyToast()
|
||||
: base("Toast with a very very very long text", "A very very very very very very long text also", "A very very very very very long shortcut")
|
||||
@ -111,7 +111,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestOnScreenDisplay : OnScreenDisplay
|
||||
private partial class TestOnScreenDisplay : OnScreenDisplay
|
||||
{
|
||||
protected override void DisplayTemporarily(Drawable toDisplay) => toDisplay.FadeIn().ResizeHeightTo(110);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuAnimatedButton : OsuTestScene
|
||||
public partial class TestSceneOsuAnimatedButton : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestRelativeSized()
|
||||
@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
public class BaseContainer : OsuAnimatedButton
|
||||
public partial class BaseContainer : OsuAnimatedButton
|
||||
{
|
||||
public BaseContainer(string text)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuButton : OsuTestScene
|
||||
public partial class TestSceneOsuButton : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestToggleEnabled()
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuDropdown : ThemeComparisonTestScene
|
||||
public partial class TestSceneOsuDropdown : ThemeComparisonTestScene
|
||||
{
|
||||
protected override Drawable CreateContent() =>
|
||||
new OsuEnumDropdown<BeatmapOnlineStatus>
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuFont : OsuTestScene
|
||||
public partial class TestSceneOsuFont : OsuTestScene
|
||||
{
|
||||
private OsuSpriteText spriteText;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneOsuHoverContainer : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneOsuHoverContainer : OsuManualInputManagerTestScene
|
||||
{
|
||||
private OsuHoverTestContainer hoverContainer;
|
||||
private Box colourContainer;
|
||||
@ -181,7 +181,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
private void doMoveOut()
|
||||
=> InputManager.MoveMouseTo(new Vector2(InputManager.ScreenSpaceDrawQuad.TopLeft.X, InputManager.ScreenSpaceDrawQuad.TopLeft.Y));
|
||||
|
||||
private sealed class OsuHoverTestContainer : OsuHoverContainer
|
||||
private sealed partial class OsuHoverTestContainer : OsuHoverContainer
|
||||
{
|
||||
public static readonly Color4 HOVER_COLOUR = Color4.Red;
|
||||
public static readonly Color4 IDLE_COLOUR = Color4.Green;
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneOsuIcon : OsuTestScene
|
||||
public partial class TestSceneOsuIcon : OsuTestScene
|
||||
{
|
||||
public TestSceneOsuIcon()
|
||||
{
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep("change icons", () => flow.Children.ForEach(i => i.SpriteIcon.Icon = new IconUsage((char)(i.SpriteIcon.Icon.Icon + 1))));
|
||||
}
|
||||
|
||||
private class Icon : Container, IHasTooltip
|
||||
private partial class Icon : Container, IHasTooltip
|
||||
{
|
||||
public LocalisableString TooltipText { get; }
|
||||
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Screens.Menu;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuLogo : OsuTestScene
|
||||
public partial class TestSceneOsuLogo : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestBasic()
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuMarkdownContainer : OsuTestScene
|
||||
public partial class TestSceneOsuMarkdownContainer : OsuTestScene
|
||||
{
|
||||
private OsuMarkdownContainer markdownContainer;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuMenu : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneOsuMenu : OsuManualInputManagerTestScene
|
||||
{
|
||||
private OsuMenu menu;
|
||||
private bool actionPerformed;
|
||||
|
@ -18,7 +18,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuPopover : OsuGridTestScene
|
||||
public partial class TestSceneOsuPopover : OsuGridTestScene
|
||||
{
|
||||
public TestSceneOsuPopover()
|
||||
: base(1, 2)
|
||||
@ -56,7 +56,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class TriangleButtonWithPopover : TriangleButton, IHasPopover
|
||||
private partial class TriangleButtonWithPopover : TriangleButton, IHasPopover
|
||||
{
|
||||
public TriangleButtonWithPopover()
|
||||
{
|
||||
@ -91,7 +91,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class ColourProvidingContainer : Container
|
||||
private partial class ColourProvidingContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider provider { get; }
|
||||
|
@ -16,7 +16,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOsuTextBox : ThemeComparisonTestScene
|
||||
public partial class TestSceneOsuTextBox : ThemeComparisonTestScene
|
||||
{
|
||||
private IEnumerable<OsuNumberBox> numberBoxes => this.ChildrenOfType<OsuNumberBox>();
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOverlayHeader : OsuTestScene
|
||||
public partial class TestSceneOverlayHeader : OsuTestScene
|
||||
{
|
||||
private readonly FillFlowContainer flow;
|
||||
|
||||
@ -70,7 +70,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
private class ColourProvidedContainer : Container
|
||||
private partial class ColourProvidedContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider;
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestNoBackgroundHeader : OverlayHeader
|
||||
private partial class TestNoBackgroundHeader : OverlayHeader
|
||||
{
|
||||
protected override OverlayTitle CreateTitle() => new TestTitle();
|
||||
|
||||
@ -95,14 +95,14 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestNoControlHeader : OverlayHeader
|
||||
private partial class TestNoControlHeader : OverlayHeader
|
||||
{
|
||||
protected override Drawable CreateBackground() => new OverlayHeaderBackground(@"Headers/changelog");
|
||||
|
||||
protected override OverlayTitle CreateTitle() => new TestTitle();
|
||||
}
|
||||
|
||||
private class TestStringTabControlHeader : TabControlOverlayHeader<string>
|
||||
private partial class TestStringTabControlHeader : TabControlOverlayHeader<string>
|
||||
{
|
||||
protected override Drawable CreateBackground() => new OverlayHeaderBackground(@"Headers/news");
|
||||
|
||||
@ -117,7 +117,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestEnumTabControlHeader : TabControlOverlayHeader<TestEnum>
|
||||
private partial class TestEnumTabControlHeader : TabControlOverlayHeader<TestEnum>
|
||||
{
|
||||
public TestEnumTabControlHeader()
|
||||
{
|
||||
@ -136,7 +136,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Tabs
|
||||
}
|
||||
|
||||
private class TestBreadcrumbControlHeader : BreadcrumbControlOverlayHeader
|
||||
private partial class TestBreadcrumbControlHeader : BreadcrumbControlOverlayHeader
|
||||
{
|
||||
protected override OverlayTitle CreateTitle() => new TestTitle();
|
||||
|
||||
@ -150,7 +150,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestTitle : OverlayTitle
|
||||
private partial class TestTitle : OverlayTitle
|
||||
{
|
||||
public TestTitle()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOverlayHeaderBackground : OsuTestScene
|
||||
public partial class TestSceneOverlayHeaderBackground : OsuTestScene
|
||||
{
|
||||
public TestSceneOverlayHeaderBackground()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOverlayRulesetSelector : OsuTestScene
|
||||
public partial class TestSceneOverlayRulesetSelector : OsuTestScene
|
||||
{
|
||||
private readonly OverlayRulesetSelector selector;
|
||||
private readonly Bindable<RulesetInfo> ruleset = new Bindable<RulesetInfo>();
|
||||
@ -44,7 +44,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
private class ColourProvidedContainer : Container
|
||||
private partial class ColourProvidedContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider;
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneOverlayScrollContainer : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneOverlayScrollContainer : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
@ -100,7 +100,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("invocation count is 1", () => invocationCount == 1);
|
||||
}
|
||||
|
||||
private class TestScrollContainer : OverlayScrollContainer
|
||||
private partial class TestScrollContainer : OverlayScrollContainer
|
||||
{
|
||||
public new ScrollToTopButton Button => base.Button;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestScenePageSelector : OsuTestScene
|
||||
public partial class TestScenePageSelector : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider provider { get; } = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Screens.Backgrounds;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneParallaxContainer : OsuTestScene
|
||||
public partial class TestSceneParallaxContainer : OsuTestScene
|
||||
{
|
||||
public TestSceneParallaxContainer()
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestScenePlaylistOverlay : OsuManualInputManagerTestScene
|
||||
public partial class TestScenePlaylistOverlay : OsuManualInputManagerTestScene
|
||||
{
|
||||
protected override bool UseFreshStoragePerRun => true;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestScenePopupDialog : OsuManualInputManagerTestScene
|
||||
public partial class TestScenePopupDialog : OsuManualInputManagerTestScene
|
||||
{
|
||||
private TestPopupDialog dialog;
|
||||
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep("release button", () => InputManager.ReleaseButton(MouseButton.Left));
|
||||
}
|
||||
|
||||
private class TestPopupDialog : PopupDialog
|
||||
private partial class TestPopupDialog : PopupDialog
|
||||
{
|
||||
public PopupDialogDangerousButton DangerousButton { get; }
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneProfileSubsectionHeader : OsuTestScene
|
||||
public partial class TestSceneProfileSubsectionHeader : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Pink);
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Overlays.Rankings;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneRankingsSortTabControl : OsuTestScene
|
||||
public partial class TestSceneRankingsSortTabControl : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Overlays.Settings;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneRoundedButton : ThemeComparisonTestScene
|
||||
public partial class TestSceneRoundedButton : ThemeComparisonTestScene
|
||||
{
|
||||
private readonly BindableBool enabled = new BindableBool(true);
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneSafeAreaHandling : OsuGameTestScene
|
||||
public partial class TestSceneSafeAreaHandling : OsuGameTestScene
|
||||
{
|
||||
private SafeAreaDefiningContainer safeAreaContainer;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneScalingContainer : OsuTestScene
|
||||
public partial class TestSceneScalingContainer : OsuTestScene
|
||||
{
|
||||
private OsuConfigManager osuConfigManager { get; set; }
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneScreenBreadcrumbControl : OsuTestScene
|
||||
public partial class TestSceneScreenBreadcrumbControl : OsuTestScene
|
||||
{
|
||||
private readonly ScreenBreadcrumbControl breadcrumbs;
|
||||
private readonly OsuScreenStack screenStack;
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
private void pushNext() => AddStep(@"push next screen", () => ((TestScreen)screenStack.CurrentScreen).PushNext());
|
||||
private void waitForCurrent() => AddUntilStep("current screen", () => screenStack.CurrentScreen.IsCurrentScreen());
|
||||
|
||||
private abstract class TestScreen : OsuScreen
|
||||
private abstract partial class TestScreen : OsuScreen
|
||||
{
|
||||
protected abstract string NextTitle { get; }
|
||||
protected abstract TestScreen CreateNextScreen();
|
||||
@ -122,14 +122,14 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestScreenOne : TestScreen
|
||||
private partial class TestScreenOne : TestScreen
|
||||
{
|
||||
public override string Title => @"Screen One";
|
||||
protected override string NextTitle => @"Two";
|
||||
protected override TestScreen CreateNextScreen() => new TestScreenTwo();
|
||||
}
|
||||
|
||||
private class TestScreenTwo : TestScreen
|
||||
private partial class TestScreenTwo : TestScreen
|
||||
{
|
||||
public override string Title => @"Screen Two";
|
||||
protected override string NextTitle => @"One";
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneSectionsContainer : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneSectionsContainer : OsuManualInputManagerTestScene
|
||||
{
|
||||
private SectionsContainer<TestSection> container;
|
||||
private float custom;
|
||||
@ -196,7 +196,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
InputManager.ScrollVerticalBy(direction);
|
||||
}
|
||||
|
||||
private class TestSection : TestBox
|
||||
private partial class TestSection : TestBox
|
||||
{
|
||||
public bool Selected
|
||||
{
|
||||
@ -210,7 +210,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class TestBox : Container
|
||||
private partial class TestBox : Container
|
||||
{
|
||||
private readonly Box background;
|
||||
private readonly OsuSpriteText text;
|
||||
|
@ -15,7 +15,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneSettingsCheckbox : OsuTestScene
|
||||
public partial class TestSceneSettingsCheckbox : OsuTestScene
|
||||
{
|
||||
[TestCase]
|
||||
public void TestCheckbox()
|
||||
@ -56,7 +56,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
private class OverlayColourContainer : Container
|
||||
private partial class OverlayColourContainer : Container
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider;
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneSettingsToolboxGroup : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneSettingsToolboxGroup : OsuManualInputManagerTestScene
|
||||
{
|
||||
private SettingsToolboxGroup group;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneShearedButtons : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneShearedButtons : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Input;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneShearedOverlayContainer : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneShearedOverlayContainer : OsuManualInputManagerTestScene
|
||||
{
|
||||
private TestShearedOverlayContainer overlay;
|
||||
|
||||
@ -66,7 +66,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("overlay dismissed", () => overlay.State.Value == Visibility.Hidden);
|
||||
}
|
||||
|
||||
public class TestShearedOverlayContainer : ShearedOverlayContainer
|
||||
public partial class TestShearedOverlayContainer : ShearedOverlayContainer
|
||||
{
|
||||
public TestShearedOverlayContainer()
|
||||
: base(OverlayColourScheme.Green)
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Overlays;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSceneShearedOverlayHeader : OsuTestScene
|
||||
public partial class TestSceneShearedOverlayHeader : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneShearedSearchTextBox : OsuTestScene
|
||||
public partial class TestSceneShearedSearchTextBox : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestAllColourSchemes()
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneSizePreservingSpriteText : OsuGridTestScene
|
||||
public partial class TestSceneSizePreservingSpriteText : OsuGridTestScene
|
||||
{
|
||||
private readonly List<Container> parentContainers = new List<Container>();
|
||||
private readonly List<UprightAspectMaintainingContainer> childContainers = new List<UprightAspectMaintainingContainer>();
|
||||
|
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneStarRatingDisplay : OsuTestScene
|
||||
public partial class TestSceneStarRatingDisplay : OsuTestScene
|
||||
{
|
||||
[TestCase(StarRatingDisplaySize.Regular)]
|
||||
[TestCase(StarRatingDisplaySize.Small)]
|
||||
|
@ -13,7 +13,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneStatefulMenuItem : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneStatefulMenuItem : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestTernaryRadioMenuItem()
|
||||
|
@ -11,7 +11,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneSwitchButton : OsuManualInputManagerTestScene
|
||||
public partial class TestSceneSwitchButton : OsuManualInputManagerTestScene
|
||||
{
|
||||
private SwitchButton switchButton;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
[Description("SongSelect filter control")]
|
||||
public class TestSceneTabControl : OsuTestScene
|
||||
public partial class TestSceneTabControl : OsuTestScene
|
||||
{
|
||||
public TestSceneTabControl()
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneToggleMenuItem : OsuTestScene
|
||||
public partial class TestSceneToggleMenuItem : OsuTestScene
|
||||
{
|
||||
public TestSceneToggleMenuItem()
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Rulesets;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneToolbarRulesetSelector : OsuTestScene
|
||||
public partial class TestSceneToolbarRulesetSelector : OsuTestScene
|
||||
{
|
||||
[Resolved]
|
||||
private RulesetStore rulesets { get; set; }
|
||||
@ -65,7 +65,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddAssert("mode line has moved", () => selector.ModeButtonLine.DrawPosition.X > 0);
|
||||
}
|
||||
|
||||
private class TestSelector : ToolbarRulesetSelector
|
||||
private partial class TestSelector : ToolbarRulesetSelector
|
||||
{
|
||||
public new Drawable ModeButtonLine => base.ModeButtonLine;
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneTwoLayerButton : OsuTestScene
|
||||
public partial class TestSceneTwoLayerButton : OsuTestScene
|
||||
{
|
||||
public TestSceneTwoLayerButton()
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneUpdateableBeatmapBackgroundSprite : OsuTestScene
|
||||
public partial class TestSceneUpdateableBeatmapBackgroundSprite : OsuTestScene
|
||||
{
|
||||
protected override bool UseOnlineAPI => true;
|
||||
|
||||
@ -138,7 +138,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddUntilStep("all unloaded", () => !loadedBackgrounds.Any());
|
||||
}
|
||||
|
||||
private class TestUpdateableBeatmapBackgroundSprite : UpdateableBeatmapBackgroundSprite
|
||||
private partial class TestUpdateableBeatmapBackgroundSprite : UpdateableBeatmapBackgroundSprite
|
||||
{
|
||||
protected override double UnloadDelay => 2000;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user