Partial everything

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

View File

@ -14,7 +14,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Audio
{
public class AudioDevicesSettings : SettingsSubsection
public partial class AudioDevicesSettings : SettingsSubsection
{
protected override LocalisableString Header => AudioSettingsStrings.AudioDevicesHeader;
@ -77,11 +77,11 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
}
}
private class AudioDeviceSettingsDropdown : SettingsDropdown<string>
private partial class AudioDeviceSettingsDropdown : SettingsDropdown<string>
{
protected override OsuDropdown<string> CreateDropdown() => new AudioDeviceDropdownControl();
private class AudioDeviceDropdownControl : DropdownControl
private partial class AudioDeviceDropdownControl : DropdownControl
{
protected override LocalisableString GenerateItemText(string item)
=> string.IsNullOrEmpty(item) ? CommonStrings.Default : base.GenerateItemText(item);

View File

@ -14,7 +14,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Audio
{
public class OffsetSettings : SettingsSubsection
public partial class OffsetSettings : SettingsSubsection
{
protected override LocalisableString Header => AudioSettingsStrings.OffsetHeader;

View File

@ -13,7 +13,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Audio
{
public class VolumeSettings : SettingsSubsection
public partial class VolumeSettings : SettingsSubsection
{
protected override LocalisableString Header => AudioSettingsStrings.VolumeHeader;
@ -54,7 +54,7 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
};
}
private class VolumeAdjustSlider : SettingsSlider<double>
private partial class VolumeAdjustSlider : SettingsSlider<double>
{
protected override Drawable CreateControl()
{

View File

@ -13,7 +13,7 @@ using osu.Game.Overlays.Settings.Sections.Audio;
namespace osu.Game.Overlays.Settings.Sections
{
public class AudioSection : SettingsSection
public partial class AudioSection : SettingsSection
{
public override LocalisableString Header => AudioSettingsStrings.AudioSectionHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings.Sections.DebugSettings;
namespace osu.Game.Overlays.Settings.Sections
{
public class DebugSection : SettingsSection
public partial class DebugSection : SettingsSection
{
public override LocalisableString Header => DebugSettingsStrings.DebugSectionHeader;

View File

@ -15,7 +15,7 @@ using osu.Game.Screens.Utility;
namespace osu.Game.Overlays.Settings.Sections.DebugSettings
{
public class GeneralSettings : SettingsSubsection
public partial class GeneralSettings : SettingsSubsection
{
protected override LocalisableString Header => DebugSettingsStrings.GeneralHeader;

View File

@ -16,7 +16,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.DebugSettings
{
public class MemorySettings : SettingsSubsection
public partial class MemorySettings : SettingsSubsection
{
protected override LocalisableString Header => DebugSettingsStrings.MemoryHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class AudioSettings : SettingsSubsection
public partial class AudioSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.AudioHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class BackgroundSettings : SettingsSubsection
public partial class BackgroundSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.BackgroundHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class BeatmapSettings : SettingsSubsection
public partial class BeatmapSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.BeatmapHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Rulesets.Scoring;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class GeneralSettings : SettingsSubsection
public partial class GeneralSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.GeneralHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class HUDSettings : SettingsSubsection
public partial class HUDSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.HUDHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class InputSettings : SettingsSubsection
public partial class InputSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.InputHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Gameplay
{
public class ModsSettings : SettingsSubsection
public partial class ModsSettings : SettingsSubsection
{
protected override LocalisableString Header => GameplaySettingsStrings.ModsHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings.Sections.Gameplay;
namespace osu.Game.Overlays.Settings.Sections
{
public class GameplaySection : SettingsSection
public partial class GameplaySection : SettingsSection
{
public override LocalisableString Header => GameplaySettingsStrings.GameplaySectionHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.General
{
public class LanguageSettings : SettingsSubsection
public partial class LanguageSettings : SettingsSubsection
{
private SettingsDropdown<Language> languageSelection = null!;
private Bindable<string> frameworkLocale = null!;

View File

@ -19,7 +19,7 @@ using osu.Game.Updater;
namespace osu.Game.Overlays.Settings.Sections.General
{
public class UpdateSettings : SettingsSubsection
public partial class UpdateSettings : SettingsSubsection
{
[Resolved(CanBeNull = true)]
private UpdateManager updateManager { get; set; }

View File

@ -12,7 +12,7 @@ using osu.Game.Overlays.Settings.Sections.General;
namespace osu.Game.Overlays.Settings.Sections
{
public class GeneralSection : SettingsSection
public partial class GeneralSection : SettingsSection
{
[Resolved(CanBeNull = true)]
private FirstRunSetupOverlay firstRunSetupOverlay { get; set; }

View File

@ -25,7 +25,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Settings.Sections.Graphics
{
public class LayoutSettings : SettingsSubsection
public partial class LayoutSettings : SettingsSubsection
{
protected override LocalisableString Header => GraphicsSettingsStrings.LayoutHeader;
@ -324,7 +324,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
base.Dispose(isDisposing);
}
private class ScalingPreview : ScalingContainer
private partial class ScalingPreview : ScalingContainer
{
public ScalingPreview()
{
@ -337,16 +337,16 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
}
}
private class UIScaleSlider : OsuSliderBar<float>
private partial class UIScaleSlider : OsuSliderBar<float>
{
public override LocalisableString TooltipText => base.TooltipText + "x";
}
private class DisplaySettingsDropdown : SettingsDropdown<Display>
private partial class DisplaySettingsDropdown : SettingsDropdown<Display>
{
protected override OsuDropdown<Display> CreateDropdown() => new DisplaySettingsDropdownControl();
private class DisplaySettingsDropdownControl : DropdownControl
private partial class DisplaySettingsDropdownControl : DropdownControl
{
protected override LocalisableString GenerateItemText(Display item)
{
@ -355,11 +355,11 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
}
}
private class ResolutionSettingsDropdown : SettingsDropdown<Size>
private partial class ResolutionSettingsDropdown : SettingsDropdown<Size>
{
protected override OsuDropdown<Size> CreateDropdown() => new ResolutionDropdownControl();
private class ResolutionDropdownControl : DropdownControl
private partial class ResolutionDropdownControl : DropdownControl
{
protected override LocalisableString GenerateItemText(Size item)
{

View File

@ -13,7 +13,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Graphics
{
public class RendererSettings : SettingsSubsection
public partial class RendererSettings : SettingsSubsection
{
protected override LocalisableString Header => GraphicsSettingsStrings.RendererHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Graphics
{
public class ScreenshotSettings : SettingsSubsection
public partial class ScreenshotSettings : SettingsSubsection
{
protected override LocalisableString Header => GraphicsSettingsStrings.Screenshots;

View File

@ -13,7 +13,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Graphics
{
public class VideoSettings : SettingsSubsection
public partial class VideoSettings : SettingsSubsection
{
protected override LocalisableString Header => GraphicsSettingsStrings.VideoHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings.Sections.Graphics;
namespace osu.Game.Overlays.Settings.Sections
{
public class GraphicsSection : SettingsSection
public partial class GraphicsSection : SettingsSection
{
public override LocalisableString Header => GraphicsSettingsStrings.GraphicsSectionHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class BindingSettings : SettingsSubsection
public partial class BindingSettings : SettingsSubsection
{
protected override LocalisableString Header => BindingSettingsStrings.ShortcutAndGameplayBindings;

View File

@ -9,7 +9,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class GlobalKeyBindingsSection : SettingsSection
public partial class GlobalKeyBindingsSection : SettingsSection
{
public override Drawable CreateIcon() => new SpriteIcon
{
@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
Add(new EditorKeyBindingsSubsection(manager));
}
private class DefaultBindingsSubsection : KeyBindingsSubsection
private partial class DefaultBindingsSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => string.Empty;
@ -39,7 +39,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
private class OverlayBindingsSubsection : KeyBindingsSubsection
private partial class OverlayBindingsSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => InputSettingsStrings.OverlaysSection;
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
private class SongSelectKeyBindingSubsection : KeyBindingsSubsection
private partial class SongSelectKeyBindingSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => InputSettingsStrings.SongSelectSection;
@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
private class InGameKeyBindingsSubsection : KeyBindingsSubsection
private partial class InGameKeyBindingsSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => InputSettingsStrings.InGameSection;
@ -72,7 +72,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
private class AudioControlKeyBindingsSubsection : KeyBindingsSubsection
private partial class AudioControlKeyBindingsSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => InputSettingsStrings.AudioSection;
@ -83,7 +83,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
private class EditorKeyBindingsSubsection : KeyBindingsSubsection
private partial class EditorKeyBindingsSubsection : KeyBindingsSubsection
{
protected override LocalisableString Header => InputSettingsStrings.EditorSection;

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class JoystickSettings : SettingsSubsection
public partial class JoystickSettings : SettingsSubsection
{
protected override LocalisableString Header => JoystickSettingsStrings.JoystickGamepad;

View File

@ -11,7 +11,7 @@ using osu.Game.Rulesets;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class KeyBindingPanel : SettingsSubPanel
public partial class KeyBindingPanel : SettingsSubPanel
{
protected override Drawable CreateHeader() => new SettingsHeader(InputSettingsStrings.KeyBindingPanelHeader, InputSettingsStrings.KeyBindingPanelDescription);

View File

@ -31,7 +31,7 @@ using osuTK.Input;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class KeyBindingRow : Container, IFilterable
public partial class KeyBindingRow : Container, IFilterable
{
/// <summary>
/// Invoked when the binding of this row is updated with a change being written.
@ -446,7 +446,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
isDefault.Value = bindings.Select(b => b.KeyCombination).SequenceEqual(Defaults);
}
private class CancelButton : TriangleButton
private partial class CancelButton : TriangleButton
{
public CancelButton()
{
@ -455,7 +455,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
public class ClearButton : DangerousTriangleButton
public partial class ClearButton : DangerousTriangleButton
{
public ClearButton()
{
@ -464,7 +464,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
public class KeyButton : Container
public partial class KeyButton : Container
{
public readonly RealmKeyBinding KeyBinding;

View File

@ -17,7 +17,7 @@ using osuTK;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public abstract class KeyBindingsSubsection : SettingsSubsection
public abstract partial class KeyBindingsSubsection : SettingsSubsection
{
/// <summary>
/// After a successful binding, automatically select the next binding row to make quickly
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
public class ResetButton : DangerousSettingsButton
public partial class ResetButton : DangerousSettingsButton
{
[BackgroundDependencyLoader]
private void load()

View File

@ -17,7 +17,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class MouseSettings : SettingsSubsection
public partial class MouseSettings : SettingsSubsection
{
private readonly MouseHandler mouseHandler;
@ -126,7 +126,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}, true);
}
public class SensitivitySetting : SettingsSlider<double, SensitivitySlider>
public partial class SensitivitySetting : SettingsSlider<double, SensitivitySlider>
{
public SensitivitySetting()
{
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}
}
public class SensitivitySlider : OsuSliderBar<double>
public partial class SensitivitySlider : OsuSliderBar<double>
{
public override LocalisableString TooltipText => Current.Disabled ? MouseSettingsStrings.EnableHighPrecisionForSensitivityAdjust : $"{base.TooltipText}x";
}

View File

@ -15,7 +15,7 @@ using osu.Game.Graphics.UserInterfaceV2;
namespace osu.Game.Overlays.Settings.Sections.Input
{
internal class RotationPresetButtons : CompositeDrawable
internal partial class RotationPresetButtons : CompositeDrawable
{
public new MarginPadding Padding
{
@ -86,7 +86,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}, true);
}
public class RotationButton : RoundedButton
public partial class RotationButton : RoundedButton
{
[Resolved]
private OsuColour colours { get; set; }

View File

@ -12,7 +12,7 @@ using osu.Game.Rulesets;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class RulesetBindingsSection : SettingsSection
public partial class RulesetBindingsSection : SettingsSection
{
public override Drawable CreateIcon() => ruleset?.CreateInstance().CreateIcon() ?? new SpriteIcon
{

View File

@ -20,7 +20,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class TabletAreaSelection : CompositeDrawable
public partial class TabletAreaSelection : CompositeDrawable
{
public bool IsWithinBounds { get; private set; }

View File

@ -21,7 +21,7 @@ using osu.Game.Online.Chat;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class TabletSettings : SettingsSubsection
public partial class TabletSettings : SettingsSubsection
{
public TabletAreaSelection AreaSelection { get; private set; }

View File

@ -6,7 +6,7 @@ using osu.Game.Rulesets;
namespace osu.Game.Overlays.Settings.Sections.Input
{
public class VariantBindingsSubsection : KeyBindingsSubsection
public partial class VariantBindingsSubsection : KeyBindingsSubsection
{
protected override bool AutoAdvanceTarget => true;

View File

@ -14,7 +14,7 @@ using osu.Game.Overlays.Settings.Sections.Input;
namespace osu.Game.Overlays.Settings.Sections
{
public class InputSection : SettingsSection
public partial class InputSection : SettingsSection
{
private readonly KeyBindingPanel keyConfig;
@ -47,7 +47,7 @@ namespace osu.Game.Overlays.Settings.Sections
}
}
public class HandlerSection : SettingsSubsection
public partial class HandlerSection : SettingsSubsection
{
private readonly InputHandler handler;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class BeatmapSettings : SettingsSubsection
public partial class BeatmapSettings : SettingsSubsection
{
protected override LocalisableString Header => CommonStrings.Beatmaps;

View File

@ -10,7 +10,7 @@ using osu.Game.Overlays.Notifications;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class CollectionsSettings : SettingsSubsection
public partial class CollectionsSettings : SettingsSubsection
{
protected override LocalisableString Header => CommonStrings.Collections;

View File

@ -20,7 +20,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public abstract class DirectorySelectScreen : OsuScreen
public abstract partial class DirectorySelectScreen : OsuScreen
{
private TriangleButton selectionButton;

View File

@ -6,7 +6,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class MassDeleteConfirmationDialog : DeleteConfirmationDialog
public partial class MassDeleteConfirmationDialog : DeleteConfirmationDialog
{
public MassDeleteConfirmationDialog(Action deleteAction)
{

View File

@ -5,7 +5,7 @@ using System;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class MassVideoDeleteConfirmationDialog : MassDeleteConfirmationDialog
public partial class MassVideoDeleteConfirmationDialog : MassDeleteConfirmationDialog
{
public MassVideoDeleteConfirmationDialog(Action deleteAction)
: base(deleteAction)

View File

@ -22,7 +22,7 @@ using osuTK;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class MigrationRunScreen : OsuScreen
public partial class MigrationRunScreen : OsuScreen
{
private readonly DirectoryInfo destination;

View File

@ -17,7 +17,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class MigrationSelectScreen : DirectorySelectScreen
public partial class MigrationSelectScreen : DirectorySelectScreen
{
[Resolved]
private Storage storage { get; set; }

View File

@ -14,7 +14,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class ModPresetSettings : SettingsSubsection
public partial class ModPresetSettings : SettingsSubsection
{
protected override LocalisableString Header => CommonStrings.ModPresets;

View File

@ -10,7 +10,7 @@ using osu.Game.Scoring;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class ScoreSettings : SettingsSubsection
public partial class ScoreSettings : SettingsSubsection
{
protected override LocalisableString Header => CommonStrings.Scores;

View File

@ -10,7 +10,7 @@ using osu.Game.Skinning;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class SkinSettings : SettingsSubsection
public partial class SkinSettings : SettingsSubsection
{
protected override LocalisableString Header => CommonStrings.Skins;

View File

@ -12,7 +12,7 @@ using osu.Game.Screens;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class StableDirectoryLocationDialog : PopupDialog
public partial class StableDirectoryLocationDialog : PopupDialog
{
[Resolved]
private IPerformFromScreenRunner performer { get; set; }

View File

@ -11,7 +11,7 @@ using osu.Framework.Screens;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
public class StableDirectorySelectScreen : DirectorySelectScreen
public partial class StableDirectorySelectScreen : DirectorySelectScreen
{
private readonly TaskCompletionSource<string> taskCompletionSource;

View File

@ -9,7 +9,7 @@ using osu.Game.Overlays.Settings.Sections.Maintenance;
namespace osu.Game.Overlays.Settings.Sections
{
public class MaintenanceSection : SettingsSection
public partial class MaintenanceSection : SettingsSection
{
public override LocalisableString Header => MaintenanceSettingsStrings.MaintenanceSectionHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Online
{
public class AlertsAndPrivacySettings : SettingsSubsection
public partial class AlertsAndPrivacySettings : SettingsSubsection
{
protected override LocalisableString Header => OnlineSettingsStrings.AlertsAndPrivacyHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Online
{
public class IntegrationSettings : SettingsSubsection
public partial class IntegrationSettings : SettingsSubsection
{
protected override LocalisableString Header => OnlineSettingsStrings.IntegrationsHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.Online
{
public class WebSettings : SettingsSubsection
public partial class WebSettings : SettingsSubsection
{
protected override LocalisableString Header => OnlineSettingsStrings.WebHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings.Sections.Online;
namespace osu.Game.Overlays.Settings.Sections
{
public class OnlineSection : SettingsSection
public partial class OnlineSection : SettingsSection
{
public override LocalisableString Header => OnlineSettingsStrings.OnlineSectionHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Rulesets;
namespace osu.Game.Overlays.Settings.Sections
{
public class RulesetSection : SettingsSection
public partial class RulesetSection : SettingsSection
{
public override LocalisableString Header => RulesetSettingsStrings.Rulesets;

View File

@ -13,7 +13,7 @@ namespace osu.Game.Overlays.Settings.Sections
/// <summary>
/// A slider intended to show a "size" multiplier number, where 1x is 1.0.
/// </summary>
public class SizeSlider<T> : OsuSliderBar<T>
public partial class SizeSlider<T> : OsuSliderBar<T>
where T : struct, IEquatable<T>, IComparable<T>, IConvertible, IFormattable
{
public override LocalisableString TooltipText => Current.Value.ToString(@"0.##x", NumberFormatInfo.CurrentInfo);

View File

@ -24,7 +24,7 @@ using Realms;
namespace osu.Game.Overlays.Settings.Sections
{
public class SkinSection : SettingsSection
public partial class SkinSection : SettingsSection
{
private SkinSettingsDropdown skinDropdown;
@ -123,17 +123,17 @@ namespace osu.Game.Overlays.Settings.Sections
realmSubscription?.Dispose();
}
private class SkinSettingsDropdown : SettingsDropdown<Live<SkinInfo>>
private partial class SkinSettingsDropdown : SettingsDropdown<Live<SkinInfo>>
{
protected override OsuDropdown<Live<SkinInfo>> CreateDropdown() => new SkinDropdownControl();
private class SkinDropdownControl : DropdownControl
private partial class SkinDropdownControl : DropdownControl
{
protected override LocalisableString GenerateItemText(Live<SkinInfo> item) => item.ToString();
}
}
public class ExportSkinButton : SettingsButton
public partial class ExportSkinButton : SettingsButton
{
[Resolved]
private SkinManager skins { get; set; }
@ -171,7 +171,7 @@ namespace osu.Game.Overlays.Settings.Sections
}
}
public class DeleteSkinButton : DangerousSettingsButton
public partial class DeleteSkinButton : DangerousSettingsButton
{
[Resolved]
private SkinManager skins { get; set; }

View File

@ -12,7 +12,7 @@ using osu.Game.Localisation;
namespace osu.Game.Overlays.Settings.Sections.UserInterface
{
public class GeneralSettings : SettingsSubsection
public partial class GeneralSettings : SettingsSubsection
{
protected override LocalisableString Header => UserInterfaceStrings.GeneralHeader;

View File

@ -14,7 +14,7 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Overlays.Settings.Sections.UserInterface
{
public class MainMenuSettings : SettingsSubsection
public partial class MainMenuSettings : SettingsSubsection
{
protected override LocalisableString Header => UserInterfaceStrings.MainMenuHeader;

View File

@ -12,7 +12,7 @@ using osu.Game.Overlays.Mods.Input;
namespace osu.Game.Overlays.Settings.Sections.UserInterface
{
public class SongSelectSettings : SettingsSubsection
public partial class SongSelectSettings : SettingsSubsection
{
protected override LocalisableString Header => UserInterfaceStrings.SongSelectHeader;

View File

@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings.Sections.UserInterface;
namespace osu.Game.Overlays.Settings.Sections
{
public class UserInterfaceSection : SettingsSection
public partial class UserInterfaceSection : SettingsSection
{
public override LocalisableString Header => UserInterfaceStrings.UserInterfaceSectionHeader;