2020-12-30 12:29:51 +07:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-25 11:17:48 +01:00
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-06-17 16:37:17 +09:00
|
|
|
#nullable disable
|
|
|
|
|
2020-11-11 12:19:01 +09:00
|
|
|
using System;
|
2022-05-11 14:03:16 +09:00
|
|
|
using System.Collections.Generic;
|
2020-11-11 12:54:39 +09:00
|
|
|
using System.Diagnostics;
|
2022-04-07 18:13:23 +09:00
|
|
|
using System.Globalization;
|
2022-05-11 14:03:16 +09:00
|
|
|
using System.Linq;
|
2016-08-26 12:28:23 +09:00
|
|
|
using osu.Framework.Configuration;
|
2018-05-02 19:37:47 +09:00
|
|
|
using osu.Framework.Configuration.Tracking;
|
2019-01-04 14:18:29 +09:00
|
|
|
using osu.Framework.Extensions;
|
2021-10-10 19:35:25 -07:00
|
|
|
using osu.Framework.Extensions.LocalisationExtensions;
|
2021-10-11 01:02:26 -07:00
|
|
|
using osu.Framework.Localisation;
|
2016-10-31 12:44:20 -06:00
|
|
|
using osu.Framework.Platform;
|
2020-09-04 20:34:26 +09:00
|
|
|
using osu.Framework.Testing;
|
2022-04-02 18:36:49 +03:00
|
|
|
using osu.Game.Beatmaps.Drawables.Cards;
|
2020-08-16 11:04:28 +09:30
|
|
|
using osu.Game.Input;
|
2020-11-11 12:54:39 +09:00
|
|
|
using osu.Game.Input.Bindings;
|
2021-10-10 19:35:25 -07:00
|
|
|
using osu.Game.Localisation;
|
2017-05-12 13:54:02 +09:00
|
|
|
using osu.Game.Overlays;
|
2022-06-21 13:03:46 +02:00
|
|
|
using osu.Game.Overlays.Mods.Input;
|
2018-06-08 03:17:12 +09:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
2017-04-24 19:25:27 +09:00
|
|
|
using osu.Game.Screens.Select;
|
2019-08-23 13:15:38 +02:00
|
|
|
using osu.Game.Screens.Select.Filter;
|
2021-12-01 12:45:47 +09:00
|
|
|
using osu.Game.Skinning;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2016-08-26 12:28:23 +09:00
|
|
|
namespace osu.Game.Configuration
|
|
|
|
{
|
2020-09-04 20:34:26 +09:00
|
|
|
[ExcludeFromDynamicCompile]
|
2018-01-24 17:35:37 +09:00
|
|
|
public class OsuConfigManager : IniConfigManager<OsuSetting>
|
2016-08-26 12:28:23 +09:00
|
|
|
{
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
{
|
2017-05-02 17:45:22 +09:00
|
|
|
// UI/selection defaults
|
2021-11-22 17:40:43 +09:00
|
|
|
SetDefault(OsuSetting.Ruleset, string.Empty);
|
2021-12-01 12:45:47 +09:00
|
|
|
SetDefault(OsuSetting.Skin, SkinInfo.DEFAULT_SKIN.ToString());
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.BeatmapDetailTab, PlayBeatmapDetailArea.TabType.Details);
|
|
|
|
SetDefault(OsuSetting.BeatmapDetailModsFilter, false);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ShowConvertedBeatmaps, true);
|
|
|
|
SetDefault(OsuSetting.DisplayStarsMinimum, 0.0, 0, 10, 0.1);
|
|
|
|
SetDefault(OsuSetting.DisplayStarsMaximum, 10.1, 0, 10.1, 0.1);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.SongSelectGroupingMode, GroupMode.All);
|
|
|
|
SetDefault(OsuSetting.SongSelectSortingMode, SortMode.Title);
|
2019-08-23 13:15:38 +02:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.RandomSelectAlgorithm, RandomSelectAlgorithm.RandomPermutation);
|
2022-06-21 13:03:46 +02:00
|
|
|
SetDefault(OsuSetting.ModSelectHotkeyStyle, ModSelectHotkeyStyle.Sequential);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-05-30 17:54:09 +09:00
|
|
|
SetDefault(OsuSetting.ChatDisplayHeight, ChatOverlay.DEFAULT_HEIGHT, 0.2f, 1f);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-04-02 18:36:49 +03:00
|
|
|
SetDefault(OsuSetting.BeatmapListingCardSize, BeatmapCardSize.Normal);
|
|
|
|
|
2022-03-26 19:18:41 +09:00
|
|
|
SetDefault(OsuSetting.ToolbarClockDisplayMode, ToolbarClockDisplayMode.Full);
|
|
|
|
|
2017-05-02 17:45:22 +09:00
|
|
|
// Online settings
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.Username, string.Empty);
|
|
|
|
SetDefault(OsuSetting.Token, string.Empty);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.AutomaticallyDownloadWhenSpectating, false);
|
2020-10-28 19:03:01 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.SavePassword, false).ValueChanged += enabled =>
|
2017-05-02 17:45:22 +09:00
|
|
|
{
|
2021-03-17 16:10:16 +09:00
|
|
|
if (enabled.NewValue) SetValue(OsuSetting.SaveUsername, true);
|
2017-05-02 17:45:22 +09:00
|
|
|
};
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.SaveUsername, true).ValueChanged += enabled =>
|
2017-05-02 17:45:22 +09:00
|
|
|
{
|
2021-03-17 16:10:16 +09:00
|
|
|
if (!enabled.NewValue) SetValue(OsuSetting.SavePassword, false);
|
2017-05-02 17:45:22 +09:00
|
|
|
};
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ExternalLinkWarning, true);
|
|
|
|
SetDefault(OsuSetting.PreferNoVideo, false);
|
2018-10-22 23:57:37 +03:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ShowOnlineExplicitContent, false);
|
2018-10-22 23:57:37 +03:00
|
|
|
|
2021-06-11 16:37:31 +09:00
|
|
|
SetDefault(OsuSetting.NotifyOnUsernameMentioned, true);
|
|
|
|
SetDefault(OsuSetting.NotifyOnPrivateMessage, true);
|
2019-12-16 00:45:33 +01:00
|
|
|
|
2017-05-02 17:45:22 +09:00
|
|
|
// Audio
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.VolumeInactive, 0.25, 0, 1, 0.01);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.MenuVoice, true);
|
|
|
|
SetDefault(OsuSetting.MenuMusic, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.AudioOffset, 0, -500.0, 500.0, 1);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2017-05-02 17:45:22 +09:00
|
|
|
// Input
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.MenuCursorSize, 1.0f, 0.5f, 2f, 0.01f);
|
|
|
|
SetDefault(OsuSetting.GameplayCursorSize, 1.0f, 0.1f, 2f, 0.01f);
|
|
|
|
SetDefault(OsuSetting.AutoCursorSize, false);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.MouseDisableButtons, false);
|
|
|
|
SetDefault(OsuSetting.MouseDisableWheel, false);
|
|
|
|
SetDefault(OsuSetting.ConfineMouseMode, OsuConfineMouseMode.DuringGameplay);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2017-05-02 17:45:22 +09:00
|
|
|
// Graphics
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ShowFpsDisplay, false);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ShowStoryboard, true);
|
|
|
|
SetDefault(OsuSetting.BeatmapSkins, true);
|
|
|
|
SetDefault(OsuSetting.BeatmapColours, true);
|
|
|
|
SetDefault(OsuSetting.BeatmapHitsounds, true);
|
2018-04-25 16:15:23 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.CursorRotation, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.MenuParallax, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-04-07 18:13:23 +09:00
|
|
|
// See https://stackoverflow.com/a/63307411 for default sourcing.
|
|
|
|
SetDefault(OsuSetting.Prefer24HourTime, CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern.Contains(@"tt"));
|
2022-04-05 16:21:28 -04:00
|
|
|
|
2017-05-02 18:40:30 +09:00
|
|
|
// Gameplay
|
2022-01-03 12:46:20 +09:00
|
|
|
SetDefault(OsuSetting.PositionalHitsounds, true); // replaced by level setting below, can be removed 20220703.
|
2021-11-28 14:06:53 +01:00
|
|
|
SetDefault(OsuSetting.PositionalHitsoundsLevel, 0.2f, 0, 1);
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.DimLevel, 0.8, 0, 1, 0.01);
|
|
|
|
SetDefault(OsuSetting.BlurLevel, 0, 0, 1, 0.01);
|
|
|
|
SetDefault(OsuSetting.LightenDuringBreaks, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.HitLighting, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.HUDVisibilityMode, HUDVisibilityMode.Always);
|
2022-04-27 18:10:58 +09:00
|
|
|
SetDefault(OsuSetting.ShowProgressGraph, true);
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ShowHealthDisplayWhenCantFail, true);
|
|
|
|
SetDefault(OsuSetting.FadePlayfieldWhenHealthLow, true);
|
|
|
|
SetDefault(OsuSetting.KeyOverlay, false);
|
|
|
|
SetDefault(OsuSetting.AlwaysPlayFirstComboBreak, true);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.FloatingComments, false);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ScoreDisplayMode, ScoringMode.Standardised);
|
2018-06-08 03:17:12 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.IncreaseFirstObjectVisibility, true);
|
|
|
|
SetDefault(OsuSetting.GameplayDisableWinKey, true);
|
2018-04-25 17:15:53 +09:00
|
|
|
|
2017-05-02 18:40:30 +09:00
|
|
|
// Update
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ReleaseStream, ReleaseStream.Lazer);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.Version, string.Empty);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-04-19 16:59:25 +09:00
|
|
|
SetDefault(OsuSetting.ShowFirstRunSetup, true);
|
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
|
|
|
|
SetDefault(OsuSetting.ScreenshotCaptureMenuCursor, false);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.SongSelectRightMouseScroll, false);
|
2018-04-13 19:50:37 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.Scaling, ScalingMode.Off);
|
2019-01-04 13:29:37 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ScalingSizeX, 0.8f, 0.2f, 1f);
|
|
|
|
SetDefault(OsuSetting.ScalingSizeY, 0.8f, 0.2f, 1f);
|
2019-01-04 13:29:37 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.ScalingPositionX, 0.5f, 0f, 1f);
|
|
|
|
SetDefault(OsuSetting.ScalingPositionY, 0.5f, 0f, 1f);
|
2019-01-04 13:29:37 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.UIScale, 1f, 0.8f, 1.6f, 0.01f);
|
2019-01-09 19:01:33 +09:00
|
|
|
|
2022-03-04 12:21:05 +09:00
|
|
|
SetDefault(OsuSetting.UIHoldActivationDelay, 200.0, 0.0, 500.0, 50.0);
|
2019-08-09 20:05:28 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.IntroSequence, IntroSequence.Triangles);
|
2019-09-19 14:04:51 +09:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.MenuBackgroundSource, BackgroundSource.Skin);
|
|
|
|
SetDefault(OsuSetting.SeasonalBackgroundMode, SeasonalBackgroundMode.Sometimes);
|
2019-09-24 17:42:06 +08:00
|
|
|
|
2021-03-17 16:10:16 +09:00
|
|
|
SetDefault(OsuSetting.DiscordRichPresence, DiscordRichPresenceMode.Full);
|
2020-12-30 12:29:51 +07:00
|
|
|
|
2021-04-13 16:48:05 +09:00
|
|
|
SetDefault(OsuSetting.EditorWaveformOpacity, 0.25f);
|
2022-07-05 21:42:35 +09:00
|
|
|
|
|
|
|
SetDefault(OsuSetting.LastProcessedMetadataId, -1);
|
2017-01-28 13:10:05 +03:00
|
|
|
}
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2022-05-11 14:03:16 +09:00
|
|
|
public IDictionary<OsuSetting, string> GetLoggableState() =>
|
|
|
|
new Dictionary<OsuSetting, string>(ConfigStore.Where(kvp => !keyContainsPrivateInformation(kvp.Key)).ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ToString()));
|
|
|
|
|
|
|
|
private static bool keyContainsPrivateInformation(OsuSetting argKey)
|
|
|
|
{
|
|
|
|
switch (argKey)
|
|
|
|
{
|
|
|
|
case OsuSetting.Token:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-01-04 14:18:29 +09:00
|
|
|
public OsuConfigManager(Storage storage)
|
|
|
|
: base(storage)
|
2016-10-31 12:44:20 -06:00
|
|
|
{
|
2020-03-05 13:18:42 +09:00
|
|
|
Migrate();
|
2016-10-31 12:44:20 -06:00
|
|
|
}
|
2018-05-02 19:37:47 +09:00
|
|
|
|
2020-03-05 13:18:42 +09:00
|
|
|
public void Migrate()
|
2019-01-04 15:34:32 +09:00
|
|
|
{
|
2020-03-05 13:18:42 +09:00
|
|
|
// arrives as 2020.123.0
|
2021-10-27 13:04:41 +09:00
|
|
|
string rawVersion = Get<string>(OsuSetting.Version);
|
2020-03-05 13:18:42 +09:00
|
|
|
|
|
|
|
if (rawVersion.Length < 6)
|
|
|
|
return;
|
|
|
|
|
2021-10-27 13:04:41 +09:00
|
|
|
string[] pieces = rawVersion.Split('.');
|
2020-03-05 13:18:42 +09:00
|
|
|
|
2020-03-05 15:36:36 +09:00
|
|
|
// on a fresh install or when coming from a non-release build, execution will end here.
|
|
|
|
// we don't want to run migrations in such cases.
|
2020-03-05 13:18:42 +09:00
|
|
|
if (!int.TryParse(pieces[0], out int year)) return;
|
|
|
|
if (!int.TryParse(pieces[1], out int monthDay)) return;
|
|
|
|
|
|
|
|
int combined = (year * 10000) + monthDay;
|
2022-01-03 12:46:20 +09:00
|
|
|
|
|
|
|
if (combined < 20220103)
|
|
|
|
{
|
|
|
|
var positionalHitsoundsEnabled = GetBindable<bool>(OsuSetting.PositionalHitsounds);
|
|
|
|
if (!positionalHitsoundsEnabled.Value)
|
|
|
|
SetValue(OsuSetting.PositionalHitsoundsLevel, 0);
|
|
|
|
}
|
2016-10-31 12:44:20 -06:00
|
|
|
}
|
2018-05-02 19:37:47 +09:00
|
|
|
|
2020-11-11 12:54:39 +09:00
|
|
|
public override TrackedSettings CreateTrackedSettings()
|
2019-01-04 15:34:32 +09:00
|
|
|
{
|
2020-11-11 12:54:39 +09:00
|
|
|
// these need to be assigned in normal game startup scenarios.
|
|
|
|
Debug.Assert(LookupKeyBindings != null);
|
|
|
|
Debug.Assert(LookupSkinName != null);
|
|
|
|
|
|
|
|
return new TrackedSettings
|
2020-11-11 12:19:01 +09:00
|
|
|
{
|
2021-10-19 17:00:51 +09:00
|
|
|
new TrackedSetting<bool>(OsuSetting.MouseDisableButtons, disabledState => new SettingDescription(
|
|
|
|
rawValue: !disabledState,
|
|
|
|
name: GlobalActionKeyBindingStrings.ToggleGameplayMouseButtons,
|
|
|
|
value: disabledState ? CommonStrings.Disabled.ToLower() : CommonStrings.Enabled.ToLower(),
|
|
|
|
shortcut: LookupKeyBindings(GlobalAction.ToggleGameplayMouseButtons))
|
|
|
|
),
|
2021-10-19 17:22:50 +09:00
|
|
|
new TrackedSetting<HUDVisibilityMode>(OsuSetting.HUDVisibilityMode, visibilityMode => new SettingDescription(
|
|
|
|
rawValue: visibilityMode,
|
2021-10-19 17:00:51 +09:00
|
|
|
name: GameplaySettingsStrings.HUDVisibilityMode,
|
2021-10-19 17:22:50 +09:00
|
|
|
value: visibilityMode.GetLocalisableDescription(),
|
2021-10-19 17:00:51 +09:00
|
|
|
shortcut: new TranslatableString(@"_", @"{0}: {1} {2}: {3}",
|
|
|
|
GlobalActionKeyBindingStrings.ToggleInGameInterface,
|
|
|
|
LookupKeyBindings(GlobalAction.ToggleInGameInterface),
|
|
|
|
GlobalActionKeyBindingStrings.HoldForHUD,
|
|
|
|
LookupKeyBindings(GlobalAction.HoldForHUD)))
|
|
|
|
),
|
|
|
|
new TrackedSetting<ScalingMode>(OsuSetting.Scaling, scalingMode => new SettingDescription(
|
|
|
|
rawValue: scalingMode,
|
|
|
|
name: GraphicsSettingsStrings.ScreenScaling,
|
|
|
|
value: scalingMode.GetLocalisableDescription()
|
|
|
|
)
|
|
|
|
),
|
2021-11-23 16:04:55 +09:00
|
|
|
new TrackedSetting<string>(OsuSetting.Skin, skin =>
|
2020-11-11 12:54:39 +09:00
|
|
|
{
|
2021-11-23 16:04:55 +09:00
|
|
|
string skinName = string.Empty;
|
|
|
|
|
|
|
|
if (Guid.TryParse(skin, out var id))
|
|
|
|
skinName = LookupSkinName(id) ?? string.Empty;
|
2021-10-19 17:00:51 +09:00
|
|
|
|
|
|
|
return new SettingDescription(
|
|
|
|
rawValue: skinName,
|
|
|
|
name: SkinSettingsStrings.SkinSectionHeader,
|
|
|
|
value: skinName,
|
2021-10-22 15:45:48 -07:00
|
|
|
shortcut: new TranslatableString(@"_", @"{0}: {1}",
|
|
|
|
GlobalActionKeyBindingStrings.RandomSkin,
|
|
|
|
LookupKeyBindings(GlobalAction.RandomSkin))
|
2021-10-19 17:00:51 +09:00
|
|
|
);
|
2021-10-10 19:55:02 -07:00
|
|
|
}),
|
2021-10-19 17:00:51 +09:00
|
|
|
new TrackedSetting<float>(OsuSetting.UIScale, scale => new SettingDescription(
|
|
|
|
rawValue: scale,
|
|
|
|
name: GraphicsSettingsStrings.UIScaling,
|
|
|
|
value: $"{scale:N2}x"
|
|
|
|
// TODO: implement lookup for framework platform key bindings
|
|
|
|
)
|
|
|
|
),
|
2020-11-11 12:54:39 +09:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-03-04 12:31:57 +09:00
|
|
|
public Func<Guid, string> LookupSkinName { private get; set; } = _ => @"unknown";
|
2020-11-11 12:19:01 +09:00
|
|
|
|
2022-03-04 12:31:57 +09:00
|
|
|
public Func<GlobalAction, LocalisableString> LookupKeyBindings { get; set; } = _ => @"unknown";
|
2016-08-26 12:28:23 +09:00
|
|
|
}
|
2018-04-13 18:19:50 +09:00
|
|
|
|
2021-08-16 16:59:59 +09:00
|
|
|
// IMPORTANT: These are used in user configuration files.
|
|
|
|
// The naming of these keys should not be changed once they are deployed in a release, unless migration logic is also added.
|
2017-05-15 10:56:27 +09:00
|
|
|
public enum OsuSetting
|
2016-08-26 12:28:23 +09:00
|
|
|
{
|
2017-04-15 05:22:41 +09:00
|
|
|
Ruleset,
|
2016-11-02 19:37:52 -04:00
|
|
|
Token,
|
2017-03-21 17:16:23 +01:00
|
|
|
MenuCursorSize,
|
2017-03-17 18:40:03 +01:00
|
|
|
GameplayCursorSize,
|
2017-05-13 03:46:37 +03:00
|
|
|
AutoCursorSize,
|
2016-11-02 19:37:52 -04:00
|
|
|
DimLevel,
|
2017-12-25 19:11:49 -06:00
|
|
|
BlurLevel,
|
2019-12-10 15:10:35 +03:00
|
|
|
LightenDuringBreaks,
|
2017-09-14 15:44:36 +02:00
|
|
|
ShowStoryboard,
|
2016-11-02 19:37:52 -04:00
|
|
|
KeyOverlay,
|
2022-01-03 12:46:20 +09:00
|
|
|
PositionalHitsounds,
|
|
|
|
PositionalHitsoundsLevel,
|
2020-07-14 20:11:54 +09:00
|
|
|
AlwaysPlayFirstComboBreak,
|
2017-05-17 15:39:26 +03:00
|
|
|
FloatingComments,
|
2020-07-22 12:41:06 +09:00
|
|
|
HUDVisibilityMode,
|
2022-04-27 18:10:58 +09:00
|
|
|
|
|
|
|
// This has been migrated to the component itself. can be removed 20221027.
|
|
|
|
ShowProgressGraph,
|
2019-07-07 05:30:30 +09:00
|
|
|
ShowHealthDisplayWhenCantFail,
|
2020-03-30 12:59:39 +02:00
|
|
|
FadePlayfieldWhenHealthLow,
|
2016-11-02 19:37:52 -04:00
|
|
|
MouseDisableButtons,
|
|
|
|
MouseDisableWheel,
|
2020-08-16 11:04:28 +09:30
|
|
|
ConfineMouseMode,
|
2022-03-04 00:14:24 +09:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Globally applied audio offset.
|
|
|
|
/// This is added to the audio track's current time. Higher values will cause gameplay to occur earlier, relative to the audio track.
|
|
|
|
/// </summary>
|
2017-04-21 16:19:40 +09:00
|
|
|
AudioOffset,
|
2022-03-04 00:14:24 +09:00
|
|
|
|
2018-01-31 18:11:38 +09:00
|
|
|
VolumeInactive,
|
2016-11-02 19:37:52 -04:00
|
|
|
MenuMusic,
|
|
|
|
MenuVoice,
|
2017-09-17 00:47:55 +02:00
|
|
|
CursorRotation,
|
2016-11-02 19:37:52 -04:00
|
|
|
MenuParallax,
|
2022-04-05 16:21:28 -04:00
|
|
|
Prefer24HourTime,
|
2017-04-24 19:25:27 +09:00
|
|
|
BeatmapDetailTab,
|
2020-09-15 21:33:52 -07:00
|
|
|
BeatmapDetailModsFilter,
|
2016-11-02 19:37:52 -04:00
|
|
|
Username,
|
|
|
|
ReleaseStream,
|
|
|
|
SavePassword,
|
|
|
|
SaveUsername,
|
2017-05-02 19:40:30 +09:00
|
|
|
DisplayStarsMinimum,
|
|
|
|
DisplayStarsMaximum,
|
2019-08-24 10:34:54 +02:00
|
|
|
SongSelectGroupingMode,
|
|
|
|
SongSelectSortingMode,
|
2017-12-13 18:10:32 +09:00
|
|
|
RandomSelectAlgorithm,
|
2022-06-21 13:03:46 +02:00
|
|
|
ModSelectHotkeyStyle,
|
2017-05-12 13:54:02 +09:00
|
|
|
ShowFpsDisplay,
|
2017-08-22 19:41:39 +09:00
|
|
|
ChatDisplayHeight,
|
2022-04-02 18:36:49 +03:00
|
|
|
BeatmapListingCardSize,
|
2022-03-26 19:18:41 +09:00
|
|
|
ToolbarClockDisplayMode,
|
2017-11-24 18:34:20 +09:00
|
|
|
Version,
|
2022-04-19 16:59:25 +09:00
|
|
|
ShowFirstRunSetup,
|
2018-01-08 11:34:37 +09:00
|
|
|
ShowConvertedBeatmaps,
|
2018-03-10 21:59:20 +03:00
|
|
|
Skin,
|
2018-04-13 19:50:37 +09:00
|
|
|
ScreenshotFormat,
|
2018-04-18 18:10:40 +09:00
|
|
|
ScreenshotCaptureMenuCursor,
|
2018-04-20 18:17:57 +03:00
|
|
|
SongSelectRightMouseScroll,
|
2018-04-25 16:15:23 +09:00
|
|
|
BeatmapSkins,
|
2021-01-13 00:09:22 -05:00
|
|
|
BeatmapColours,
|
2018-04-25 17:15:53 +09:00
|
|
|
BeatmapHitsounds,
|
2018-06-08 03:17:12 +09:00
|
|
|
IncreaseFirstObjectVisibility,
|
2018-10-22 23:57:37 +03:00
|
|
|
ScoreDisplayMode,
|
2019-01-04 13:29:37 +09:00
|
|
|
ExternalLinkWarning,
|
2020-04-11 14:08:16 +03:00
|
|
|
PreferNoVideo,
|
2019-01-04 13:29:37 +09:00
|
|
|
Scaling,
|
|
|
|
ScalingPositionX,
|
|
|
|
ScalingPositionY,
|
|
|
|
ScalingSizeX,
|
2019-01-09 19:01:33 +09:00
|
|
|
ScalingSizeY,
|
2019-08-09 20:05:28 +09:00
|
|
|
UIScale,
|
2019-12-16 00:45:33 +01:00
|
|
|
IntroSequence,
|
2021-06-11 16:37:31 +09:00
|
|
|
NotifyOnUsernameMentioned,
|
|
|
|
NotifyOnPrivateMessage,
|
2019-09-19 20:05:14 +09:00
|
|
|
UIHoldActivationDelay,
|
2019-09-24 17:42:06 +08:00
|
|
|
HitLighting,
|
2020-06-30 13:12:33 +02:00
|
|
|
MenuBackgroundSource,
|
2020-08-01 19:44:30 +02:00
|
|
|
GameplayDisableWinKey,
|
2020-10-31 16:22:49 +09:00
|
|
|
SeasonalBackgroundMode,
|
2020-11-03 16:01:14 +09:00
|
|
|
EditorWaveformOpacity,
|
2020-12-30 12:29:51 +07:00
|
|
|
DiscordRichPresence,
|
2020-10-28 19:03:01 +09:00
|
|
|
AutomaticallyDownloadWhenSpectating,
|
2021-01-17 22:40:24 +09:00
|
|
|
ShowOnlineExplicitContent,
|
2022-07-05 21:42:35 +09:00
|
|
|
LastProcessedMetadataId
|
2016-08-26 12:28:23 +09:00
|
|
|
}
|
|
|
|
}
|