mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -13,7 +13,7 @@ using osu.Game.Input.Bindings;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class BackButton : VisibilityContainer
|
||||
public partial class BackButton : VisibilityContainer
|
||||
{
|
||||
public Action Action;
|
||||
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
button.FadeOut(400, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public class Receptor : Drawable, IKeyBindingHandler<GlobalAction>
|
||||
public partial class Receptor : Drawable, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
public Action OnBackPressed;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Framework.Graphics.Shapes;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class Bar : Container, IHasAccentColour
|
||||
public partial class Bar : Container, IHasAccentColour
|
||||
{
|
||||
private readonly Box background;
|
||||
private readonly Box bar;
|
||||
|
@ -17,7 +17,7 @@ using System;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class BarGraph : Drawable
|
||||
public partial class BarGraph : Drawable
|
||||
{
|
||||
private const int resize_duration = 250;
|
||||
private const Easing easing = Easing.InOutCubic;
|
||||
|
@ -9,7 +9,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class BasicSearchTextBox : SearchTextBox
|
||||
public partial class BasicSearchTextBox : SearchTextBox
|
||||
{
|
||||
public BasicSearchTextBox()
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class BreadcrumbControl<T> : OsuTabControl<T>
|
||||
public partial class BreadcrumbControl<T> : OsuTabControl<T>
|
||||
{
|
||||
private const float padding = 10;
|
||||
|
||||
@ -44,7 +44,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
public class BreadcrumbTabItem : OsuTabItem, IStateful<Visibility>
|
||||
public partial class BreadcrumbTabItem : OsuTabItem, IStateful<Visibility>
|
||||
{
|
||||
protected virtual float ChevronSize => 10;
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public abstract class CommaSeparatedScoreCounter : RollingCounter<double>
|
||||
public abstract partial class CommaSeparatedScoreCounter : RollingCounter<double>
|
||||
{
|
||||
protected override double RollingDuration => 1000;
|
||||
protected override Easing RollingEasing => Easing.Out;
|
||||
|
@ -7,7 +7,7 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class DangerousTriangleButton : TriangleButton
|
||||
public partial class DangerousTriangleButton : TriangleButton
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class DialogButton : OsuClickableContainer, IStateful<SelectionState>
|
||||
public partial class DialogButton : OsuClickableContainer, IStateful<SelectionState>
|
||||
{
|
||||
private const float idle_width = 0.8f;
|
||||
private const float hover_width = 0.9f;
|
||||
|
@ -12,7 +12,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class DownloadButton : GrayButton
|
||||
public partial class DownloadButton : GrayButton
|
||||
{
|
||||
[Resolved]
|
||||
private OsuColour colours { get; set; }
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class DrawableOsuMenuItem : Menu.DrawableMenuItem
|
||||
public partial class DrawableOsuMenuItem : Menu.DrawableMenuItem
|
||||
{
|
||||
public const int MARGIN_HORIZONTAL = 17;
|
||||
public const int MARGIN_VERTICAL = 4;
|
||||
@ -95,7 +95,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
protected sealed override Drawable CreateContent() => text = CreateTextContainer();
|
||||
protected virtual TextContainer CreateTextContainer() => new TextContainer();
|
||||
|
||||
protected class TextContainer : Container, IHasText
|
||||
protected partial class TextContainer : Container, IHasText
|
||||
{
|
||||
public LocalisableString Text
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class DrawableStatefulMenuItem : DrawableOsuMenuItem
|
||||
public partial class DrawableStatefulMenuItem : DrawableOsuMenuItem
|
||||
{
|
||||
protected new StatefulMenuItem Item => (StatefulMenuItem)base.Item;
|
||||
|
||||
@ -21,7 +21,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override TextContainer CreateTextContainer() => new ToggleTextContainer(Item);
|
||||
|
||||
private class ToggleTextContainer : TextContainer
|
||||
private partial class ToggleTextContainer : TextContainer
|
||||
{
|
||||
private readonly StatefulMenuItem menuItem;
|
||||
private readonly Bindable<object> state;
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// An <see cref="IExpandable"/> implementation for the UI slider bar control.
|
||||
/// </summary>
|
||||
public class ExpandableSlider<T, TSlider> : CompositeDrawable, IExpandable, IHasCurrentValue<T>
|
||||
public partial class ExpandableSlider<T, TSlider> : CompositeDrawable, IExpandable, IHasCurrentValue<T>
|
||||
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||
where TSlider : OsuSliderBar<T>, new()
|
||||
{
|
||||
@ -130,7 +130,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// An <see cref="IExpandable"/> implementation for the UI slider bar control.
|
||||
/// </summary>
|
||||
public class ExpandableSlider<T> : ExpandableSlider<T, OsuSliderBar<T>>
|
||||
public partial class ExpandableSlider<T> : ExpandableSlider<T, OsuSliderBar<T>>
|
||||
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||
{
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// A rounded bar which can be expanded or collapsed.
|
||||
/// Generally used for tabs or breadcrumbs.
|
||||
/// </summary>
|
||||
public class ExpandingBar : Circle
|
||||
public partial class ExpandingBar : Circle
|
||||
{
|
||||
private bool expanded = true;
|
||||
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ExternalLinkButton : CompositeDrawable, IHasTooltip, IHasContextMenu
|
||||
public partial class ExternalLinkButton : CompositeDrawable, IHasTooltip, IHasContextMenu
|
||||
{
|
||||
public string? Link { get; set; }
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class FPSCounter : VisibilityContainer, IHasCustomTooltip
|
||||
public partial class FPSCounter : VisibilityContainer, IHasCustomTooltip
|
||||
{
|
||||
private OsuSpriteText counterUpdateFrameTime = null!;
|
||||
private OsuSpriteText counterDrawFPS = null!;
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class FPSCounterTooltip : CompositeDrawable, ITooltip
|
||||
public partial class FPSCounterTooltip : CompositeDrawable, ITooltip
|
||||
{
|
||||
private OsuTextFlowContainer textFlow = null!;
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A textbox which holds focus eagerly.
|
||||
/// </summary>
|
||||
public class FocusedTextBox : OsuTextBox, IKeyBindingHandler<GlobalAction>
|
||||
public partial class FocusedTextBox : OsuTextBox, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
private bool focus;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Graphics.Colour;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public abstract class GradientLineTabControl<TModel> : PageTabControl<TModel>
|
||||
public abstract partial class GradientLineTabControl<TModel> : PageTabControl<TModel>
|
||||
{
|
||||
protected Color4 LineColour
|
||||
{
|
||||
@ -46,7 +46,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
Spacing = new Vector2(20, 0),
|
||||
};
|
||||
|
||||
private class GradientLine : GridContainer
|
||||
private partial class GradientLine : GridContainer
|
||||
{
|
||||
public GradientLine()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class GrayButton : OsuAnimatedButton
|
||||
public partial class GrayButton : OsuAnimatedButton
|
||||
{
|
||||
protected SpriteIcon Icon { get; private set; }
|
||||
protected Box Background { get; private set; }
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// The history of committed text can be navigated using up/down arrows.
|
||||
/// This resembles the operation of command-line terminals.
|
||||
/// </summary>
|
||||
public class HistoryTextBox : FocusedTextBox
|
||||
public partial class HistoryTextBox : FocusedTextBox
|
||||
{
|
||||
private readonly LimitedCapacityQueue<string> messageHistory;
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// Adds hover and click sounds to a drawable.
|
||||
/// Does not draw anything.
|
||||
/// </summary>
|
||||
public class HoverClickSounds : HoverSounds
|
||||
public partial class HoverClickSounds : HoverSounds
|
||||
{
|
||||
public Bindable<bool> Enabled = new Bindable<bool>(true);
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// Handles debouncing hover sounds at a global level to ensure the effects are not overwhelming.
|
||||
/// </summary>
|
||||
public abstract class HoverSampleDebounceComponent : CompositeDrawable
|
||||
public abstract partial class HoverSampleDebounceComponent : CompositeDrawable
|
||||
{
|
||||
private Bindable<double?> lastPlaybackTime;
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// Adds hover sounds to a drawable.
|
||||
/// Does not draw anything.
|
||||
/// </summary>
|
||||
public class HoverSounds : HoverSampleDebounceComponent
|
||||
public partial class HoverSounds : HoverSampleDebounceComponent
|
||||
{
|
||||
private Sample sampleHover;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Framework.Input.Events;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class IconButton : OsuAnimatedButton
|
||||
public partial class IconButton : OsuAnimatedButton
|
||||
{
|
||||
public const float DEFAULT_BUTTON_SIZE = 30;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class LineGraph : Container
|
||||
public partial class LineGraph : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// Manually set the max value, otherwise <see cref="Enumerable.Max(IEnumerable{float})"/> will be used.
|
||||
|
@ -12,7 +12,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public abstract class LoadingButton : OsuHoverContainer
|
||||
public abstract partial class LoadingButton : OsuHoverContainer
|
||||
{
|
||||
private bool isLoading;
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// Also optionally dims target elements.
|
||||
/// Useful for disabling all elements in a form and showing we are waiting on a response, for instance.
|
||||
/// </summary>
|
||||
public class LoadingLayer : LoadingSpinner
|
||||
public partial class LoadingLayer : LoadingSpinner
|
||||
{
|
||||
private readonly bool blockInput;
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A loading spinner.
|
||||
/// </summary>
|
||||
public class LoadingSpinner : VisibilityContainer
|
||||
public partial class LoadingSpinner : VisibilityContainer
|
||||
{
|
||||
private readonly SpriteIcon spinner;
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class Nub : Container, IHasCurrentValue<bool>, IHasAccentColour
|
||||
public partial class Nub : Container, IHasCurrentValue<bool>, IHasAccentColour
|
||||
{
|
||||
public const float HEIGHT = 15;
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// Highlight on hover, bounce on click.
|
||||
/// </summary>
|
||||
public class OsuAnimatedButton : OsuClickableContainer
|
||||
public partial class OsuAnimatedButton : OsuClickableContainer
|
||||
{
|
||||
/// <summary>
|
||||
/// The colour that should be flashed when the <see cref="OsuAnimatedButton"/> is clicked.
|
||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A button with added default sound effects.
|
||||
/// </summary>
|
||||
public class OsuButton : Button
|
||||
public partial class OsuButton : Button
|
||||
{
|
||||
public LocalisableString Text
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuCheckbox : Checkbox
|
||||
public partial class OsuCheckbox : Checkbox
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether to play sounds when the state changes as a result of user interaction.
|
||||
|
@ -12,7 +12,7 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuContextMenu : OsuMenu
|
||||
public partial class OsuContextMenu : OsuMenu
|
||||
{
|
||||
private const int fade_duration = 250;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuContextMenuSamples : Component
|
||||
public partial class OsuContextMenuSamples : Component
|
||||
{
|
||||
private Sample sampleClick;
|
||||
private Sample sampleOpen;
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuDropdown<T> : Dropdown<T>
|
||||
public partial class OsuDropdown<T> : Dropdown<T>
|
||||
{
|
||||
private const float corner_radius = 5;
|
||||
|
||||
@ -32,7 +32,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
#region OsuDropdownMenu
|
||||
|
||||
protected class OsuDropdownMenu : DropdownMenu, IKeyBindingHandler<GlobalAction>
|
||||
protected partial class OsuDropdownMenu : DropdownMenu, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
public override bool HandleNonPositionalInput => State == MenuState.Open;
|
||||
|
||||
@ -135,7 +135,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
#region DrawableOsuDropdownMenuItem
|
||||
|
||||
public class DrawableOsuDropdownMenuItem : DrawableDropdownMenuItem
|
||||
public partial class DrawableOsuDropdownMenuItem : DrawableDropdownMenuItem
|
||||
{
|
||||
// IsHovered is used
|
||||
public override bool HandlePositionalInput => true;
|
||||
@ -203,7 +203,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override Drawable CreateContent() => new Content();
|
||||
|
||||
protected new class Content : CompositeDrawable, IHasText
|
||||
protected new partial class Content : CompositeDrawable, IHasText
|
||||
{
|
||||
public LocalisableString Text
|
||||
{
|
||||
@ -297,7 +297,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
#endregion
|
||||
|
||||
public class OsuDropdownHeader : DropdownHeader
|
||||
public partial class OsuDropdownHeader : DropdownHeader
|
||||
{
|
||||
protected readonly SpriteText Text;
|
||||
|
||||
|
@ -7,7 +7,7 @@ using System;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuEnumDropdown<T> : OsuDropdown<T>
|
||||
public partial class OsuEnumDropdown<T> : OsuDropdown<T>
|
||||
where T : struct, Enum
|
||||
{
|
||||
public OsuEnumDropdown()
|
||||
|
@ -16,7 +16,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuMenu : Menu
|
||||
public partial class OsuMenu : Menu
|
||||
{
|
||||
private Sample sampleOpen;
|
||||
private Sample sampleClose;
|
||||
|
@ -7,7 +7,7 @@ using osu.Framework.Extensions;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuNumberBox : OsuTextBox
|
||||
public partial class OsuNumberBox : OsuTextBox
|
||||
{
|
||||
protected override bool AllowIme => false;
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osu.Framework.Platform;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuPasswordTextBox : OsuTextBox, ISuppressKeyEventLogging
|
||||
public partial class OsuPasswordTextBox : OsuTextBox, ISuppressKeyEventLogging
|
||||
{
|
||||
protected override Drawable GetDrawableCharacter(char c) => new FallingDownContainer
|
||||
{
|
||||
@ -73,7 +73,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
private void updateCapsWarning(bool visible) => warning.FadeTo(visible ? 1 : 0, 250, Easing.OutQuint);
|
||||
|
||||
public class PasswordMaskChar : Container
|
||||
public partial class PasswordMaskChar : Container
|
||||
{
|
||||
private readonly CircularContainer circle;
|
||||
|
||||
@ -110,7 +110,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class CapsWarning : SpriteIcon, IHasTooltip
|
||||
private partial class CapsWarning : SpriteIcon, IHasTooltip
|
||||
{
|
||||
public LocalisableString TooltipText => "caps lock is active";
|
||||
|
||||
|
@ -25,7 +25,7 @@ using osu.Game.Utils;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuSliderBar<T> : SliderBar<T>, IHasTooltip, IHasAccentColour
|
||||
public partial class OsuSliderBar<T> : SliderBar<T>, IHasTooltip, IHasAccentColour
|
||||
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -22,7 +22,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuTabControl<T> : TabControl<T>
|
||||
public partial class OsuTabControl<T> : TabControl<T>
|
||||
{
|
||||
private Color4 accentColour;
|
||||
|
||||
@ -98,7 +98,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
strip.Width = Interpolation.ValueAt(Math.Clamp(Clock.ElapsedFrameTime, 0, 1000), strip.Width, StripWidth, 0, 500, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public class OsuTabItem : TabItem<T>, IHasAccentColour
|
||||
public partial class OsuTabItem : TabItem<T>, IHasAccentColour
|
||||
{
|
||||
protected readonly SpriteText Text;
|
||||
protected readonly Box Bar;
|
||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A Checkbox styled to be placed in line with an <see cref="OsuTabControl{T}"/>
|
||||
/// </summary>
|
||||
public class OsuTabControlCheckbox : Checkbox
|
||||
public partial class OsuTabControlCheckbox : Checkbox
|
||||
{
|
||||
private readonly Box box;
|
||||
private readonly SpriteText text;
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Input.Events;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuTabDropdown<T> : OsuDropdown<T>, IHasAccentColour
|
||||
public partial class OsuTabDropdown<T> : OsuDropdown<T>, IHasAccentColour
|
||||
{
|
||||
private Color4 accentColour;
|
||||
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
tabDropdownHeader.AccentColour = accentColour;
|
||||
}
|
||||
|
||||
private class OsuTabDropdownMenu : OsuDropdownMenu
|
||||
private partial class OsuTabDropdownMenu : OsuDropdownMenu
|
||||
{
|
||||
public OsuTabDropdownMenu()
|
||||
{
|
||||
@ -73,7 +73,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override DrawableDropdownMenuItem CreateDrawableDropdownMenuItem(MenuItem item) => new DrawableOsuTabDropdownMenuItem(item);
|
||||
|
||||
private class DrawableOsuTabDropdownMenuItem : DrawableOsuDropdownMenuItem
|
||||
private partial class DrawableOsuTabDropdownMenuItem : DrawableOsuDropdownMenuItem
|
||||
{
|
||||
public DrawableOsuTabDropdownMenuItem(MenuItem item)
|
||||
: base(item)
|
||||
@ -83,7 +83,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
protected class OsuTabDropdownHeader : OsuDropdownHeader, IHasAccentColour
|
||||
protected partial class OsuTabDropdownHeader : OsuDropdownHeader, IHasAccentColour
|
||||
{
|
||||
private Color4 accentColour;
|
||||
|
||||
|
@ -24,7 +24,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class OsuTextBox : BasicTextBox
|
||||
public partial class OsuTextBox : BasicTextBox
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether to allow playing a different samples based on the type of character.
|
||||
@ -302,7 +302,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
sampleLastPlaybackTime = Time.Current;
|
||||
});
|
||||
|
||||
private class OsuCaret : Caret
|
||||
private partial class OsuCaret : Caret
|
||||
{
|
||||
private const float caret_move_time = 60;
|
||||
|
||||
@ -349,7 +349,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private class CaretBeatSyncedContainer : BeatSyncedContainer
|
||||
private partial class CaretBeatSyncedContainer : BeatSyncedContainer
|
||||
{
|
||||
private bool hasSelection;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
internal class PageEllipsis : CompositeDrawable
|
||||
internal partial class PageEllipsis : CompositeDrawable
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OverlayColourProvider colourProvider)
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
public class PageSelector : CompositeDrawable
|
||||
public partial class PageSelector : CompositeDrawable
|
||||
{
|
||||
public readonly BindableInt CurrentPage = new BindableInt { MinValue = 0, };
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
public abstract class PageSelectorButton : OsuClickableContainer
|
||||
public abstract partial class PageSelectorButton : OsuClickableContainer
|
||||
{
|
||||
protected const int DURATION = 200;
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
public class PageSelectorPageButton : PageSelectorButton
|
||||
public partial class PageSelectorPageButton : PageSelectorButton
|
||||
{
|
||||
private readonly BindableBool selected = new BindableBool();
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
{
|
||||
public class PageSelectorPrevNextButton : PageSelectorButton
|
||||
public partial class PageSelectorPrevNextButton : PageSelectorButton
|
||||
{
|
||||
private readonly bool rightAligned;
|
||||
private readonly LocalisableString text;
|
||||
|
@ -18,7 +18,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class PageTabControl<T> : OsuTabControl<T>
|
||||
public partial class PageTabControl<T> : OsuTabControl<T>
|
||||
{
|
||||
protected override TabItem<T> CreateTabItem(T value) => new PageTabItem(value);
|
||||
|
||||
@ -33,7 +33,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
AccentColour = colours.Yellow;
|
||||
}
|
||||
|
||||
public class PageTabItem : TabItem<T>, IHasAccentColour
|
||||
public partial class PageTabItem : TabItem<T>, IHasAccentColour
|
||||
{
|
||||
private const float transition_duration = 100;
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// Used as an accuracy counter. Represented visually as a percentage.
|
||||
/// </summary>
|
||||
public class PercentageCounter : RollingCounter<double>
|
||||
public partial class PercentageCounter : RollingCounter<double>
|
||||
{
|
||||
protected override double RollingDuration => 750;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ProgressBar : SliderBar<double>
|
||||
public partial class ProgressBar : SliderBar<double>
|
||||
{
|
||||
public Action<double> OnSeek;
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osu.Framework.Localisation;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public abstract class RollingCounter<T> : Container, IHasCurrentValue<T>
|
||||
public abstract partial class RollingCounter<T> : Container, IHasCurrentValue<T>
|
||||
where T : struct, IEquatable<T>
|
||||
{
|
||||
private readonly BindableWithCurrent<T> current = new BindableWithCurrent<T>();
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public abstract class ScoreCounter : RollingCounter<long>
|
||||
public abstract partial class ScoreCounter : RollingCounter<long>
|
||||
{
|
||||
protected override double RollingDuration => 1000;
|
||||
protected override Easing RollingEasing => Easing.Out;
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A <see cref="BreadcrumbControl{IScreen}"/> which follows the active screen (and allows navigation) in a <see cref="Screen"/> stack.
|
||||
/// </summary>
|
||||
public class ScreenBreadcrumbControl : BreadcrumbControl<IScreen>
|
||||
public partial class ScreenBreadcrumbControl : BreadcrumbControl<IScreen>
|
||||
{
|
||||
public ScreenBreadcrumbControl(ScreenStack stack)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class SearchTextBox : FocusedTextBox
|
||||
public partial class SearchTextBox : FocusedTextBox
|
||||
{
|
||||
protected virtual bool AllowCommit => false;
|
||||
|
||||
|
@ -8,7 +8,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A <see cref="SearchTextBox"/> which does not handle left/right arrow keys for seeking.
|
||||
/// </summary>
|
||||
public class SeekLimitedSearchTextBox : BasicSearchTextBox
|
||||
public partial class SeekLimitedSearchTextBox : BasicSearchTextBox
|
||||
{
|
||||
public override bool HandleLeftRightArrows => false;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ShearedButton : OsuClickableContainer
|
||||
public partial class ShearedButton : OsuClickableContainer
|
||||
{
|
||||
public LocalisableString Text
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ShearedOverlayHeader : CompositeDrawable
|
||||
public partial class ShearedOverlayHeader : CompositeDrawable
|
||||
{
|
||||
public const float HEIGHT = main_area_height + 2 * corner_radius;
|
||||
|
||||
|
@ -18,7 +18,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ShearedSearchTextBox : CompositeDrawable, IHasCurrentValue<string>
|
||||
public partial class ShearedSearchTextBox : CompositeDrawable, IHasCurrentValue<string>
|
||||
{
|
||||
private const float corner_radius = 7;
|
||||
|
||||
@ -95,7 +95,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
public override bool HandleNonPositionalInput => textBox.HandleNonPositionalInput;
|
||||
|
||||
private class InnerSearchTextBox : SearchTextBox
|
||||
private partial class InnerSearchTextBox : SearchTextBox
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OverlayColourProvider colourProvider)
|
||||
@ -112,7 +112,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override SpriteText CreatePlaceholder() => new SearchPlaceholder();
|
||||
|
||||
internal class SearchPlaceholder : SpriteText
|
||||
internal partial class SearchPlaceholder : SpriteText
|
||||
{
|
||||
public override void Show()
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ using osu.Framework.Bindables;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ShearedToggleButton : ShearedButton
|
||||
public partial class ShearedToggleButton : ShearedButton
|
||||
{
|
||||
private Sample? sampleClick;
|
||||
private Sample? sampleOff;
|
||||
|
@ -19,7 +19,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class ShowMoreButton : LoadingButton
|
||||
public partial class ShowMoreButton : LoadingButton
|
||||
{
|
||||
private const int duration = 200;
|
||||
|
||||
@ -115,7 +115,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
rightIcon.SetHoveredState(false);
|
||||
}
|
||||
|
||||
public class ChevronIcon : SpriteIcon
|
||||
public partial class ChevronIcon : SpriteIcon
|
||||
{
|
||||
[Resolved]
|
||||
private OverlayColourProvider colourProvider { get; set; }
|
||||
|
@ -9,12 +9,12 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class SlimEnumDropdown<T> : OsuEnumDropdown<T>
|
||||
public partial class SlimEnumDropdown<T> : OsuEnumDropdown<T>
|
||||
where T : struct, Enum
|
||||
{
|
||||
protected override DropdownHeader CreateHeader() => new SlimDropdownHeader();
|
||||
|
||||
private class SlimDropdownHeader : OsuDropdownHeader
|
||||
private partial class SlimDropdownHeader : OsuDropdownHeader
|
||||
{
|
||||
public SlimDropdownHeader()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class StarCounter : Container
|
||||
public partial class StarCounter : Container
|
||||
{
|
||||
private readonly FillFlowContainer<Star> stars;
|
||||
|
||||
@ -120,7 +120,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
public class DefaultStar : Star
|
||||
public partial class DefaultStar : Star
|
||||
{
|
||||
private const double scaling_duration = 1000;
|
||||
|
||||
@ -156,7 +156,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class Star : CompositeDrawable
|
||||
public abstract partial class Star : CompositeDrawable
|
||||
{
|
||||
public abstract void DisplayAt(float scale);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A slider bar which displays a millisecond time value.
|
||||
/// </summary>
|
||||
public class TimeSlider : OsuSliderBar<double>
|
||||
public partial class TimeSlider : OsuSliderBar<double>
|
||||
{
|
||||
public override LocalisableString TooltipText => $"{Current.Value:N0} ms";
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A button with moving triangles in the background.
|
||||
/// </summary>
|
||||
public class TriangleButton : OsuButton, IFilterable
|
||||
public partial class TriangleButton : OsuButton, IFilterable
|
||||
{
|
||||
protected Triangles Triangles { get; private set; }
|
||||
|
||||
|
@ -22,7 +22,7 @@ using osu.Game.Screens.Select;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class TwoLayerButton : OsuClickableContainer
|
||||
public partial class TwoLayerButton : OsuClickableContainer
|
||||
{
|
||||
private readonly BouncingIcon bouncingIcon;
|
||||
|
||||
@ -207,7 +207,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
return base.OnClick(e);
|
||||
}
|
||||
|
||||
private class BouncingIcon : BeatSyncedContainer
|
||||
private partial class BouncingIcon : BeatSyncedContainer
|
||||
{
|
||||
private const double beat_in_time = 60;
|
||||
|
||||
|
Reference in New Issue
Block a user