mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -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;
|
||||
|
||||
|
@ -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!;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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!;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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; }
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public class NoResultsPlaceholder : VisibilityContainer
|
||||
public partial class NoResultsPlaceholder : VisibilityContainer
|
||||
{
|
||||
private FilterCriteria? filter;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public class PlaySongSelect : SongSelect
|
||||
public partial class PlaySongSelect : SongSelect
|
||||
{
|
||||
private OsuScreen? playerLoader;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user