mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Wire up enum-backed dropdowns
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
//Copyright (c) 2007-2016 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.Platform;
|
||||
using osu.Game.Modes;
|
||||
@ -11,6 +12,7 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
protected override void InitialiseDefaults()
|
||||
{
|
||||
#pragma warning disable CS0612 // Type or member is obsolete
|
||||
Set(OsuConfig.Width, 1366, 640);
|
||||
Set(OsuConfig.Height, 768, 480);
|
||||
Set(OsuConfig.MouseSpeed, 1.0);
|
||||
@ -111,17 +113,18 @@ namespace osu.Game.Configuration
|
||||
Set(OsuConfig.NotifySubmittedThread, true);
|
||||
Set(OsuConfig.PopupDuringGameplay, true);
|
||||
Set(OsuConfig.ProgressBarType, ProgressBarType.Pie);
|
||||
//Set(OsuConfig.RankType, RankingType.Top);
|
||||
Set(OsuConfig.RankType, RankingType.Top);
|
||||
Set(OsuConfig.RefreshRate, 60);
|
||||
Set(OsuConfig.OverrideRefreshRate, Get<int>(OsuConfig.RefreshRate) != 60);
|
||||
//Set(OsuConfig.ScaleMode, ScaleMode.WidescreenConservative);
|
||||
Set(OsuConfig.ScoreboardVisible, true);
|
||||
Set(OsuConfig.ScoreMeter, ScoreMeterType.Error);
|
||||
//Set(OsuConfig.ScoreMeter, OsuGame.Tournament ? ScoreMeterType.Colour : ScoreMeterType.Error);
|
||||
Set(OsuConfig.ScreenshotId, 0);
|
||||
Set(OsuConfig.MenuSnow, false);
|
||||
Set(OsuConfig.MenuTriangles, true);
|
||||
Set(OsuConfig.SongSelectThumbnails, true);
|
||||
//Set(OsuConfig.ScreenshotFormat, ImageFileFormat.Jpg);
|
||||
Set(OsuConfig.ScreenshotFormat, ScreenshotFormat.Jpg);
|
||||
Set(OsuConfig.ShowReplayComments, true);
|
||||
Set(OsuConfig.ShowSpectators, true);
|
||||
Set(OsuConfig.ShowStoryboard, true);
|
||||
@ -154,7 +157,7 @@ namespace osu.Game.Configuration
|
||||
Set(OsuConfig.DisplayStarsMaximum, 10, 0, 10);
|
||||
Set(OsuConfig.DisplayStarsMinimum, 0, 0, 10);
|
||||
Set(OsuConfig.AudioDevice, string.Empty);
|
||||
//Set(OsuConfig.ReleaseStream, ReleaseStream.Lazer, true);
|
||||
Set(OsuConfig.ReleaseStream, ReleaseStream.Lazer);
|
||||
Set(OsuConfig.UpdateFailCount, 0);
|
||||
Set(OsuConfig.SavePassword, false);
|
||||
Set(OsuConfig.SaveUsername, true);
|
||||
@ -163,7 +166,7 @@ namespace osu.Game.Configuration
|
||||
Set(OsuConfig.Letterboxing, Get<bool>(OsuConfig.Fullscreen));
|
||||
Set(OsuConfig.LetterboxPositionX, 0, -100, 100);
|
||||
Set(OsuConfig.LetterboxPositionY, 0, -100, 100);
|
||||
//Set(OsuConfig.FrameSync, FrameSync.Limit120);
|
||||
Set(OsuConfig.FrameSync, FrameSync.Limit120);
|
||||
bool unicodeDefault = false;
|
||||
switch (Get<string>(OsuConfig.Language))
|
||||
{
|
||||
@ -178,6 +181,9 @@ namespace osu.Game.Configuration
|
||||
Set(OsuConfig.Ticker, false);
|
||||
Set(OsuConfig.CompatibilityContext, false);
|
||||
Set(OsuConfig.CanForceOptimusCompatibility, true);
|
||||
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
||||
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never);
|
||||
#pragma warning restore CS0612 // Type or member is obsolete
|
||||
}
|
||||
|
||||
//todo: make a UnicodeString class/struct rather than requiring this helper method.
|
||||
@ -322,6 +328,8 @@ namespace osu.Game.Configuration
|
||||
RawInput,
|
||||
AbsoluteToOsuWindow,
|
||||
ConfineMouse,
|
||||
[Obsolete]
|
||||
ConfineMouseToFullscreen,
|
||||
ShowMenuTips,
|
||||
HiddenShowFirstApproach,
|
||||
ComboColourSliderBall,
|
||||
|
Reference in New Issue
Block a user