1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 11:23:00 +08:00

Import enum from old osu

This commit is contained in:
Drew DeVault 2016-11-02 19:37:52 -04:00
parent dd0cb5da01
commit 89d3f4c2be
2 changed files with 154 additions and 122 deletions

View File

@ -14,7 +14,7 @@ namespace osu.Game.Configuration
{
Set(OsuConfig.Width, 1366, 640);
Set(OsuConfig.Height, 768, 480);
Set(OsuConfig.MouseSensitivity, 1.0);
Set(OsuConfig.MouseSpeed, 1.0);
Set(OsuConfig.Username, string.Empty);
Set(OsuConfig.Password, string.Empty);
@ -22,7 +22,7 @@ namespace osu.Game.Configuration
Set(OsuConfig.PlayMode, PlayMode.Osu);
Set(OsuConfig.VolumeGlobal, 0.8, 0, 1);
Set(OsuConfig.VolumeUniversal, 0.8, 0, 1);
Set(OsuConfig.VolumeMusic, 1.0, 0, 1);
Set(OsuConfig.VolumeEffect, 1.0, 0, 1);
}
@ -34,127 +34,159 @@ namespace osu.Game.Configuration
enum OsuConfig
{
// General
// Sign in
Username,
Password,
// Language
Language,
PreferOriginalForMetadata,
AlternativeChatFont,
// Updates
ReleaseStream,
// Graphics
// Renderer
FrameLimiter,
FPSCounter,
ReduceDroppedFrames,
DetectPerformanceIssues,
// Layout
Width,
Height,
EnableFullscreen,
EnableLetterboxing,
HorizontalPosition,
VerticalPosition,
// Detail settings
EnableSnakingSliders,
EnableBackgroundVideo,
EnableStoryboards,
EnableComboBursts,
EnableHitLighting,
EnableShaders,
EnableSofteningFilter,
ScreenshotFormat,
// Main menu
EnableMenuSnow,
EnableMenuParallax,
EnableMenuTips,
EnableInterfaceVoices,
EnableOsuMusicTheme,
// Song select
EnableSongSelectThumbnails,
// Gameplay
// General
BackgroundDim,
ProgressDisplay,
ScoreMeterType,
ScoreMeterSize,
AlwaysShowKeyOverlay,
ShowFirstHiddenApproachCircle,
ScaleManiaScrollSpeed,
RememberManiaScrollSpeed,
// Song select
SongSelectMinimumStars,
SongSelectMaximumStars,
// Audio
// Devices
OutputDevice,
// Volume
VolumeGlobal,
// New osu:
PlayMode,
Token,
// Imported from old osu:
BeatmapDirectory,
VolumeUniversal,
VolumeEffect,
VolumeMusic,
IgnoreBeatmapHitsounds,
// Offset
UniversalOffset,
// Skin
SelectedSkin,
IgnoreBeatmapSkins,
UseSkinAudioSamples,
UseTaikoSkin,
UseSkinCursor,
AllowPublicInvites,
AutoChatHide,
AutomaticDownload,
AutomaticDownloadNoVideo,
BlockNonFriendPM,
Bloom,
BloomSoftening,
BossKeyFirstActivation,
ChatAudibleHighlight,
ChatChannels,
ChatFilter,
ChatHighlightName,
ChatMessageNotification,
ChatLastChannel,
ChatRemoveForeign,
ChatSortMode,
ComboBurst,
ComboFire,
ComboFireHeight,
ConfirmExit,
AutoSendNowPlaying,
CursorSize,
EnableAutomaticCursorSize,
// Input
// Mouse
MouseSensitivity,
EnableRawInput,
EnableMapRawInputToWindow,
MouseConfinementMode,
DisableMouseWheelInPlay,
DisableMouseButtonsInPlay,
EnableCursorRipples,
// Keyboard
// TODO
// Other
UseOSTabletSupport,
EnableWiimoteDrumSupport,
// Editor
EnableEditorBackgroundVideo,
EnableEditorDefaultSkin,
EnableEditorSnakingSliders,
EnableEditorHitAnimations,
EnableEditorFollowPoints,
EnableEditorStacking,
// Online
// Alerts and Privacy
EnableChatTicker,
HideChatDuringPlay,
EnableNotifyOnMention,
EnableSoundOnMention,
EnableChatNotifications,
EnableCitySharing,
EnableSpectators,
AutoLinkBeatmapsToSpectators,
ShowNotificationsDuringPlay,
ShowFriendOnlineStatusNotifications,
AllowAnyMultiplayerInvites,
// Integration
EnableYahooIntegration,
EnableMSNLiveIntegration,
AutoStartOsuDirect,
PreferNoVideo,
// In-game chat
EnableWordFilter,
EnableForeignFilter,
EnablePrivateMessageLog,
BlockStrangerPrivateMessages,
ChatIgnoreList,
ChatHighlightList,
// Maintenance
// (no persisted options)
// Misc (not mapped to user-visible options)
Token,
PlayMode,
AutomaticCursorSizing,
DimLevel,
Display,
DisplayCityLocation,
DistanceSpacingEnabled,
EditorTip,
VideoEditor,
EditorDefaultSkin,
EditorSnakingSliders,
EditorHitAnimations,
EditorFollowPoints,
EditorStacking,
ForceSliderRendering,
FpsCounter,
FrameTimeDisplay,
GuideTips,
CursorRipple,
HighlightWords,
HighResolution,
HitLighting,
IgnoreBarline,
IgnoreBeatmapSamples,
IgnoreBeatmapSkins,
IgnoreList,
KeyOverlay,
Language,
LastPlayMode,
AllowNowPlayingHighlights,
LastVersion,
LastVersionPermissionsFailed,
LoadSubmittedThread,
LobbyPlayMode,
ShowInterface,
ShowInterfaceDuringRelax,
LobbyShowExistingOnly,
LobbyShowFriendsOnly,
LobbyShowFull,
LobbyShowInProgress,
LobbyShowPassworded,
LogPrivateMessages,
LowResolution,
ManiaSpeed,
UsePerBeatmapManiaSpeed,
ManiaSpeedBPMScale,
MenuTip,
MouseDisableButtons,
MouseDisableWheel,
MouseSpeed,
Offset,
ScoreMeterScale,
DistanceSpacing,
EditorBeatDivisor,
EditorGridSize,
EditorGridSizeDesign,
Height,
Width,
HeightFullscreen,
CustomFrameLimit,
WidthFullscreen,
MsnIntegration,
MyPcSucks,
NotifyFriends,
NotifySubmittedThread,
PopupDuringGameplay,
ProgressBarType,
RankType,
RefreshRate,
OverrideRefreshRate,
ScaleMode,
ScoreboardVisible,
ScoreMeter,
ScreenshotId,
MenuSnow,
MenuTriangles,
SongSelectThumbnails,
ScreenshotFormat,
ShowReplayComments,
ShowSpectators,
ShowStoryboard,
Skin,
SkinSamples,
SkipTablet,
SnakingSliders,
Tablet,
UpdatePending,
UserFilter,
UseSkinCursor,
UseTaikoSkin,
Video,
Wiimote,
YahooIntegration,
ForceFrameFlush,
DetectPerformanceIssues,
Fullscreen,
MenuMusic,
MenuVoice,
MenuParallax,
RawInput,
AbsoluteToOsuWindow,
ConfineMouse,
ShowMenuTips,
HiddenShowFirstApproach,
ComboColourSliderBall,
AlternativeChatFont,
Password,
Username,
DisplayStarsMaximum,
DisplayStarsMinimum,
AudioDevice,
ReleaseStream,
UpdateFailCount,
SavePassword,
SaveUsername,
TreeSortMode,
TreeSortMode2,
Letterboxing,
LetterboxPositionX,
LetterboxPositionY,
FrameSync,
ShowUnicode,
PermanentSongInfo,
Ticker,
CompatibilityContext,
CanForceOptimusCompatibility,
}
}

View File

@ -61,7 +61,7 @@ namespace osu.Game
Schedule(delegate { Beatmaps.Import(args); });
//attach our bindables to the audio subsystem.
Audio.Volume.Weld(Config.GetBindable<double>(OsuConfig.VolumeGlobal));
Audio.Volume.Weld(Config.GetBindable<double>(OsuConfig.VolumeUniversal));
Audio.VolumeSample.Weld(Config.GetBindable<double>(OsuConfig.VolumeEffect));
Audio.VolumeTrack.Weld(Config.GetBindable<double>(OsuConfig.VolumeMusic));