Partial everything

This commit is contained in:
Dan Balasescu
2022-11-24 14:32:20 +09:00
committed by Dean Herbert
parent a1c559ae05
commit 7bc8908ca9
2331 changed files with 3218 additions and 3218 deletions

View File

@ -14,7 +14,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Edit.Components
{
public class BottomBarContainer : Container
public partial class BottomBarContainer : Container
{
private const float contents_padding = 15;

View File

@ -16,7 +16,7 @@ namespace osu.Game.Screens.Edit.Components
/// A sidebar area that can be attached to the left or right edge of the screen.
/// Houses scrolling sectionised content.
/// </summary>
internal class EditorSidebar : Container<EditorSidebarSection>
internal partial class EditorSidebar : Container<EditorSidebarSection>
{
public const float WIDTH = 250;

View File

@ -15,7 +15,7 @@ using osuTK;
namespace osu.Game.Screens.Edit.Components
{
public class EditorSidebarSection : Container
public partial class EditorSidebarSection : Container
{
protected override Container<Drawable> Content { get; }
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Edit.Components
};
}
public class SectionHeader : CompositeDrawable
public partial class SectionHeader : CompositeDrawable
{
private readonly LocalisableString text;

View File

@ -12,7 +12,7 @@ using osuTK;
namespace osu.Game.Screens.Edit.Components.Menus
{
public class EditorMenuBar : OsuMenu
public partial class EditorMenuBar : OsuMenu
{
public EditorMenuBar()
: base(Direction.Horizontal, true)
@ -33,7 +33,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
protected override DrawableMenuItem CreateDrawableMenuItem(MenuItem item) => new DrawableEditorBarMenuItem(item);
private class DrawableEditorBarMenuItem : DrawableOsuMenuItem
private partial class DrawableEditorBarMenuItem : DrawableOsuMenuItem
{
public DrawableEditorBarMenuItem(MenuItem item)
: base(item)
@ -75,7 +75,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
protected override DrawableOsuMenuItem.TextContainer CreateTextContainer() => new TextContainer();
private new class TextContainer : DrawableOsuMenuItem.TextContainer
private new partial class TextContainer : DrawableOsuMenuItem.TextContainer
{
public TextContainer()
{
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
}
}
private class SubMenu : OsuMenu
private partial class SubMenu : OsuMenu
{
public SubMenu()
: base(Direction.Vertical)
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
}
}
private class EditorStatefulMenuItem : DrawableStatefulMenuItem
private partial class EditorStatefulMenuItem : DrawableStatefulMenuItem
{
public EditorStatefulMenuItem(StatefulMenuItem item)
: base(item)
@ -135,7 +135,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
}
}
private class EditorMenuItem : DrawableOsuMenuItem
private partial class EditorMenuItem : DrawableOsuMenuItem
{
public EditorMenuItem(MenuItem item)
: base(item)
@ -152,7 +152,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
}
}
private class DrawableSpacer : DrawableOsuMenuItem
private partial class DrawableSpacer : DrawableOsuMenuItem
{
public DrawableSpacer(MenuItem item)
: base(item)

View File

@ -14,7 +14,7 @@ using osuTK;
namespace osu.Game.Screens.Edit.Components.Menus
{
public class EditorScreenSwitcherControl : OsuTabControl<EditorScreenMode>
public partial class EditorScreenSwitcherControl : OsuTabControl<EditorScreenMode>
{
public EditorScreenSwitcherControl()
{
@ -42,7 +42,7 @@ namespace osu.Game.Screens.Edit.Components.Menus
protected override TabItem<EditorScreenMode> CreateTabItem(EditorScreenMode value) => new TabItem(value);
private class TabItem : OsuTabItem
private partial class TabItem : OsuTabItem
{
private const float transition_length = 250;

View File

@ -23,7 +23,7 @@ using osuTK.Input;
namespace osu.Game.Screens.Edit.Components
{
public class PlaybackControl : BottomBarContainer
public partial class PlaybackControl : BottomBarContainer
{
private IconButton playButton;
@ -102,7 +102,7 @@ namespace osu.Game.Screens.Edit.Components
playButton.Icon = editorClock.IsRunning ? FontAwesome.Regular.PauseCircle : FontAwesome.Regular.PlayCircle;
}
private class PlaybackTabControl : OsuTabControl<double>
private partial class PlaybackTabControl : OsuTabControl<double>
{
private static readonly double[] tempo_values = { 0.25, 0.5, 0.75, 1 };
@ -120,7 +120,7 @@ namespace osu.Game.Screens.Edit.Components
Current.Value = tempo_values.Last();
}
public class PlaybackTabItem : TabItem<double>
public partial class PlaybackTabItem : TabItem<double>
{
private const float fade_duration = 200;

View File

@ -19,7 +19,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Edit.Components.RadioButtons
{
public class EditorRadioButton : OsuButton, IHasTooltip
public partial class EditorRadioButton : OsuButton, IHasTooltip
{
/// <summary>
/// Invoked when this <see cref="EditorRadioButton"/> has been selected.

View File

@ -11,7 +11,7 @@ using osuTK;
namespace osu.Game.Screens.Edit.Components.RadioButtons
{
public class EditorRadioButtonCollection : CompositeDrawable
public partial class EditorRadioButtonCollection : CompositeDrawable
{
private IReadOnlyList<RadioButton> items;

View File

@ -16,7 +16,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Edit.Components.TernaryButtons
{
internal class DrawableTernaryButton : OsuButton
internal partial class DrawableTernaryButton : OsuButton
{
private Color4 defaultBackgroundColour;
private Color4 defaultIconColour;

View File

@ -13,7 +13,7 @@ using osuTK;
namespace osu.Game.Screens.Edit.Components
{
public class TimeInfoContainer : BottomBarContainer
public partial class TimeInfoContainer : BottomBarContainer
{
private OsuSpriteText trackTimer;
private OsuSpriteText bpm;

View File

@ -12,7 +12,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// <summary>
/// The part of the timeline that displays bookmarks.
/// </summary>
public class BookmarkPart : TimelinePart
public partial class BookmarkPart : TimelinePart
{
protected override void LoadBeatmap(EditorBeatmap beatmap)
{
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
Add(new BookmarkVisualisation(bookmark));
}
private class BookmarkVisualisation : PointVisualisation
private partial class BookmarkVisualisation : PointVisualisation
{
public BookmarkVisualisation(double startTime)
: base(startTime)

View File

@ -13,7 +13,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// <summary>
/// The part of the timeline that displays breaks in the song.
/// </summary>
public class BreakPart : TimelinePart
public partial class BreakPart : TimelinePart
{
protected override void LoadBeatmap(EditorBeatmap beatmap)
{
@ -22,7 +22,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
Add(new BreakVisualisation(breakPeriod));
}
private class BreakVisualisation : DurationVisualisation
private partial class BreakVisualisation : DurationVisualisation
{
public BreakVisualisation(BreakPeriod breakPeriod)
: base(breakPeriod.StartTime, breakPeriod.EndTime)

View File

@ -14,7 +14,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// <summary>
/// The part of the timeline that displays the control points.
/// </summary>
public class ControlPointPart : TimelinePart<GroupVisualisation>
public partial class ControlPointPart : TimelinePart<GroupVisualisation>
{
private readonly IBindableList<ControlPointGroup> controlPointGroups = new BindableList<ControlPointGroup>();

View File

@ -11,7 +11,7 @@ using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{
public class ControlPointVisualisation : PointVisualisation, IControlPointVisualisation
public partial class ControlPointVisualisation : PointVisualisation, IControlPointVisualisation
{
protected readonly ControlPoint Point;

View File

@ -13,7 +13,7 @@ using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{
public class EffectPointVisualisation : CompositeDrawable, IControlPointVisualisation
public partial class EffectPointVisualisation : CompositeDrawable, IControlPointVisualisation
{
private readonly EffectControlPoint effect;
private Bindable<bool> kiai = null!;

View File

@ -11,7 +11,7 @@ using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{
public class GroupVisualisation : CompositeDrawable
public partial class GroupVisualisation : CompositeDrawable
{
public readonly ControlPointGroup Group;

View File

@ -18,7 +18,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// <summary>
/// The part of the timeline that displays the current position of the song.
/// </summary>
public class MarkerPart : TimelinePart
public partial class MarkerPart : TimelinePart
{
private Drawable marker;
@ -71,7 +71,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
// block base call so we don't clear our marker (can be reused on beatmap change).
}
private class MarkerVisualisation : CompositeDrawable
private partial class MarkerVisualisation : CompositeDrawable
{
public MarkerVisualisation()
{

View File

@ -14,14 +14,14 @@ using osu.Game.Beatmaps;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{
public class TimelinePart : TimelinePart<Drawable>
public partial class TimelinePart : TimelinePart<Drawable>
{
}
/// <summary>
/// Represents a part of the summary timeline..
/// </summary>
public class TimelinePart<T> : Container<T> where T : Drawable
public partial class TimelinePart<T> : Container<T> where T : Drawable
{
private readonly IBindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();

View File

@ -16,7 +16,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary
/// <summary>
/// The timeline that sits at the bottom of the editor.
/// </summary>
public class SummaryTimeline : BottomBarContainer
public partial class SummaryTimeline : BottomBarContainer
{
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)

View File

@ -13,7 +13,7 @@ using osu.Game.Overlays;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary
{
public class TestGameplayButton : OsuButton
public partial class TestGameplayButton : OsuButton
{
protected override SpriteText CreateText() => new OsuSpriteText
{

View File

@ -11,7 +11,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations
/// <summary>
/// Represents a spanning point on a timeline part.
/// </summary>
public class DurationVisualisation : Circle
public partial class DurationVisualisation : Circle
{
protected DurationVisualisation(double startTime, double endTime)
{

View File

@ -11,7 +11,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations
/// <summary>
/// Represents a singular point on a timeline part.
/// </summary>
public class PointVisualisation : Circle
public partial class PointVisualisation : Circle
{
public const float MAX_WIDTH = 4;