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

@ -32,7 +32,7 @@ using Realms;
namespace osu.Game.Screens.Select
{
public class BeatmapCarousel : CompositeDrawable, IKeyBindingHandler<GlobalAction>
public partial class BeatmapCarousel : CompositeDrawable, IKeyBindingHandler<GlobalAction>
{
/// <summary>
/// Height of the area above the carousel that should be treated as visible due to transparency of elements in front of it.
@ -1075,7 +1075,7 @@ namespace osu.Game.Screens.Select
}
}
protected class CarouselScrollContainer : UserTrackingScrollContainer<DrawableCarouselItem>
protected partial class CarouselScrollContainer : UserTrackingScrollContainer<DrawableCarouselItem>
{
private bool rightMouseScrollBlocked;

View File

@ -10,7 +10,7 @@ using osu.Game.Scoring;
namespace osu.Game.Screens.Select
{
public class BeatmapClearScoresDialog : DeleteConfirmationDialog
public partial class BeatmapClearScoresDialog : DeleteConfirmationDialog
{
[Resolved]
private ScoreManager scoreManager { get; set; } = null!;

View File

@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select
{
public class BeatmapDeleteDialog : DeleteConfirmationDialog
public partial class BeatmapDeleteDialog : DeleteConfirmationDialog
{
private readonly BeatmapSetInfo beatmapSet;

View File

@ -11,7 +11,7 @@ using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select
{
public abstract class BeatmapDetailArea : Container
public abstract partial class BeatmapDetailArea : Container
{
private const float details_padding = 10;

View File

@ -17,7 +17,7 @@ using osu.Framework.Graphics.Shapes;
namespace osu.Game.Screens.Select
{
public class BeatmapDetailAreaTabControl : Container
public partial class BeatmapDetailAreaTabControl : Container
{
public const float HEIGHT = 24;

View File

@ -23,7 +23,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select
{
public class BeatmapDetails : Container
public partial class BeatmapDetails : Container
{
private const float spacing = 10;
private const float transition_duration = 250;
@ -273,7 +273,7 @@ namespace osu.Game.Screens.Select
loading.Hide();
}
private class DetailBox : Container
private partial class DetailBox : Container
{
private readonly Container content;
protected override Container<Drawable> Content => content;

View File

@ -33,7 +33,7 @@ using osu.Game.Graphics.Containers;
namespace osu.Game.Screens.Select
{
public class BeatmapInfoWedge : VisibilityContainer
public partial class BeatmapInfoWedge : VisibilityContainer
{
public const float BORDER_THICKNESS = 2.5f;
private const float shear_width = 36.75f;
@ -148,7 +148,7 @@ namespace osu.Game.Screens.Select
}
}
public class WedgeInfoText : Container
public partial class WedgeInfoText : Container
{
public OsuSpriteText VersionLabel { get; private set; }
public OsuSpriteText TitleLabel { get; private set; }
@ -456,7 +456,7 @@ namespace osu.Game.Screens.Select
cancellationSource?.Cancel();
}
public class InfoLabel : Container, IHasTooltip
public partial class InfoLabel : Container, IHasTooltip
{
public LocalisableString TooltipText { get; }

View File

@ -15,7 +15,7 @@ using osu.Framework.Graphics.Shapes;
namespace osu.Game.Screens.Select
{
internal class BeatmapInfoWedgeBackground : CompositeDrawable
internal partial class BeatmapInfoWedgeBackground : CompositeDrawable
{
private readonly IWorkingBeatmap beatmap;

View File

@ -21,7 +21,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select.Carousel
{
public class CarouselHeader : Container
public partial class CarouselHeader : Container
{
public Container BorderContainer;
@ -93,7 +93,7 @@ namespace osu.Game.Screens.Select.Carousel
}
}
public class HoverLayer : HoverSampleDebounceComponent
public partial class HoverLayer : HoverSampleDebounceComponent
{
private Sample sampleHover;

View File

@ -34,7 +34,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select.Carousel
{
public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
public partial class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
{
public const float CAROUSEL_BEATMAP_SPACING = 5;

View File

@ -23,7 +23,7 @@ using osu.Game.Overlays;
namespace osu.Game.Screens.Select.Carousel
{
public class DrawableCarouselBeatmapSet : DrawableCarouselItem, IHasContextMenu
public partial class DrawableCarouselBeatmapSet : DrawableCarouselItem, IHasContextMenu
{
public const float HEIGHT = MAX_HEIGHT;

View File

@ -13,7 +13,7 @@ using osuTK;
namespace osu.Game.Screens.Select.Carousel
{
public abstract class DrawableCarouselItem : PoolableDrawable
public abstract partial class DrawableCarouselItem : PoolableDrawable
{
public const float MAX_HEIGHT = 80;

View File

@ -10,7 +10,7 @@ using osu.Game.Beatmaps.Drawables;
namespace osu.Game.Screens.Select.Carousel
{
public class FilterableDifficultyIcon : DifficultyIcon
public partial class FilterableDifficultyIcon : DifficultyIcon
{
private readonly BindableBool filtered = new BindableBool();

View File

@ -21,7 +21,7 @@ namespace osu.Game.Screens.Select.Carousel
/// <remarks>
/// Used in cases when there are too many difficulty icons to show.
/// </remarks>
public class GroupedDifficultyIcon : DifficultyIcon
public partial class GroupedDifficultyIcon : DifficultyIcon
{
public readonly List<CarouselBeatmap> Items;

View File

@ -14,7 +14,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select.Carousel
{
public class SetPanelBackground : BufferedContainer
public partial class SetPanelBackground : BufferedContainer
{
public SetPanelBackground(IWorkingBeatmap working)
: base(cachedFrameBuffer: true)

View File

@ -16,7 +16,7 @@ using osuTK;
namespace osu.Game.Screens.Select.Carousel
{
public class SetPanelContent : CompositeDrawable
public partial class SetPanelContent : CompositeDrawable
{
// Disallow interacting with difficulty icons on a panel until the panel has been selected.
public override bool PropagatePositionalInputSubTree => carouselSet.State.Value == CarouselItemState.Selected;

View File

@ -19,7 +19,7 @@ using Realms;
namespace osu.Game.Screens.Select.Carousel
{
public class TopLocalRank : CompositeDrawable
public partial class TopLocalRank : CompositeDrawable
{
private readonly BeatmapInfo beatmapInfo;

View File

@ -20,7 +20,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select.Carousel
{
public class UpdateBeatmapSetButton : OsuAnimatedButton
public partial class UpdateBeatmapSetButton : OsuAnimatedButton
{
private readonly BeatmapSetInfo beatmapSetInfo;
private SpriteIcon icon = null!;

View File

@ -8,7 +8,7 @@ using osu.Game.Localisation;
namespace osu.Game.Screens.Select.Carousel
{
public class UpdateLocalConfirmationDialog : DeleteConfirmationDialog
public partial class UpdateLocalConfirmationDialog : DeleteConfirmationDialog
{
public UpdateLocalConfirmationDialog(Action onConfirm)
{

View File

@ -28,7 +28,7 @@ using osu.Game.Rulesets;
namespace osu.Game.Screens.Select.Details
{
public class AdvancedStats : Container
public partial class AdvancedStats : Container
{
[Resolved]
private IBindable<IReadOnlyList<Mod>> mods { get; set; }
@ -173,7 +173,7 @@ namespace osu.Game.Screens.Select.Details
starDifficultyCancellationSource?.Cancel();
}
public class StatisticRow : Container, IHasAccentColour
public partial class StatisticRow : Container, IHasAccentColour
{
private const float value_width = 25;
private const float name_width = 70;

View File

@ -14,7 +14,7 @@ using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select.Details
{
public class FailRetryGraph : Container
public partial class FailRetryGraph : Container
{
private readonly BarGraph retryGraph, failGraph;

View File

@ -15,7 +15,7 @@ using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Screens.Select.Details
{
public class UserRatings : Container
public partial class UserRatings : Container
{
private readonly FillFlowContainer header;
private readonly Bar ratingsBar;

View File

@ -18,7 +18,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select
{
internal class DifficultyRangeFilterControl : CompositeDrawable
internal partial class DifficultyRangeFilterControl : CompositeDrawable
{
private Bindable<double> lowerStars = null!;
private Bindable<double> upperStars = null!;
@ -63,7 +63,7 @@ namespace osu.Game.Screens.Select
upperStars.ValueChanged += max => lowerStars.Value = Math.Min(max.NewValue - 0.1, lowerStars.Value);
}
private class MinimumStarsSlider : StarsSlider
private partial class MinimumStarsSlider : StarsSlider
{
public MinimumStarsSlider()
: base("0")
@ -87,7 +87,7 @@ namespace osu.Game.Screens.Select
&& screenSpacePos.X <= Nub.ScreenSpaceDrawQuad.TopRight.X;
}
private class MaximumStarsSlider : StarsSlider
private partial class MaximumStarsSlider : StarsSlider
{
public MaximumStarsSlider()
: base("∞")
@ -106,7 +106,7 @@ namespace osu.Game.Screens.Select
&& screenSpacePos.X >= Nub.ScreenSpaceDrawQuad.TopLeft.X;
}
private class StarsSlider : OsuSliderBar<double>
private partial class StarsSlider : OsuSliderBar<double>
{
private readonly string defaultString;

View File

@ -24,7 +24,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select
{
public class FilterControl : Container
public partial class FilterControl : Container
{
public const float HEIGHT = 2 * side_margin + 85;
private const float side_margin = 20;

View File

@ -16,7 +16,7 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Screens.Select
{
public class Footer : Container
public partial class Footer : Container
{
private readonly Box modeLight;

View File

@ -19,7 +19,7 @@ using osuTK.Graphics;
namespace osu.Game.Screens.Select
{
public class FooterButton : OsuClickableContainer, IKeyBindingHandler<GlobalAction>
public partial class FooterButton : OsuClickableContainer, IKeyBindingHandler<GlobalAction>
{
public const float SHEAR_WIDTH = 7.5f;

View File

@ -22,7 +22,7 @@ using osu.Game.Input.Bindings;
namespace osu.Game.Screens.Select
{
public class FooterButtonMods : FooterButton, IHasCurrentValue<IReadOnlyList<Mod>>
public partial class FooterButtonMods : FooterButton, IHasCurrentValue<IReadOnlyList<Mod>>
{
public Bindable<IReadOnlyList<Mod>> Current
{

View File

@ -10,7 +10,7 @@ using osu.Game.Input.Bindings;
namespace osu.Game.Screens.Select
{
public class FooterButtonOptions : FooterButton
public partial class FooterButtonOptions : FooterButton
{
[BackgroundDependencyLoader]
private void load(OsuColour colours)

View File

@ -17,7 +17,7 @@ using osuTK.Input;
namespace osu.Game.Screens.Select
{
public class FooterButtonRandom : FooterButton
public partial class FooterButtonRandom : FooterButton
{
public Action NextRandom { get; set; }
public Action PreviousRandom { get; set; }

View File

@ -21,7 +21,7 @@ using Realms;
namespace osu.Game.Screens.Select.Leaderboards
{
public class BeatmapLeaderboard : Leaderboard<BeatmapLeaderboardScope, ScoreInfo>
public partial class BeatmapLeaderboard : Leaderboard<BeatmapLeaderboardScope, ScoreInfo>
{
public Action<ScoreInfo>? ScoreSelected;

View File

@ -10,7 +10,7 @@ using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select
{
public class LocalScoreDeleteDialog : DeleteConfirmationDialog
public partial class LocalScoreDeleteDialog : DeleteConfirmationDialog
{
private readonly ScoreInfo score;

View File

@ -17,7 +17,7 @@ using osuTK;
namespace osu.Game.Screens.Select
{
public class NoResultsPlaceholder : VisibilityContainer
public partial class NoResultsPlaceholder : VisibilityContainer
{
private FilterCriteria? filter;

View File

@ -20,7 +20,7 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Screens.Select.Options
{
public class BeatmapOptionsButton : OsuClickableContainer
public partial class BeatmapOptionsButton : OsuClickableContainer
{
private const float width = 130;

View File

@ -19,7 +19,7 @@ using osu.Framework.Localisation;
namespace osu.Game.Screens.Select.Options
{
public class BeatmapOptionsOverlay : OsuFocusedOverlayContainer
public partial class BeatmapOptionsOverlay : OsuFocusedOverlayContainer
{
private const float transition_duration = 500;
private const float x_position = 0.2f;

View File

@ -14,7 +14,7 @@ using osu.Game.Screens.Select.Leaderboards;
namespace osu.Game.Screens.Select
{
public class PlayBeatmapDetailArea : BeatmapDetailArea
public partial class PlayBeatmapDetailArea : BeatmapDetailArea
{
public readonly BeatmapLeaderboard Leaderboard;

View File

@ -20,7 +20,7 @@ using osuTK.Input;
namespace osu.Game.Screens.Select
{
public class PlaySongSelect : SongSelect
public partial class PlaySongSelect : SongSelect
{
private OsuScreen? playerLoader;

View File

@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select
{
public class SkinDeleteDialog : DeleteConfirmationDialog
public partial class SkinDeleteDialog : DeleteConfirmationDialog
{
private readonly Skin skin;

View File

@ -42,7 +42,7 @@ using osu.Game.Skinning;
namespace osu.Game.Screens.Select
{
public abstract class SongSelect : ScreenWithBeatmapBackground, IKeyBindingHandler<GlobalAction>
public abstract partial class SongSelect : ScreenWithBeatmapBackground, IKeyBindingHandler<GlobalAction>
{
public static readonly float WEDGE_HEIGHT = 245;
@ -925,7 +925,7 @@ namespace osu.Game.Screens.Select
return base.OnKeyDown(e);
}
private class VerticalMaskingContainer : Container
private partial class VerticalMaskingContainer : Container
{
private const float panel_overflow = 1.2f;
@ -948,7 +948,7 @@ namespace osu.Game.Screens.Select
}
}
private class ResetScrollContainer : Container
private partial class ResetScrollContainer : Container
{
private readonly Action onHoverAction;
@ -964,7 +964,7 @@ namespace osu.Game.Screens.Select
}
}
internal class SoloModSelectOverlay : UserModSelectOverlay
internal partial class SoloModSelectOverlay : UserModSelectOverlay
{
protected override bool ShowPresets => true;
}

View File

@ -12,7 +12,7 @@ using osu.Framework.Graphics.Shapes;
namespace osu.Game.Screens.Select
{
public class WedgeBackground : Container
public partial class WedgeBackground : Container
{
public WedgeBackground()
{