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
@ -21,7 +21,7 @@ using APIUser = osu.Game.Online.API.Requests.Responses.APIUser;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class AuthorInfo : Container
|
||||
public partial class AuthorInfo : Container
|
||||
{
|
||||
private const float height = 50;
|
||||
|
||||
@ -105,7 +105,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
}
|
||||
}
|
||||
|
||||
private class Field : FillFlowContainer
|
||||
private partial class Field : FillFlowContainer
|
||||
{
|
||||
public Field(string first, string second, FontUsage secondFont)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BasicStats : Container
|
||||
public partial class BasicStats : Container
|
||||
{
|
||||
private readonly Statistic length, bpm, circleCount, sliderCount;
|
||||
|
||||
@ -117,7 +117,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
updateDisplay();
|
||||
}
|
||||
|
||||
private class Statistic : Container, IHasTooltip
|
||||
private partial class Statistic : Container, IHasTooltip
|
||||
{
|
||||
private readonly OsuSpriteText value;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapAvailability : Container
|
||||
public partial class BeatmapAvailability : Container
|
||||
{
|
||||
private APIBeatmapSet beatmapSet;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public abstract class BeatmapBadge : CompositeDrawable
|
||||
public abstract partial class BeatmapBadge : CompositeDrawable
|
||||
{
|
||||
/// <summary>
|
||||
/// The text displayed on the badge's label.
|
||||
|
@ -27,7 +27,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapPicker : Container
|
||||
public partial class BeatmapPicker : Container
|
||||
{
|
||||
private const float tile_icon_padding = 7;
|
||||
private const float tile_spacing = 2;
|
||||
@ -209,7 +209,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
Difficulties.Children.ToList().ForEach(diff => diff.State = diff.Beatmap == Beatmap.Value ? DifficultySelectorState.Selected : DifficultySelectorState.NotSelected);
|
||||
}
|
||||
|
||||
public class DifficultiesContainer : FillFlowContainer<DifficultySelectorButton>
|
||||
public partial class DifficultiesContainer : FillFlowContainer<DifficultySelectorButton>
|
||||
{
|
||||
public Action OnLostHover;
|
||||
|
||||
@ -220,7 +220,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
}
|
||||
}
|
||||
|
||||
public class DifficultySelectorButton : OsuClickableContainer, IStateful<DifficultySelectorState>
|
||||
public partial class DifficultySelectorButton : OsuClickableContainer, IStateful<DifficultySelectorState>
|
||||
{
|
||||
private const float transition_duration = 100;
|
||||
private const float size = 54;
|
||||
@ -325,7 +325,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
}
|
||||
}
|
||||
|
||||
private class Statistic : FillFlowContainer
|
||||
private partial class Statistic : FillFlowContainer
|
||||
{
|
||||
private readonly OsuSpriteText text;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapRulesetSelector : OverlayRulesetSelector
|
||||
public partial class BeatmapRulesetSelector : OverlayRulesetSelector
|
||||
{
|
||||
private readonly Bindable<APIBeatmapSet> beatmapSet = new Bindable<APIBeatmapSet>();
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Rulesets;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapRulesetTabItem : OverlayRulesetTabItem
|
||||
public partial class BeatmapRulesetTabItem : OverlayRulesetTabItem
|
||||
{
|
||||
public readonly Bindable<APIBeatmapSet> BeatmapSet = new Bindable<APIBeatmapSet>();
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapSetHeader : OverlayHeader
|
||||
public partial class BeatmapSetHeader : OverlayHeader
|
||||
{
|
||||
public readonly Bindable<APIBeatmapSet> BeatmapSet = new Bindable<APIBeatmapSet>();
|
||||
|
||||
@ -53,7 +53,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
protected override OverlayTitle CreateTitle() => new BeatmapHeaderTitle();
|
||||
|
||||
private class BeatmapHeaderTitle : OverlayTitle
|
||||
private partial class BeatmapHeaderTitle : OverlayTitle
|
||||
{
|
||||
public BeatmapHeaderTitle()
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapSetHeaderContent : CompositeDrawable
|
||||
public partial class BeatmapSetHeaderContent : CompositeDrawable
|
||||
{
|
||||
public readonly Bindable<APIBeatmapSet> BeatmapSet = new Bindable<APIBeatmapSet>();
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class BeatmapSetLayoutSection : Container
|
||||
public partial class BeatmapSetLayoutSection : Container
|
||||
{
|
||||
public BeatmapSetLayoutSection()
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ using APIUser = osu.Game.Online.API.Requests.Responses.APIUser;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
public class FavouriteButton : HeaderButton, IHasTooltip
|
||||
public partial class FavouriteButton : HeaderButton, IHasTooltip
|
||||
{
|
||||
public readonly Bindable<APIBeatmapSet> BeatmapSet = new Bindable<APIBeatmapSet>();
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
public class HeaderButton : TriangleButton
|
||||
public partial class HeaderButton : TriangleButton
|
||||
{
|
||||
public HeaderButton()
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ using CommonStrings = osu.Game.Localisation.CommonStrings;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
public class HeaderDownloadButton : CompositeDrawable, IHasTooltip
|
||||
public partial class HeaderDownloadButton : CompositeDrawable, IHasTooltip
|
||||
{
|
||||
private const int text_size = 12;
|
||||
|
||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
public class PlayButton : Container
|
||||
public partial class PlayButton : Container
|
||||
{
|
||||
public IBindable<bool> Playing => playing;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Buttons
|
||||
{
|
||||
public class PreviewButton : OsuClickableContainer
|
||||
public partial class PreviewButton : OsuClickableContainer
|
||||
{
|
||||
private readonly Box background, progress;
|
||||
private readonly PlayButton playButton;
|
||||
|
@ -15,7 +15,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class Details : FillFlowContainer
|
||||
public partial class Details : FillFlowContainer
|
||||
{
|
||||
protected readonly UserRatings Ratings;
|
||||
|
||||
@ -107,7 +107,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
updateDisplay();
|
||||
}
|
||||
|
||||
private class DetailBox : Container
|
||||
private partial class DetailBox : Container
|
||||
{
|
||||
private readonly Container content;
|
||||
private readonly Box background;
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class ExplicitContentBeatmapBadge : BeatmapBadge
|
||||
public partial class ExplicitContentBeatmapBadge : BeatmapBadge
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class FeaturedArtistBeatmapBadge : BeatmapBadge
|
||||
public partial class FeaturedArtistBeatmapBadge : BeatmapBadge
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class Info : Container
|
||||
public partial class Info : Container
|
||||
{
|
||||
private const float metadata_width = 175;
|
||||
private const float spacing = 20;
|
||||
|
@ -20,7 +20,7 @@ using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class LeaderboardModSelector : CompositeDrawable
|
||||
public partial class LeaderboardModSelector : CompositeDrawable
|
||||
{
|
||||
public readonly BindableList<IMod> SelectedMods = new BindableList<IMod>();
|
||||
public readonly Bindable<IRulesetInfo> Ruleset = new Bindable<IRulesetInfo>();
|
||||
@ -107,7 +107,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
|
||||
|
||||
private class ModButton : ModIcon
|
||||
private partial class ModButton : ModIcon
|
||||
{
|
||||
private const int duration = 200;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class LeaderboardScopeSelector : GradientLineTabControl<BeatmapLeaderboardScope>
|
||||
public partial class LeaderboardScopeSelector : GradientLineTabControl<BeatmapLeaderboardScope>
|
||||
{
|
||||
protected override bool AddEnumEntriesAutomatically => false;
|
||||
|
||||
@ -33,7 +33,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
LineColour = colourProvider.Background1;
|
||||
}
|
||||
|
||||
private class ScopeSelectorTabItem : PageTabItem
|
||||
private partial class ScopeSelectorTabItem : PageTabItem
|
||||
{
|
||||
public ScopeSelectorTabItem(BeatmapLeaderboardScope value)
|
||||
: base(value)
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class MetadataSection : Container
|
||||
public partial class MetadataSection : Container
|
||||
{
|
||||
private readonly FillFlowContainer textContainer;
|
||||
private readonly MetadataType type;
|
||||
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class DrawableTopScore : CompositeDrawable
|
||||
public partial class DrawableTopScore : CompositeDrawable
|
||||
{
|
||||
private readonly Box background;
|
||||
|
||||
@ -89,7 +89,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
background.Colour = colourProvider.Background4;
|
||||
}
|
||||
|
||||
private class AutoSizingGrid : GridContainer
|
||||
private partial class AutoSizingGrid : GridContainer
|
||||
{
|
||||
public AutoSizingGrid()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class NoScoresPlaceholder : Container
|
||||
public partial class NoScoresPlaceholder : Container
|
||||
{
|
||||
private readonly SpriteText text;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class NotSupporterPlaceholder : Container
|
||||
public partial class NotSupporterPlaceholder : Container
|
||||
{
|
||||
public NotSupporterPlaceholder()
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ using osu.Game.Scoring.Drawables;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class ScoreTable : TableContainer
|
||||
public partial class ScoreTable : TableContainer
|
||||
{
|
||||
private const float horizontal_inset = 20;
|
||||
private const float row_height = 22;
|
||||
@ -207,7 +207,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
|
||||
protected override Drawable CreateHeader(int index, TableColumn column) => new HeaderText(column?.Header ?? default);
|
||||
|
||||
private class HeaderText : OsuSpriteText
|
||||
private partial class HeaderText : OsuSpriteText
|
||||
{
|
||||
public HeaderText(LocalisableString text)
|
||||
{
|
||||
@ -222,7 +222,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
}
|
||||
}
|
||||
|
||||
private class StatisticText : OsuSpriteText, IHasTooltip
|
||||
private partial class StatisticText : OsuSpriteText, IHasTooltip
|
||||
{
|
||||
private readonly double? count;
|
||||
private readonly double? maxCount;
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class ScoreTableRowBackground : CompositeDrawable
|
||||
public partial class ScoreTableRowBackground : CompositeDrawable
|
||||
{
|
||||
private const int fade_duration = 100;
|
||||
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class ScoreboardTime : DrawableDate
|
||||
public partial class ScoreboardTime : DrawableDate
|
||||
{
|
||||
public ScoreboardTime(DateTimeOffset date, float textSize = OsuFont.DEFAULT_FONT_SIZE, bool italic = true)
|
||||
: base(date, textSize, italic)
|
||||
|
@ -24,7 +24,7 @@ using APIUser = osu.Game.Online.API.Requests.Responses.APIUser;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class ScoresContainer : BeatmapSetLayoutSection
|
||||
public partial class ScoresContainer : BeatmapSetLayoutSection
|
||||
{
|
||||
private const int spacing = 15;
|
||||
|
||||
|
@ -27,7 +27,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class TopScoreStatisticsSection : CompositeDrawable
|
||||
public partial class TopScoreStatisticsSection : CompositeDrawable
|
||||
{
|
||||
private const float margin = 10;
|
||||
private const float top_columns_min_width = 64;
|
||||
@ -143,7 +143,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
Text = stat.MaxCount == null ? stat.Count.ToLocalisableString(@"N0") : (LocalisableString)$"{stat.Count}/{stat.MaxCount}"
|
||||
};
|
||||
|
||||
private class InfoColumn : CompositeDrawable
|
||||
private partial class InfoColumn : CompositeDrawable
|
||||
{
|
||||
private readonly Box separator;
|
||||
private readonly OsuSpriteText text;
|
||||
@ -204,7 +204,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
}
|
||||
}
|
||||
|
||||
private class TextColumn : InfoColumn, IHasCurrentValue<string>
|
||||
private partial class TextColumn : InfoColumn, IHasCurrentValue<string>
|
||||
{
|
||||
private readonly OsuTextFlowContainer text;
|
||||
|
||||
@ -249,7 +249,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
}
|
||||
}
|
||||
|
||||
private class ModsInfoColumn : InfoColumn
|
||||
private partial class ModsInfoColumn : InfoColumn
|
||||
{
|
||||
private readonly FillFlowContainer modsContainer;
|
||||
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
public class TopScoreUserSection : CompositeDrawable
|
||||
public partial class TopScoreUserSection : CompositeDrawable
|
||||
{
|
||||
private readonly SpriteText rankText;
|
||||
private readonly UpdateableRank rank;
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class SpotlightBeatmapBadge : BeatmapBadge
|
||||
public partial class SpotlightBeatmapBadge : BeatmapBadge
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -18,7 +18,7 @@ using osu.Game.Screens.Select.Details;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet
|
||||
{
|
||||
public class SuccessRate : Container
|
||||
public partial class SuccessRate : Container
|
||||
{
|
||||
protected readonly FailRetryGraph Graph;
|
||||
|
||||
@ -127,7 +127,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
Graph.Padding = new MarginPadding { Top = header.DrawHeight };
|
||||
}
|
||||
|
||||
private class SuccessRatePercentage : OsuSpriteText, IHasTooltip
|
||||
private partial class SuccessRatePercentage : OsuSpriteText, IHasTooltip
|
||||
{
|
||||
public LocalisableString TooltipText { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user