mirror of https://github.com/ppy/osu
Remove unnecessary tracked settings (for now)
This commit is contained in:
parent
3a10dd47d5
commit
4c3310ca80
|
@ -1,7 +1,6 @@
|
|||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Configuration.Tracking;
|
||||
using osu.Framework.Extensions;
|
||||
|
@ -113,24 +112,12 @@ public OsuConfigManager(Storage storage)
|
|||
{
|
||||
}
|
||||
|
||||
public override TrackedSettings CreateTrackedSettings()
|
||||
{
|
||||
Func<SettingDescription> scalingDescription = () =>
|
||||
{
|
||||
var scalingMode = Get<ScalingMode>(OsuSetting.Scaling);
|
||||
return new SettingDescription(scalingMode, "scaling", scalingMode.GetDescription());
|
||||
};
|
||||
|
||||
return new TrackedSettings
|
||||
public override TrackedSettings CreateTrackedSettings() =>
|
||||
new TrackedSettings
|
||||
{
|
||||
new TrackedSetting<bool>(OsuSetting.MouseDisableButtons, v => new SettingDescription(!v, "gameplay mouse buttons", v ? "disabled" : "enabled")),
|
||||
new TrackedSetting<ScalingMode>(OsuSetting.Scaling, _ => scalingDescription()),
|
||||
new TrackedSetting<float>(OsuSetting.ScalingSizeX, _ => scalingDescription()),
|
||||
new TrackedSetting<float>(OsuSetting.ScalingSizeY, _ => scalingDescription()),
|
||||
new TrackedSetting<float>(OsuSetting.ScalingPositionX, _ => scalingDescription()),
|
||||
new TrackedSetting<float>(OsuSetting.ScalingPositionY, _ => scalingDescription()),
|
||||
new TrackedSetting<ScalingMode>(OsuSetting.Scaling, m => new SettingDescription(m, "scaling", m.GetDescription())),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public enum OsuSetting
|
||||
|
|
Loading…
Reference in New Issue