mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -11,7 +11,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class ColoursSection : SetupSection
|
||||
internal partial class ColoursSection : SetupSection
|
||||
{
|
||||
public override LocalisableString Title => EditorSetupStrings.ColoursHeader;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class DesignSection : SetupSection
|
||||
internal partial class DesignSection : SetupSection
|
||||
{
|
||||
protected LabelledSwitchButton EnableCountdown;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class DifficultySection : SetupSection
|
||||
internal partial class DifficultySection : SetupSection
|
||||
{
|
||||
private LabelledSliderBar<float> circleSizeSlider;
|
||||
private LabelledSliderBar<float> healthDrainSlider;
|
||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
/// A labelled drawable displaying file chooser on click, with placeholder text support.
|
||||
/// todo: this should probably not use PopoverTextBox just to display placeholder text, but is the best way for now.
|
||||
/// </summary>
|
||||
internal class LabelledFileChooser : LabelledDrawable<LabelledTextBoxWithPopover.PopoverTextBox>, IHasCurrentValue<FileInfo?>, ICanAcceptFiles, IHasPopover
|
||||
internal partial class LabelledFileChooser : LabelledDrawable<LabelledTextBoxWithPopover.PopoverTextBox>, IHasCurrentValue<FileInfo?>, ICanAcceptFiles, IHasPopover
|
||||
{
|
||||
private readonly string[] handledExtensions;
|
||||
|
||||
@ -112,7 +112,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
|
||||
public Popover GetPopover() => new FileChooserPopover(handledExtensions, Current, initialChooserPath);
|
||||
|
||||
private class FileChooserPopover : OsuPopover
|
||||
private partial class FileChooserPopover : OsuPopover
|
||||
{
|
||||
public FileChooserPopover(string[] handledExtensions, Bindable<FileInfo?> currentFile, string? chooserPath)
|
||||
{
|
||||
|
@ -9,11 +9,11 @@ using osu.Game.Graphics.UserInterfaceV2;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class LabelledRomanisedTextBox : LabelledTextBox
|
||||
internal partial class LabelledRomanisedTextBox : LabelledTextBox
|
||||
{
|
||||
protected override OsuTextBox CreateTextBox() => new RomanisedTextBox();
|
||||
|
||||
private class RomanisedTextBox : OsuTextBox
|
||||
private partial class RomanisedTextBox : OsuTextBox
|
||||
{
|
||||
protected override bool AllowIme => false;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Graphics.UserInterfaceV2;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal abstract class LabelledTextBoxWithPopover : LabelledTextBox, IHasPopover
|
||||
internal abstract partial class LabelledTextBoxWithPopover : LabelledTextBox, IHasPopover
|
||||
{
|
||||
public abstract Popover GetPopover();
|
||||
|
||||
@ -28,7 +28,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
OnFocused = this.ShowPopover
|
||||
};
|
||||
|
||||
internal class PopoverTextBox : OsuTextBox
|
||||
internal partial class PopoverTextBox : OsuTextBox
|
||||
{
|
||||
public Action OnFocused;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public class MetadataSection : SetupSection
|
||||
public partial class MetadataSection : SetupSection
|
||||
{
|
||||
protected LabelledTextBox ArtistTextBox;
|
||||
protected LabelledTextBox RomanisedArtistTextBox;
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class ResourcesSection : SetupSection
|
||||
internal partial class ResourcesSection : SetupSection
|
||||
{
|
||||
private LabelledFileChooser audioTrackChooser;
|
||||
private LabelledFileChooser backgroundChooser;
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public abstract class RulesetSetupSection : SetupSection
|
||||
public abstract partial class RulesetSetupSection : SetupSection
|
||||
{
|
||||
public sealed override LocalisableString Title => EditorSetupStrings.RulesetHeader(rulesetInfo.Name);
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public class SetupScreen : EditorScreen
|
||||
public partial class SetupScreen : EditorScreen
|
||||
{
|
||||
[Cached]
|
||||
private SectionsContainer<SetupSection> sections { get; } = new SetupScreenSectionsContainer();
|
||||
@ -55,7 +55,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
}));
|
||||
}
|
||||
|
||||
private class SetupScreenSectionsContainer : SectionsContainer<SetupSection>
|
||||
private partial class SetupScreenSectionsContainer : SectionsContainer<SetupSection>
|
||||
{
|
||||
protected override UserTrackingScrollContainer CreateScrollContainer()
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
internal class SetupScreenHeader : OverlayHeader
|
||||
internal partial class SetupScreenHeader : OverlayHeader
|
||||
{
|
||||
public SetupScreenHeaderBackground Background { get; private set; }
|
||||
|
||||
@ -75,7 +75,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
});
|
||||
}
|
||||
|
||||
private class SetupScreenTitle : OverlayTitle
|
||||
private partial class SetupScreenTitle : OverlayTitle
|
||||
{
|
||||
public SetupScreenTitle()
|
||||
{
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
}
|
||||
}
|
||||
|
||||
internal class SetupScreenTabControl : OverlayTabControl<SetupSection>
|
||||
internal partial class SetupScreenTabControl : OverlayTabControl<SetupSection>
|
||||
{
|
||||
private readonly Box background;
|
||||
|
||||
@ -111,7 +111,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
AccentColour = AccentColour
|
||||
};
|
||||
|
||||
private class SetupScreenTabItem : OverlayTabItem
|
||||
private partial class SetupScreenTabItem : OverlayTabItem
|
||||
{
|
||||
public SetupScreenTabItem(SetupSection value)
|
||||
: base(value)
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public class SetupScreenHeaderBackground : CompositeDrawable
|
||||
public partial class SetupScreenHeaderBackground : CompositeDrawable
|
||||
{
|
||||
[Resolved]
|
||||
private OsuColour colours { get; set; }
|
||||
|
@ -14,7 +14,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public abstract class SetupSection : Container
|
||||
public abstract partial class SetupSection : Container
|
||||
{
|
||||
private FillFlowContainer flow;
|
||||
|
||||
|
Reference in New Issue
Block a user