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
@ -24,7 +24,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
/// <summary>
|
||||
/// A component which displays a colour along with related description text.
|
||||
/// </summary>
|
||||
public class ColourDisplay : CompositeDrawable, IHasCurrentValue<Colour4>
|
||||
public partial class ColourDisplay : CompositeDrawable, IHasCurrentValue<Colour4>
|
||||
{
|
||||
/// <summary>
|
||||
/// Invoked when the user has requested the colour corresponding to this <see cref="ColourDisplay"/>
|
||||
@ -86,7 +86,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
};
|
||||
}
|
||||
|
||||
private class ColourCircle : OsuClickableContainer, IHasPopover, IHasContextMenu
|
||||
private partial class ColourCircle : OsuClickableContainer, IHasPopover, IHasContextMenu
|
||||
{
|
||||
public Bindable<Colour4> Current { get; } = new Bindable<Colour4>();
|
||||
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
/// <summary>
|
||||
/// A component which displays a collection of colours in individual <see cref="ColourDisplay"/>s.
|
||||
/// </summary>
|
||||
public class ColourPalette : CompositeDrawable
|
||||
public partial class ColourPalette : CompositeDrawable
|
||||
{
|
||||
public BindableList<Colour4> Colours { get; } = new BindableList<Colour4>();
|
||||
|
||||
@ -119,7 +119,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
}
|
||||
}
|
||||
|
||||
internal class AddColourButton : CompositeDrawable
|
||||
internal partial class AddColourButton : CompositeDrawable
|
||||
{
|
||||
public Action Action
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ using osu.Framework.Localisation;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledColourPalette : LabelledDrawable<ColourPalette>
|
||||
public partial class LabelledColourPalette : LabelledDrawable<ColourPalette>
|
||||
{
|
||||
public LabelledColourPalette()
|
||||
: base(true)
|
||||
|
@ -9,7 +9,7 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public abstract class LabelledComponent<TDrawable, TValue> : LabelledDrawable<TDrawable>, IHasCurrentValue<TValue>
|
||||
public abstract partial class LabelledComponent<TDrawable, TValue> : LabelledDrawable<TDrawable>, IHasCurrentValue<TValue>
|
||||
where TDrawable : Drawable, IHasCurrentValue<TValue>
|
||||
{
|
||||
protected LabelledComponent(bool padded)
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public abstract class LabelledDrawable<T> : CompositeDrawable
|
||||
public abstract partial class LabelledDrawable<T> : CompositeDrawable
|
||||
where T : Drawable
|
||||
{
|
||||
private float? fixedLabelWidth;
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledDropdown<TItem> : LabelledComponent<OsuDropdown<TItem>, TItem>
|
||||
public partial class LabelledDropdown<TItem> : LabelledComponent<OsuDropdown<TItem>, TItem>
|
||||
{
|
||||
public LabelledDropdown()
|
||||
: base(true)
|
||||
|
@ -8,7 +8,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledEnumDropdown<TEnum> : LabelledDropdown<TEnum>
|
||||
public partial class LabelledEnumDropdown<TEnum> : LabelledDropdown<TEnum>
|
||||
where TEnum : struct, Enum
|
||||
{
|
||||
protected override OsuDropdown<TEnum> CreateDropdown() => new OsuEnumDropdown<TEnum>();
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledNumberBox : LabelledTextBox
|
||||
public partial class LabelledNumberBox : LabelledTextBox
|
||||
{
|
||||
protected override OsuTextBox CreateTextBox() => new OsuNumberBox();
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Overlays.Settings;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledSliderBar<TNumber> : LabelledComponent<SettingsSlider<TNumber>, TNumber>
|
||||
public partial class LabelledSliderBar<TNumber> : LabelledComponent<SettingsSlider<TNumber>, TNumber>
|
||||
where TNumber : struct, IEquatable<TNumber>, IComparable<TNumber>, IConvertible
|
||||
{
|
||||
public LabelledSliderBar()
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledSwitchButton : LabelledComponent<SwitchButton, bool>
|
||||
public partial class LabelledSwitchButton : LabelledComponent<SwitchButton, bool>
|
||||
{
|
||||
public LabelledSwitchButton()
|
||||
: base(true)
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class LabelledTextBox : LabelledComponent<OsuTextBox, string>
|
||||
public partial class LabelledTextBox : LabelledComponent<OsuTextBox, string>
|
||||
{
|
||||
public event TextBox.OnCommitHandler OnCommit;
|
||||
|
||||
|
@ -7,7 +7,7 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuColourPicker : ColourPicker
|
||||
public partial class OsuColourPicker : ColourPicker
|
||||
{
|
||||
public OsuColourPicker()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuDirectorySelector : DirectorySelector
|
||||
public partial class OsuDirectorySelector : DirectorySelector
|
||||
{
|
||||
public const float ITEM_HEIGHT = 20;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
internal class OsuDirectorySelectorBreadcrumbDisplay : DirectorySelectorBreadcrumbDisplay
|
||||
internal partial class OsuDirectorySelectorBreadcrumbDisplay : DirectorySelectorBreadcrumbDisplay
|
||||
{
|
||||
protected override Drawable CreateCaption() => new OsuSpriteText
|
||||
{
|
||||
@ -30,7 +30,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
Padding = new MarginPadding(15);
|
||||
}
|
||||
|
||||
private class OsuBreadcrumbDisplayComputer : OsuBreadcrumbDisplayDirectory
|
||||
private partial class OsuBreadcrumbDisplayComputer : OsuBreadcrumbDisplayDirectory
|
||||
{
|
||||
protected override IconUsage? Icon => null;
|
||||
|
||||
@ -40,7 +40,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
}
|
||||
}
|
||||
|
||||
private class OsuBreadcrumbDisplayDirectory : OsuDirectorySelectorDirectory
|
||||
private partial class OsuBreadcrumbDisplayDirectory : OsuDirectorySelectorDirectory
|
||||
{
|
||||
public OsuBreadcrumbDisplayDirectory(DirectoryInfo directory, string displayName = null)
|
||||
: base(directory, displayName)
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
internal class OsuDirectorySelectorDirectory : DirectorySelectorDirectory
|
||||
internal partial class OsuDirectorySelectorDirectory : DirectorySelectorDirectory
|
||||
{
|
||||
public OsuDirectorySelectorDirectory(DirectoryInfo directory, string displayName = null)
|
||||
: base(directory, displayName)
|
||||
@ -45,7 +45,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
? FontAwesome.Solid.Database
|
||||
: FontAwesome.Regular.Folder;
|
||||
|
||||
internal class Background : CompositeDrawable
|
||||
internal partial class Background : CompositeDrawable
|
||||
{
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(OverlayColourProvider overlayColourProvider, OsuColour colours)
|
||||
|
@ -10,7 +10,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
internal class OsuDirectorySelectorHiddenToggle : OsuCheckbox
|
||||
internal partial class OsuDirectorySelectorHiddenToggle : OsuCheckbox
|
||||
{
|
||||
public OsuDirectorySelectorHiddenToggle()
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
internal class OsuDirectorySelectorParentDirectory : OsuDirectorySelectorDirectory
|
||||
internal partial class OsuDirectorySelectorParentDirectory : OsuDirectorySelectorDirectory
|
||||
{
|
||||
protected override IconUsage? Icon => FontAwesome.Solid.Folder;
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuFileSelector : FileSelector
|
||||
public partial class OsuFileSelector : FileSelector
|
||||
{
|
||||
public OsuFileSelector(string initialPath = null, string[] validFileExtensions = null)
|
||||
: base(initialPath, validFileExtensions)
|
||||
@ -43,7 +43,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
|
||||
protected override void NotifySelectionError() => this.FlashColour(Colour4.Red, 300);
|
||||
|
||||
protected class OsuDirectoryListingFile : DirectoryListingFile
|
||||
protected partial class OsuDirectoryListingFile : DirectoryListingFile
|
||||
{
|
||||
public OsuDirectoryListingFile(FileInfo file)
|
||||
: base(file)
|
||||
|
@ -16,7 +16,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuHSVColourPicker : HSVColourPicker
|
||||
public partial class OsuHSVColourPicker : HSVColourPicker
|
||||
{
|
||||
private const float spacing = 10;
|
||||
private const float corner_radius = 10;
|
||||
@ -42,7 +42,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
Colour = Colour4.Black.Opacity(0.3f)
|
||||
};
|
||||
|
||||
private class OsuHueSelector : HueSelector
|
||||
private partial class OsuHueSelector : HueSelector
|
||||
{
|
||||
public OsuHueSelector()
|
||||
{
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
|
||||
protected override Drawable CreateSliderNub() => new SliderNub(this);
|
||||
|
||||
private class SliderNub : CompositeDrawable
|
||||
private partial class SliderNub : CompositeDrawable
|
||||
{
|
||||
private readonly Bindable<float> hue;
|
||||
private readonly Box fill;
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
}
|
||||
}
|
||||
|
||||
private class OsuSaturationValueSelector : SaturationValueSelector
|
||||
private partial class OsuSaturationValueSelector : SaturationValueSelector
|
||||
{
|
||||
public OsuSaturationValueSelector()
|
||||
{
|
||||
@ -95,7 +95,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
|
||||
protected override Marker CreateMarker() => new OsuMarker();
|
||||
|
||||
private class OsuMarker : Marker
|
||||
private partial class OsuMarker : Marker
|
||||
{
|
||||
private readonly Box previewBox;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuHexColourPicker : HexColourPicker
|
||||
public partial class OsuHexColourPicker : HexColourPicker
|
||||
{
|
||||
public OsuHexColourPicker()
|
||||
{
|
||||
@ -31,7 +31,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
protected override TextBox CreateHexCodeTextBox() => new OsuTextBox();
|
||||
protected override ColourPreview CreateColourPreview() => new OsuColourPreview();
|
||||
|
||||
private class OsuColourPreview : ColourPreview
|
||||
private partial class OsuColourPreview : ColourPreview
|
||||
{
|
||||
private readonly Box preview;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuPopover : Popover, IKeyBindingHandler<GlobalAction>
|
||||
public partial class OsuPopover : Popover, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
private const float fade_duration = 250;
|
||||
private const double scale_duration = 500;
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class RoundedButton : OsuButton, IFilterable
|
||||
public partial class RoundedButton : OsuButton, IFilterable
|
||||
{
|
||||
public override float Height
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class SwitchButton : Checkbox
|
||||
public partial class SwitchButton : Checkbox
|
||||
{
|
||||
private const float border_thickness = 4.5f;
|
||||
private const float padding = 1.25f;
|
||||
@ -128,7 +128,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
circularContainer.TransformBorderTo((Current.Value ? enabledColour : disabledColour).Lighten(IsHovered ? 0.3f : 0));
|
||||
}
|
||||
|
||||
private class CircularBorderContainer : CircularContainer
|
||||
private partial class CircularBorderContainer : CircularContainer
|
||||
{
|
||||
public void TransformBorderTo(ColourInfo colour)
|
||||
=> this.TransformTo(nameof(BorderColour), colour, 250, Easing.OutQuint);
|
||||
|
Reference in New Issue
Block a user