mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
partial
This commit is contained in:
@ -17,7 +17,6 @@ using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osu.Game.Overlays.Settings;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Rulesets.Catch.Mods;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
using osu.Game.Rulesets.Osu.Mods;
|
||||
|
@ -374,6 +374,9 @@ namespace osu.Game.Configuration
|
||||
DiscordRichPresence,
|
||||
AutomaticallyDownloadWhenSpectating,
|
||||
ShowOnlineExplicitContent,
|
||||
LastProcessedMetadataId
|
||||
LastProcessedMetadataId,
|
||||
SafeAreaConsiderations,
|
||||
ComboColourNormalisationAmount,
|
||||
MisskeyToken,
|
||||
}
|
||||
}
|
||||
|
@ -11,11 +11,11 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class BreadcrumbControlOverlayHeader : TabControlOverlayHeader<LocalisableString?>
|
||||
public abstract partial class BreadcrumbControlOverlayHeader : TabControlOverlayHeader<LocalisableString?>
|
||||
{
|
||||
protected override OsuTabControl<LocalisableString?> CreateTabControl() => new OverlayHeaderBreadcrumbControl();
|
||||
|
||||
public class OverlayHeaderBreadcrumbControl : BreadcrumbControl<LocalisableString?>
|
||||
public partial class OverlayHeaderBreadcrumbControl : BreadcrumbControl<LocalisableString?>
|
||||
{
|
||||
public OverlayHeaderBreadcrumbControl()
|
||||
{
|
||||
@ -34,7 +34,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
AccentColour = AccentColour,
|
||||
};
|
||||
|
||||
private class ControlTabItem : BreadcrumbTabItem
|
||||
private partial class ControlTabItem : BreadcrumbTabItem
|
||||
{
|
||||
protected override float ChevronSize => 8;
|
||||
|
||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Misskey.Overlays.Dialog
|
||||
/// <summary>
|
||||
/// A dialog which confirms a user action.
|
||||
/// </summary>
|
||||
public class ConfirmDialog : PopupDialog
|
||||
public partial class ConfirmDialog : PopupDialog
|
||||
{
|
||||
/// <summary>
|
||||
/// Construct a new confirmation dialog.
|
||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Misskey.Overlays.Dialog
|
||||
/// Differs from <see cref="ConfirmDialog"/> in that the confirmation button is a "dangerous" one
|
||||
/// (requires the confirm button to be held).
|
||||
/// </summary>
|
||||
public abstract class DeleteConfirmationDialog : PopupDialog
|
||||
public abstract partial class DeleteConfirmationDialog : PopupDialog
|
||||
{
|
||||
/// <summary>
|
||||
/// The action which performs the deletion.
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Dialog
|
||||
{
|
||||
public abstract class PopupDialog : VisibilityContainer
|
||||
public abstract partial class PopupDialog : VisibilityContainer
|
||||
{
|
||||
public const float ENTER_DURATION = 500;
|
||||
public const float EXIT_DURATION = 200;
|
||||
|
@ -8,7 +8,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Dialog
|
||||
{
|
||||
public class PopupDialogButton : DialogButton
|
||||
public partial class PopupDialogButton : DialogButton
|
||||
{
|
||||
public PopupDialogButton(HoverSampleSet sampleSet = HoverSampleSet.Button)
|
||||
: base(sampleSet)
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Dialog
|
||||
{
|
||||
public class PopupDialogCancelButton : PopupDialogButton
|
||||
public partial class PopupDialogCancelButton : PopupDialogButton
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Dialog
|
||||
{
|
||||
public class PopupDialogDangerousButton : PopupDialogButton
|
||||
public partial class PopupDialogDangerousButton : PopupDialogButton
|
||||
{
|
||||
private Box progressBox;
|
||||
private DangerousConfirmContainer confirmContainer;
|
||||
@ -46,7 +46,7 @@ namespace osu.Game.Misskey.Overlays.Dialog
|
||||
confirmContainer.Progress.BindValueChanged(progress => progressBox.Width = (float)progress.NewValue, true);
|
||||
}
|
||||
|
||||
private class DangerousConfirmContainer : HoldToConfirmContainer
|
||||
private partial class DangerousConfirmContainer : HoldToConfirmContainer
|
||||
{
|
||||
public DangerousConfirmContainer()
|
||||
: base(isDangerousAction: true)
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Dialog
|
||||
{
|
||||
public class PopupDialogOkButton : PopupDialogButton
|
||||
public partial class PopupDialogOkButton : PopupDialogButton
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Audio.Effects;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class DialogOverlay : OsuFocusedOverlayContainer, IDialogOverlay
|
||||
public partial class DialogOverlay : OsuFocusedOverlayContainer, IDialogOverlay
|
||||
{
|
||||
private readonly Container dialogContainer;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class FullscreenOverlay<T> : WaveOverlayContainer, INamedOverlayComponent
|
||||
public abstract partial class FullscreenOverlay<T> : WaveOverlayContainer, INamedOverlayComponent
|
||||
where T : OverlayHeader
|
||||
{
|
||||
public virtual string IconTexture => Header.Title.IconTexture ?? string.Empty;
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// An overlay which will display a black screen that dims over a period before confirming an exit action.
|
||||
/// Action is BYO (derived class will need to call <see cref="HoldToConfirmContainer.BeginConfirm"/> and <see cref="HoldToConfirmContainer.AbortConfirm"/> from a user event).
|
||||
/// </summary>
|
||||
public abstract class HoldToConfirmOverlay : HoldToConfirmContainer
|
||||
public abstract partial class HoldToConfirmOverlay : HoldToConfirmContainer
|
||||
{
|
||||
private Box overlay;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Login
|
||||
{
|
||||
public class LoginForm : FillFlowContainer
|
||||
public partial class LoginForm : FillFlowContainer
|
||||
{
|
||||
private TextBox username = null!;
|
||||
private TextBox password = null!;
|
||||
|
@ -22,7 +22,7 @@ using Container = osu.Framework.Graphics.Containers.Container;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Login
|
||||
{
|
||||
public class LoginPanel : FillFlowContainer
|
||||
public partial class LoginPanel : FillFlowContainer
|
||||
{
|
||||
private bool bounding = true;
|
||||
private LoginForm form;
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Login
|
||||
{
|
||||
public class UserDropdown : OsuEnumDropdown<UserAction>
|
||||
public partial class UserDropdown : OsuEnumDropdown<UserAction>
|
||||
{
|
||||
protected override DropdownHeader CreateHeader() => new UserDropdownHeader();
|
||||
|
||||
@ -31,7 +31,7 @@ namespace osu.Game.Misskey.Overlays.Login
|
||||
}
|
||||
}
|
||||
|
||||
protected class UserDropdownMenu : OsuDropdownMenu
|
||||
protected partial class UserDropdownMenu : OsuDropdownMenu
|
||||
{
|
||||
public UserDropdownMenu()
|
||||
{
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Misskey.Overlays.Login
|
||||
|
||||
protected override DrawableDropdownMenuItem CreateDrawableDropdownMenuItem(MenuItem item) => new DrawableUserDropdownMenuItem(item);
|
||||
|
||||
private class DrawableUserDropdownMenuItem : DrawableOsuDropdownMenuItem
|
||||
private partial class DrawableUserDropdownMenuItem : DrawableOsuDropdownMenuItem
|
||||
{
|
||||
public DrawableUserDropdownMenuItem(MenuItem item)
|
||||
: base(item)
|
||||
@ -74,7 +74,7 @@ namespace osu.Game.Misskey.Overlays.Login
|
||||
}
|
||||
}
|
||||
|
||||
private class UserDropdownHeader : OsuDropdownHeader
|
||||
private partial class UserDropdownHeader : OsuDropdownHeader
|
||||
{
|
||||
public const float LABEL_LEFT_MARGIN = 20;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Misskey.Overlays.Login;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class LoginOverlay : OsuFocusedOverlayContainer
|
||||
public partial class LoginOverlay : OsuFocusedOverlayContainer
|
||||
{
|
||||
private LoginPanel panel;
|
||||
|
||||
|
@ -27,7 +27,7 @@ using osu.Framework.Utils;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class MedalOverlay : FocusedOverlayContainer
|
||||
public partial class MedalOverlay : FocusedOverlayContainer
|
||||
{
|
||||
public const float DISC_SIZE = 400;
|
||||
|
||||
@ -266,7 +266,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
Expire();
|
||||
}
|
||||
|
||||
private class BackgroundStrip : Container
|
||||
private partial class BackgroundStrip : Container
|
||||
{
|
||||
public BackgroundStrip(float start, float end)
|
||||
{
|
||||
@ -286,7 +286,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
}
|
||||
}
|
||||
|
||||
private class MedalParticle : CircularContainer
|
||||
private partial class MedalParticle : CircularContainer
|
||||
{
|
||||
private readonly float direction;
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osu.Game.Misskey.Users;
|
||||
namespace osu.Game.Misskey.Overlays.MedalSplash
|
||||
{
|
||||
[LongRunningLoad]
|
||||
public class DrawableMedal : Container, IStateful<DisplayState>
|
||||
public partial class DrawableMedal : Container, IStateful<DisplayState>
|
||||
{
|
||||
private const float scale_when_unlocked = 0.76f;
|
||||
private const float scale_when_full = 0.6f;
|
||||
|
@ -13,7 +13,7 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
public class FilterControl : Container
|
||||
public partial class FilterControl : Container
|
||||
{
|
||||
public Action<FilterCriteria> FilterChanged;
|
||||
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
Collection = collectionDropdown.Current.Value?.Collection
|
||||
};
|
||||
|
||||
public class FilterTextBox : BasicSearchTextBox
|
||||
public partial class FilterTextBox : BasicSearchTextBox
|
||||
{
|
||||
protected override bool AllowCommit => true;
|
||||
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Database;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
public class FilterCriteria
|
||||
public partial class FilterCriteria
|
||||
{
|
||||
/// <summary>
|
||||
/// The search text.
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
/// <summary>
|
||||
/// Handles <see cref="GlobalAction"/>s related to music playback, and displays <see cref="Toast"/>s via the global <see cref="OnScreenDisplay"/> accordingly.
|
||||
/// </summary>
|
||||
public class MusicKeyBindingHandler : Component, IKeyBindingHandler<GlobalAction>
|
||||
public partial class MusicKeyBindingHandler : Component, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
[Resolved]
|
||||
private IBindable<WorkingBeatmap> beatmap { get; set; }
|
||||
@ -89,7 +89,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
}
|
||||
|
||||
private class MusicActionToast : Toast
|
||||
private partial class MusicActionToast : Toast
|
||||
{
|
||||
private readonly GlobalAction action;
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
/// <summary>
|
||||
/// A <see cref="CollectionDropdown"/> for use in the <see cref="NowPlayingOverlay"/>.
|
||||
/// </summary>
|
||||
public class NowPlayingCollectionDropdown : CollectionDropdown
|
||||
public partial class NowPlayingCollectionDropdown : CollectionDropdown
|
||||
{
|
||||
protected override bool ShowManageCollectionsItem => false;
|
||||
|
||||
@ -25,7 +25,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
|
||||
protected override CollectionDropdownMenu CreateCollectionMenu() => new CollectionsMenu();
|
||||
|
||||
private class CollectionsMenu : CollectionDropdownMenu
|
||||
private partial class CollectionsMenu : CollectionDropdownMenu
|
||||
{
|
||||
public CollectionsMenu()
|
||||
{
|
||||
@ -42,7 +42,7 @@ namespace osu.Game.Misskey.Overlays.Music
|
||||
}
|
||||
}
|
||||
|
||||
private class CollectionsHeader : CollectionDropdownHeader
|
||||
private partial class CollectionsHeader : CollectionDropdownHeader
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
public class Playlist : OsuRearrangeableListContainer<Live<BeatmapSetInfo>>
|
||||
public partial class Playlist : OsuRearrangeableListContainer<Live<BeatmapSetInfo>>
|
||||
{
|
||||
public Action<Live<BeatmapSetInfo>>? RequestSelection;
|
||||
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
public class PlaylistItem : OsuRearrangeableListItem<Live<BeatmapSetInfo>>, IFilterable
|
||||
public partial class PlaylistItem : OsuRearrangeableListItem<Live<BeatmapSetInfo>>, IFilterable
|
||||
{
|
||||
public readonly Bindable<Live<BeatmapSetInfo>> SelectedSet = new Bindable<Live<BeatmapSetInfo>>();
|
||||
|
||||
|
@ -21,7 +21,7 @@ using Realms;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Music
|
||||
{
|
||||
public class PlaylistOverlay : VisibilityContainer
|
||||
public partial class PlaylistOverlay : VisibilityContainer
|
||||
{
|
||||
private const float transition_duration = 600;
|
||||
private const float playlist_height = 510;
|
||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// <summary>
|
||||
/// Handles playback of the global music track.
|
||||
/// </summary>
|
||||
public class MusicController : CompositeDrawable
|
||||
public partial class MusicController : CompositeDrawable
|
||||
{
|
||||
[Resolved]
|
||||
private BeatmapManager beatmaps { get; set; }
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Misskey.Overlays.News.Displays
|
||||
/// <summary>
|
||||
/// Lists articles in a vertical flow for a specified year.
|
||||
/// </summary>
|
||||
public class ArticleListing : CompositeDrawable
|
||||
public partial class ArticleListing : CompositeDrawable
|
||||
{
|
||||
private readonly Action fetchMorePosts;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.News
|
||||
{
|
||||
public class NewsCard : OsuHoverContainer
|
||||
public partial class NewsCard : OsuHoverContainer
|
||||
{
|
||||
protected override IEnumerable<Drawable> EffectTargets => new[] { background };
|
||||
|
||||
@ -124,7 +124,7 @@ namespace osu.Game.Misskey.Overlays.News
|
||||
main.AddText(post.Author, t => t.Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold));
|
||||
}
|
||||
|
||||
private class DateContainer : CircularContainer, IHasCustomTooltip<DateTimeOffset>
|
||||
private partial class DateContainer : CircularContainer, IHasCustomTooltip<DateTimeOffset>
|
||||
{
|
||||
private readonly DateTimeOffset date;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.News
|
||||
{
|
||||
public class NewsHeader : BreadcrumbControlOverlayHeader
|
||||
public partial class NewsHeader : BreadcrumbControlOverlayHeader
|
||||
{
|
||||
public static LocalisableString FrontPageString => NewsStrings.IndexTitleInfo;
|
||||
|
||||
@ -62,7 +62,7 @@ namespace osu.Game.Misskey.Overlays.News
|
||||
|
||||
protected override OverlayTitle CreateTitle() => new NewsHeaderTitle();
|
||||
|
||||
private class NewsHeaderTitle : OverlayTitle
|
||||
private partial class NewsHeaderTitle : OverlayTitle
|
||||
{
|
||||
public NewsHeaderTitle()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osu.Framework.Graphics.Textures;
|
||||
namespace osu.Game.Misskey.Overlays.News
|
||||
{
|
||||
[LongRunningLoad]
|
||||
public class NewsPostBackground : Sprite
|
||||
public partial class NewsPostBackground : Sprite
|
||||
{
|
||||
private readonly string sourceUrl;
|
||||
|
||||
|
@ -23,7 +23,7 @@ using osu.Framework.Platform;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
{
|
||||
public class MonthSection : CompositeDrawable
|
||||
public partial class MonthSection : CompositeDrawable
|
||||
{
|
||||
public int Year { get; private set; }
|
||||
public int Month { get; private set; }
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
sampleClose = audio.Samples.Get(@"UI/dropdown-close");
|
||||
}
|
||||
|
||||
private class DropdownHeader : OsuClickableContainer
|
||||
private partial class DropdownHeader : OsuClickableContainer
|
||||
{
|
||||
public readonly BindableBool Expanded = new BindableBool();
|
||||
|
||||
@ -122,7 +122,7 @@ namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
}
|
||||
}
|
||||
|
||||
private class PostButton : OsuHoverContainer
|
||||
private partial class PostButton : OsuHoverContainer
|
||||
{
|
||||
protected override IEnumerable<Drawable> EffectTargets => new[] { text };
|
||||
|
||||
@ -154,7 +154,7 @@ namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
}
|
||||
}
|
||||
|
||||
private class PostsContainer : Container
|
||||
private partial class PostsContainer : Container
|
||||
{
|
||||
public readonly BindableBool Expanded = new BindableBool();
|
||||
|
||||
|
@ -13,7 +13,7 @@ using System.Linq;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
{
|
||||
public class NewsSidebar : OverlaySidebar
|
||||
public partial class NewsSidebar : OverlaySidebar
|
||||
{
|
||||
[Cached]
|
||||
public readonly Bindable<APINewsSidebar> Metadata = new Bindable<APINewsSidebar>();
|
||||
|
@ -17,7 +17,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
{
|
||||
public class YearsPanel : CompositeDrawable
|
||||
public partial class YearsPanel : CompositeDrawable
|
||||
{
|
||||
private readonly Bindable<APINewsSidebar> metadata = new Bindable<APINewsSidebar>();
|
||||
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Misskey.Overlays.News.Sidebar
|
||||
Show();
|
||||
}
|
||||
|
||||
public class YearButton : OsuHoverContainer
|
||||
public partial class YearButton : OsuHoverContainer
|
||||
{
|
||||
public int Year { get; }
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Misskey.Overlays.News.Sidebar;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class NewsOverlay : OnlineOverlay<NewsHeader>
|
||||
public partial class NewsOverlay : OnlineOverlay<NewsHeader>
|
||||
{
|
||||
private readonly Bindable<string> article = new Bindable<string>();
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public abstract class Notification : Container
|
||||
public abstract partial class Notification : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// User requested close.
|
||||
@ -169,7 +169,7 @@ namespace osu.Game.Misskey.Overlays.Notifications
|
||||
Expire();
|
||||
}
|
||||
|
||||
private class CloseButton : OsuClickableContainer
|
||||
private partial class CloseButton : OsuClickableContainer
|
||||
{
|
||||
private Color4 hoverColour;
|
||||
|
||||
@ -209,7 +209,7 @@ namespace osu.Game.Misskey.Overlays.Notifications
|
||||
}
|
||||
}
|
||||
|
||||
public class NotificationLight : Container
|
||||
public partial class NotificationLight : Container
|
||||
{
|
||||
private bool pulsate;
|
||||
private Container pulsateLayer;
|
||||
|
@ -19,7 +19,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public class NotificationSection : AlwaysUpdateFillFlowContainer<Drawable>
|
||||
public partial class NotificationSection : AlwaysUpdateFillFlowContainer<Drawable>
|
||||
{
|
||||
private OsuSpriteText countDrawable;
|
||||
|
||||
@ -136,7 +136,7 @@ namespace osu.Game.Misskey.Overlays.Notifications
|
||||
return count;
|
||||
}
|
||||
|
||||
private class ClearAllButton : OsuClickableContainer
|
||||
private partial class ClearAllButton : OsuClickableContainer
|
||||
{
|
||||
private readonly OsuSpriteText text;
|
||||
|
||||
@ -163,7 +163,7 @@ namespace osu.Game.Misskey.Overlays.Notifications
|
||||
}
|
||||
}
|
||||
|
||||
public class AlwaysUpdateFillFlowContainer<T> : FillFlowContainer<T>
|
||||
public partial class AlwaysUpdateFillFlowContainer<T> : FillFlowContainer<T>
|
||||
where T : Drawable
|
||||
{
|
||||
// this is required to ensure correct layout and scheduling on children.
|
||||
|
@ -10,7 +10,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public class ProgressCompletionNotification : SimpleNotification
|
||||
public partial class ProgressCompletionNotification : SimpleNotification
|
||||
{
|
||||
public ProgressCompletionNotification()
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public class ProgressNotification : Notification, IHasCompletionTarget
|
||||
public partial class ProgressNotification : Notification, IHasCompletionTarget
|
||||
{
|
||||
private const float loading_spinner_size = 22;
|
||||
|
||||
@ -234,7 +234,7 @@ namespace osu.Game.Misskey.Overlays.Notifications
|
||||
/// </summary>
|
||||
public Func<bool> CompletionClickAction;
|
||||
|
||||
private class ProgressBar : Container
|
||||
private partial class ProgressBar : Container
|
||||
{
|
||||
private readonly Box box;
|
||||
|
||||
|
@ -7,7 +7,7 @@ using osu.Framework.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public class SimpleErrorNotification : SimpleNotification
|
||||
public partial class SimpleErrorNotification : SimpleNotification
|
||||
{
|
||||
public override string PopInSampleName => "UI/error-notification-pop-in";
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Notifications
|
||||
{
|
||||
public class SimpleNotification : Notification
|
||||
public partial class SimpleNotification : Notification
|
||||
{
|
||||
private LocalisableString text;
|
||||
|
||||
|
@ -28,7 +28,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class NowPlayingOverlay : OsuFocusedOverlayContainer, INamedOverlayComponent
|
||||
public partial class NowPlayingOverlay : OsuFocusedOverlayContainer, INamedOverlayComponent
|
||||
{
|
||||
public string IconTexture => "Icons/Hexacons/music";
|
||||
public LocalisableString Title => NowPlayingStrings.HeaderTitle;
|
||||
@ -340,7 +340,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
musicController.TrackChanged -= trackChanged;
|
||||
}
|
||||
|
||||
private class MusicIconButton : IconButton
|
||||
private partial class MusicIconButton : IconButton
|
||||
{
|
||||
public MusicIconButton()
|
||||
{
|
||||
@ -364,7 +364,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
}
|
||||
}
|
||||
|
||||
private class Background : BufferedContainer
|
||||
private partial class Background : BufferedContainer
|
||||
{
|
||||
private readonly Sprite sprite;
|
||||
private readonly WorkingBeatmap beatmap;
|
||||
@ -403,7 +403,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
}
|
||||
}
|
||||
|
||||
private class DragContainer : Container
|
||||
private partial class DragContainer : Container
|
||||
{
|
||||
protected override bool OnDragStart(DragStartEvent e)
|
||||
{
|
||||
@ -427,7 +427,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
}
|
||||
}
|
||||
|
||||
private class HoverableProgressBar : ProgressBar
|
||||
private partial class HoverableProgressBar : ProgressBar
|
||||
{
|
||||
public HoverableProgressBar()
|
||||
: base(true)
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.OSD
|
||||
{
|
||||
public abstract class Toast : Container
|
||||
public abstract partial class Toast : Container
|
||||
{
|
||||
private const int toast_minimum_width = 240;
|
||||
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.OSD
|
||||
{
|
||||
public class TrackedSettingToast : Toast
|
||||
public partial class TrackedSettingToast : Toast
|
||||
{
|
||||
private const int lights_bottom_margin = 40;
|
||||
|
||||
@ -129,7 +129,7 @@ namespace osu.Game.Misskey.Overlays.OSD
|
||||
sampleChange = audio.Samples.Get("UI/osd-change");
|
||||
}
|
||||
|
||||
private class OptionLight : Container
|
||||
private partial class OptionLight : Container
|
||||
{
|
||||
private Color4 glowingColour, idleColour;
|
||||
|
||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// An on-screen display which automatically tracks and displays toast notifications for <seealso cref="TrackedSettings"/>.
|
||||
/// Can also display custom content via <see cref="Display(Toast)"/>
|
||||
/// </summary>
|
||||
public class OnScreenDisplay : Container
|
||||
public partial class OnScreenDisplay : Container
|
||||
{
|
||||
private readonly Container box;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Online;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OnlineOverlay<T> : FullscreenOverlay<T>
|
||||
public abstract partial class OnlineOverlay<T> : FullscreenOverlay<T>
|
||||
where T : OverlayHeader
|
||||
{
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
@ -9,7 +9,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class OverlayColourProvider
|
||||
public partial class OverlayColourProvider
|
||||
{
|
||||
private readonly OverlayColourScheme colourScheme;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlayHeader : Container
|
||||
public abstract partial class OverlayHeader : Container
|
||||
{
|
||||
public OverlayTitle Title { get; }
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Framework.Graphics.Textures;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class OverlayHeaderBackground : CompositeDrawable
|
||||
public partial class OverlayHeaderBackground : CompositeDrawable
|
||||
{
|
||||
public OverlayHeaderBackground(string textureName)
|
||||
{
|
||||
@ -21,7 +21,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
InternalChild = new Background(textureName);
|
||||
}
|
||||
|
||||
private class Background : Sprite
|
||||
private partial class Background : Sprite
|
||||
{
|
||||
private readonly string textureName;
|
||||
|
||||
|
@ -19,7 +19,7 @@ using osu.Framework.Extensions;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class OverlayPanelDisplayStyleControl : OsuTabControl<OverlayPanelDisplayStyle>
|
||||
public partial class OverlayPanelDisplayStyleControl : OsuTabControl<OverlayPanelDisplayStyle>
|
||||
{
|
||||
protected override Dropdown<OverlayPanelDisplayStyle> CreateDropdown() => null;
|
||||
|
||||
@ -51,7 +51,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
Direction = FillDirection.Horizontal
|
||||
};
|
||||
|
||||
private class PanelDisplayTabItem : TabItem<OverlayPanelDisplayStyle>, IHasTooltip
|
||||
private partial class PanelDisplayTabItem : TabItem<OverlayPanelDisplayStyle>, IHasTooltip
|
||||
{
|
||||
public IconUsage Icon
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class OverlayRulesetSelector : RulesetSelector
|
||||
public partial class OverlayRulesetSelector : RulesetSelector
|
||||
{
|
||||
public OverlayRulesetSelector()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class OverlayRulesetTabItem : TabItem<RulesetInfo>, IHasTooltip
|
||||
public partial class OverlayRulesetTabItem : TabItem<RulesetInfo>, IHasTooltip
|
||||
{
|
||||
private Color4 accentColour;
|
||||
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// <summary>
|
||||
/// <see cref="UserTrackingScrollContainer"/> which provides <see cref="ScrollToTopButton"/>. Mostly used in <see cref="FullscreenOverlay{T}"/>.
|
||||
/// </summary>
|
||||
public class OverlayScrollContainer : UserTrackingScrollContainer
|
||||
public partial class OverlayScrollContainer : UserTrackingScrollContainer
|
||||
{
|
||||
/// <summary>
|
||||
/// Scroll position at which the <see cref="ScrollToTopButton"/> will be shown.
|
||||
@ -62,7 +62,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
Button.State = Visibility.Hidden;
|
||||
}
|
||||
|
||||
public class ScrollToTopButton : OsuHoverContainer
|
||||
public partial class ScrollToTopButton : OsuHoverContainer
|
||||
{
|
||||
private const int fade_duration = 500;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlaySidebar : CompositeDrawable
|
||||
public abstract partial class OverlaySidebar : CompositeDrawable
|
||||
{
|
||||
private readonly Box sidebarBackground;
|
||||
private readonly Box scrollbarBackground;
|
||||
|
@ -12,7 +12,7 @@ using JetBrains.Annotations;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlayStreamControl<T> : TabControl<T>
|
||||
public abstract partial class OverlayStreamControl<T> : TabControl<T>
|
||||
{
|
||||
protected OverlayStreamControl()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osu.Framework.Localisation;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlayStreamItem<T> : TabItem<T>
|
||||
public abstract partial class OverlayStreamItem<T> : TabItem<T>
|
||||
{
|
||||
public readonly Bindable<T> SelectedItem = new Bindable<T>();
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlayTabControl<T> : OsuTabControl<T>
|
||||
public abstract partial class OverlayTabControl<T> : OsuTabControl<T>
|
||||
{
|
||||
private readonly Box bar;
|
||||
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
|
||||
protected override TabItem<T> CreateTabItem(T value) => new OverlayTabItem(value);
|
||||
|
||||
protected class OverlayTabItem : TabItem<T>, IHasAccentColour
|
||||
protected partial class OverlayTabItem : TabItem<T>, IHasAccentColour
|
||||
{
|
||||
protected readonly ExpandingBar Bar;
|
||||
protected readonly OsuSpriteText Text;
|
||||
|
@ -15,7 +15,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class OverlayTitle : CompositeDrawable, INamedOverlayComponent
|
||||
public abstract partial class OverlayTitle : CompositeDrawable, INamedOverlayComponent
|
||||
{
|
||||
public const float ICON_SIZE = 30;
|
||||
|
||||
@ -69,7 +69,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
};
|
||||
}
|
||||
|
||||
private class OverlayTitleIcon : Sprite
|
||||
private partial class OverlayTitleIcon : Sprite
|
||||
{
|
||||
private readonly string textureName;
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// Automatically performs a data fetch on load.
|
||||
/// </remarks>
|
||||
/// <typeparam name="T">The type of the API response.</typeparam>
|
||||
public abstract class OverlayView<T> : CompositeDrawable
|
||||
public abstract partial class OverlayView<T> : CompositeDrawable
|
||||
where T : class
|
||||
{
|
||||
[Resolved]
|
||||
|
@ -18,7 +18,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class RestoreDefaultValueButton<T> : OsuButton, IHasTooltip, IHasCurrentValue<T>
|
||||
public partial class RestoreDefaultValueButton<T> : OsuButton, IHasTooltip, IHasCurrentValue<T>
|
||||
{
|
||||
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
|
||||
|
||||
|
@ -11,7 +11,7 @@ namespace osu.Game.Misskey.Overlays.Settings
|
||||
/// <summary>
|
||||
/// A <see cref="SettingsButton"/> with pink colours to mark dangerous/destructive actions.
|
||||
/// </summary>
|
||||
public class DangerousSettingsButton : SettingsButton
|
||||
public partial class DangerousSettingsButton : SettingsButton
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
|
@ -12,7 +12,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class OutlinedTextBox : OsuTextBox
|
||||
public partial class OutlinedTextBox : OsuTextBox
|
||||
{
|
||||
private const float border_thickness = 3;
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Misskey.Overlays.Settings
|
||||
/// A <see cref="SettingsSubsection"/> which provides subclasses with the <see cref="IRulesetConfigManager"/>
|
||||
/// from the <see cref="Ruleset"/>'s <see cref="Ruleset.CreateConfig(SettingsStore)"/>.
|
||||
/// </summary>
|
||||
public abstract class RulesetSettingsSubsection : SettingsSubsection
|
||||
public abstract partial class RulesetSettingsSubsection : SettingsSubsection
|
||||
{
|
||||
private readonly Ruleset ruleset;
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsButton : RoundedButton, IHasTooltip
|
||||
public partial class SettingsButton : RoundedButton, IHasTooltip
|
||||
{
|
||||
public SettingsButton()
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsCheckbox : SettingsItem<bool>
|
||||
public partial class SettingsCheckbox : SettingsItem<bool>
|
||||
{
|
||||
private LocalisableString labelText;
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsDropdown<T> : SettingsItem<T>
|
||||
public partial class SettingsDropdown<T> : SettingsItem<T>
|
||||
{
|
||||
protected new OsuDropdown<T> Control => (OsuDropdown<T>)base.Control;
|
||||
|
||||
@ -34,7 +34,7 @@ namespace osu.Game.Misskey.Overlays.Settings
|
||||
|
||||
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
||||
|
||||
protected class DropdownControl : OsuDropdown<T>
|
||||
protected partial class DropdownControl : OsuDropdown<T>
|
||||
{
|
||||
public DropdownControl()
|
||||
{
|
||||
|
@ -9,12 +9,12 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsEnumDropdown<T> : SettingsDropdown<T>
|
||||
public partial class SettingsEnumDropdown<T> : SettingsDropdown<T>
|
||||
where T : struct, Enum
|
||||
{
|
||||
protected override OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
||||
|
||||
protected new class DropdownControl : OsuEnumDropdown<T>
|
||||
protected new partial class DropdownControl : OsuEnumDropdown<T>
|
||||
{
|
||||
public DropdownControl()
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsFooter : FillFlowContainer
|
||||
public partial class SettingsFooter : FillFlowContainer
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuGameBase game, RulesetStore rulesets)
|
||||
@ -79,7 +79,7 @@ namespace osu.Game.Misskey.Overlays.Settings
|
||||
}
|
||||
}
|
||||
|
||||
private class BuildDisplay : OsuAnimatedButton
|
||||
private partial class BuildDisplay : OsuAnimatedButton
|
||||
{
|
||||
private readonly string version;
|
||||
private readonly bool isDebug;
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays.Toolbar;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsHeader : Container
|
||||
public partial class SettingsHeader : Container
|
||||
{
|
||||
private readonly LocalisableString heading;
|
||||
private readonly LocalisableString subheading;
|
||||
|
@ -23,7 +23,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public abstract class SettingsItem<T> : Container, IFilterable, ISettingsItem, IHasCurrentValue<T>, IHasTooltip
|
||||
public abstract partial class SettingsItem<T> : Container, IFilterable, ISettingsItem, IHasCurrentValue<T>, IHasTooltip
|
||||
{
|
||||
protected abstract Drawable CreateControl();
|
||||
|
||||
|
@ -11,14 +11,14 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsNumberBox : SettingsItem<int?>
|
||||
public partial class SettingsNumberBox : SettingsItem<int?>
|
||||
{
|
||||
protected override Drawable CreateControl() => new NumberControl
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
};
|
||||
|
||||
private sealed class NumberControl : CompositeDrawable, IHasCurrentValue<int?>
|
||||
private sealed partial class NumberControl : CompositeDrawable, IHasCurrentValue<int?>
|
||||
{
|
||||
private readonly BindableWithCurrent<int?> current = new BindableWithCurrent<int?>();
|
||||
|
||||
@ -68,7 +68,7 @@ namespace osu.Game.Misskey.Overlays.Settings
|
||||
}
|
||||
}
|
||||
|
||||
private class OutlinedNumberBox : OutlinedTextBox
|
||||
private partial class OutlinedNumberBox : OutlinedTextBox
|
||||
{
|
||||
protected override bool AllowIme => false;
|
||||
|
||||
|
@ -20,7 +20,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public abstract class SettingsSection : Container, IHasFilterableChildren
|
||||
public abstract partial class SettingsSection : Container, IFilterable
|
||||
{
|
||||
protected FillFlowContainer FlowContent;
|
||||
protected override Container<Drawable> Content => FlowContent;
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsSidebar : ExpandingButtonContainer
|
||||
public partial class SettingsSidebar : ExpandingButtonContainer
|
||||
{
|
||||
public const float DEFAULT_WIDTH = 70;
|
||||
public const int EXPANDED_WIDTH = 200;
|
||||
|
@ -10,12 +10,12 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsSlider<T> : SettingsSlider<T, OsuSliderBar<T>>
|
||||
public partial class SettingsSlider<T> : SettingsSlider<T, OsuSliderBar<T>>
|
||||
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||
{
|
||||
}
|
||||
|
||||
public class SettingsSlider<TValue, TSlider> : SettingsItem<TValue>
|
||||
public partial class SettingsSlider<TValue, TSlider> : SettingsItem<TValue>
|
||||
where TValue : struct, IEquatable<TValue>, IComparable<TValue>, IConvertible
|
||||
where TSlider : OsuSliderBar<TValue>, new()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ using osu.Game.Overlays;
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
[ExcludeFromDynamicCompile]
|
||||
public abstract class SettingsSubsection : FillFlowContainer, IHasFilterableChildren
|
||||
public abstract partial class SettingsSubsection : FillFlowContainer, IFilterable
|
||||
{
|
||||
protected override Container<Drawable> Content => FlowContent;
|
||||
|
||||
|
@ -9,7 +9,7 @@ using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SettingsTextBox : SettingsItem<string>
|
||||
public partial class SettingsTextBox : SettingsItem<string>
|
||||
{
|
||||
protected override Drawable CreateControl() => new OutlinedTextBox
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public abstract class SidebarButton : OsuButton
|
||||
public abstract partial class SidebarButton : OsuButton
|
||||
{
|
||||
protected const double FADE_DURATION = 500;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Settings
|
||||
{
|
||||
public class SidebarIconButton : SidebarButton
|
||||
public partial class SidebarIconButton : SidebarButton
|
||||
{
|
||||
private const float selection_indicator_height_active = 18;
|
||||
private const float selection_indicator_height_inactive = 4;
|
||||
|
@ -21,7 +21,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class SettingsToolboxGroup : Container, IExpandable
|
||||
public partial class SettingsToolboxGroup : Container, IExpandable
|
||||
{
|
||||
public const int CONTAINER_WIDTH = 270;
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
/// An overlay header which contains a <see cref="OsuTabControl{T}"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of item to be represented by tabs.</typeparam>
|
||||
public abstract class TabControlOverlayHeader<T> : OverlayHeader, IHasCurrentValue<T>
|
||||
public abstract partial class TabControlOverlayHeader<T> : OverlayHeader, IHasCurrentValue<T>
|
||||
{
|
||||
protected OsuTabControl<T> TabControl;
|
||||
|
||||
@ -80,7 +80,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
[NotNull]
|
||||
protected virtual OsuTabControl<T> CreateTabControl() => new OverlayHeaderTabControl();
|
||||
|
||||
public class OverlayHeaderTabControl : OverlayTabControl<T>
|
||||
public partial class OverlayHeaderTabControl : OverlayTabControl<T>
|
||||
{
|
||||
private const float bar_height = 1;
|
||||
|
||||
@ -103,7 +103,7 @@ namespace osu.Game.Misskey.Overlays
|
||||
Direction = FillDirection.Horizontal,
|
||||
};
|
||||
|
||||
private class OverlayHeaderTabItem : OverlayTabItem
|
||||
private partial class OverlayHeaderTabItem : OverlayTabItem
|
||||
{
|
||||
public OverlayHeaderTabItem(T value)
|
||||
: base(value)
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Online.API;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class TabbableOnlineOverlay<THeader, TEnum> : OnlineOverlay<THeader>
|
||||
public abstract partial class TabbableOnlineOverlay<THeader, TEnum> : OnlineOverlay<THeader>
|
||||
where THeader : TabControlOverlayHeader<TEnum>
|
||||
{
|
||||
private readonly IBindable<APIState> apiState = new Bindable<APIState>();
|
||||
|
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class VersionManager : VisibilityContainer
|
||||
public partial class VersionManager : VisibilityContainer
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, TextureStore textures, OsuGameBase game)
|
||||
|
@ -19,7 +19,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Volume
|
||||
{
|
||||
public class MuteButton : OsuButton, IHasCurrentValue<bool>
|
||||
public partial class MuteButton : OsuButton, IHasCurrentValue<bool>
|
||||
{
|
||||
private readonly Bindable<bool> current = new Bindable<bool>();
|
||||
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Input.Bindings;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Volume
|
||||
{
|
||||
public class VolumeControlReceptor : Container, IScrollBindingHandler<GlobalAction>, IHandleGlobalKeyboardInput
|
||||
public partial class VolumeControlReceptor : Container, IScrollBindingHandler<GlobalAction>, IHandleGlobalKeyboardInput
|
||||
{
|
||||
public Func<GlobalAction, bool> ActionRequested;
|
||||
public Func<GlobalAction, float, bool, bool> ScrollActionRequested;
|
||||
|
@ -29,7 +29,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Volume
|
||||
{
|
||||
public class VolumeMeter : Container, IStateful<SelectionState>
|
||||
public partial class VolumeMeter : Container, IStateful<SelectionState>
|
||||
{
|
||||
private CircularProgress volumeCircle;
|
||||
private CircularProgress volumeCircleGlow;
|
||||
|
@ -23,7 +23,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class VolumeOverlay : VisibilityContainer
|
||||
public partial class VolumeOverlay : VisibilityContainer
|
||||
{
|
||||
private const float offset = 10;
|
||||
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public abstract class WaveOverlayContainer : OsuFocusedOverlayContainer
|
||||
public abstract partial class WaveOverlayContainer : OsuFocusedOverlayContainer
|
||||
{
|
||||
protected readonly WaveContainer Waves;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics.Containers.Markdown;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
{
|
||||
public class WikiMarkdownContainer : OsuMarkdownContainer
|
||||
public partial class WikiMarkdownContainer : OsuMarkdownContainer
|
||||
{
|
||||
public string CurrentPath
|
||||
{
|
||||
@ -44,7 +44,7 @@ namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
|
||||
public override MarkdownTextFlowContainer CreateTextFlow() => new WikiMarkdownTextFlowContainer();
|
||||
|
||||
private class WikiMarkdownTextFlowContainer : OsuMarkdownTextFlowContainer
|
||||
private partial class WikiMarkdownTextFlowContainer : OsuMarkdownTextFlowContainer
|
||||
{
|
||||
protected override void AddImage(LinkInline linkInline) => AddDrawable(new WikiMarkdownImage(linkInline));
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ using osu.Game.Graphics.Containers.Markdown;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
{
|
||||
public class WikiMarkdownImage : OsuMarkdownImage
|
||||
public partial class WikiMarkdownImage : OsuMarkdownImage
|
||||
{
|
||||
public WikiMarkdownImage(LinkInline linkInline)
|
||||
: base(linkInline)
|
||||
|
@ -13,7 +13,7 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
{
|
||||
public class WikiMarkdownImageBlock : FillFlowContainer
|
||||
public partial class WikiMarkdownImageBlock : FillFlowContainer
|
||||
{
|
||||
[Resolved]
|
||||
private IMarkdownTextFlowComponent parentFlowComponent { get; set; }
|
||||
@ -49,7 +49,7 @@ namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
textFlow.AddText(linkInline.Title);
|
||||
}
|
||||
|
||||
private class BlockMarkdownImage : WikiMarkdownImage
|
||||
private partial class BlockMarkdownImage : WikiMarkdownImage
|
||||
{
|
||||
public BlockMarkdownImage(LinkInline linkInline)
|
||||
: base(linkInline)
|
||||
@ -60,7 +60,7 @@ namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
|
||||
protected override ImageContainer CreateImageContainer(string url) => new BlockImageContainer(url);
|
||||
|
||||
private class BlockImageContainer : ImageContainer
|
||||
private partial class BlockImageContainer : ImageContainer
|
||||
{
|
||||
public BlockImageContainer(string url)
|
||||
: base(url)
|
||||
@ -71,7 +71,7 @@ namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
|
||||
protected override Sprite CreateImageSprite() => new ImageSprite();
|
||||
|
||||
private class ImageSprite : Sprite
|
||||
private partial class ImageSprite : Sprite
|
||||
{
|
||||
public ImageSprite()
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
{
|
||||
public class WikiNoticeContainer : FillFlowContainer
|
||||
public partial class WikiNoticeContainer : FillFlowContainer
|
||||
{
|
||||
private readonly bool isOutdated;
|
||||
private readonly bool needsCleanup;
|
||||
@ -62,7 +62,7 @@ namespace osu.Game.Misskey.Overlays.Wiki.Markdown
|
||||
}
|
||||
}
|
||||
|
||||
private class NoticeBox : Container
|
||||
private partial class NoticeBox : Container
|
||||
{
|
||||
[Resolved]
|
||||
private IMarkdownTextFlowComponent parentFlowComponent { get; set; }
|
||||
|
@ -12,7 +12,7 @@ using osu.Game.Misskey.Overlays.Wiki.Markdown;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiArticlePage : CompositeDrawable
|
||||
public partial class WikiArticlePage : CompositeDrawable
|
||||
{
|
||||
public Container SidebarContainer { get; }
|
||||
|
||||
@ -65,7 +65,7 @@ namespace osu.Game.Misskey.Overlays.Wiki
|
||||
};
|
||||
}
|
||||
|
||||
private class ArticleMarkdownContainer : WikiMarkdownContainer
|
||||
private partial class ArticleMarkdownContainer : WikiMarkdownContainer
|
||||
{
|
||||
public Action<HeadingBlock, MarkdownHeading> OnAddHeading;
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiHeader : BreadcrumbControlOverlayHeader
|
||||
public partial class WikiHeader : BreadcrumbControlOverlayHeader
|
||||
{
|
||||
private const string index_path = "Main_Page";
|
||||
|
||||
@ -75,7 +75,7 @@ namespace osu.Game.Misskey.Overlays.Wiki
|
||||
|
||||
protected override OverlayTitle CreateTitle() => new WikiHeaderTitle();
|
||||
|
||||
private class WikiHeaderTitle : OverlayTitle
|
||||
private partial class WikiHeaderTitle : OverlayTitle
|
||||
{
|
||||
public WikiHeaderTitle()
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiMainPage : FillFlowContainer
|
||||
public partial class WikiMainPage : FillFlowContainer
|
||||
{
|
||||
public string Markdown;
|
||||
|
||||
|
@ -22,7 +22,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiPanelContainer : Container
|
||||
public partial class WikiPanelContainer : Container
|
||||
{
|
||||
private WikiPanelMarkdownContainer panelContainer;
|
||||
|
||||
@ -78,7 +78,7 @@ namespace osu.Game.Misskey.Overlays.Wiki
|
||||
Height = Math.Max(panelContainer.Height, Parent.DrawHeight);
|
||||
}
|
||||
|
||||
private class WikiPanelMarkdownContainer : WikiMarkdownContainer
|
||||
private partial class WikiPanelMarkdownContainer : WikiMarkdownContainer
|
||||
{
|
||||
private readonly bool isFullWidth;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace osu.Game.Misskey.Overlays.Wiki
|
||||
};
|
||||
}
|
||||
|
||||
private class WikiPanelHeading : OsuMarkdownHeading
|
||||
private partial class WikiPanelHeading : OsuMarkdownHeading
|
||||
{
|
||||
public bool IsFullWidth;
|
||||
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiSidebar : OverlaySidebar
|
||||
public partial class WikiSidebar : OverlaySidebar
|
||||
{
|
||||
private WikiTableOfContents tableOfContents;
|
||||
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays.Wiki
|
||||
{
|
||||
public class WikiTableOfContents : CompositeDrawable
|
||||
public partial class WikiTableOfContents : CompositeDrawable
|
||||
{
|
||||
private readonly FillFlowContainer content;
|
||||
|
||||
@ -54,7 +54,7 @@ namespace osu.Game.Misskey.Overlays.Wiki
|
||||
content.Add(lastMainTitle = entry.With(d => d.Margin = new MarginPadding { Bottom = 5 }));
|
||||
}
|
||||
|
||||
private class TableOfContentsEntry : OsuHoverContainer
|
||||
private partial class TableOfContentsEntry : OsuHoverContainer
|
||||
{
|
||||
private readonly MarkdownHeading target;
|
||||
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Misskey.Overlays.Wiki;
|
||||
|
||||
namespace osu.Game.Misskey.Overlays
|
||||
{
|
||||
public class WikiOverlay : OnlineOverlay<WikiHeader>
|
||||
public partial class WikiOverlay : OnlineOverlay<WikiHeader>
|
||||
{
|
||||
private const string index_path = @"main_page";
|
||||
|
||||
|
@ -8,7 +8,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Misskey.Users
|
||||
{
|
||||
public class Badge
|
||||
public partial class Badge
|
||||
{
|
||||
[JsonProperty("awarded_at")]
|
||||
public DateTimeOffset AwardedAt;
|
||||
|
@ -7,7 +7,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Misskey.Users
|
||||
{
|
||||
public class CountryStatistics
|
||||
public partial class CountryStatistics
|
||||
{
|
||||
[JsonProperty(@"code")]
|
||||
public CountryCode Code;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user