2016-08-26 03:28:23 +00:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
2016-08-26 08:27:49 +00:00
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-08-26 03:28:23 +00:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Configuration;
|
2016-10-04 08:15:03 +00:00
|
|
|
|
using osu.Game.GameModes.Play;
|
2016-08-31 10:49:34 +00:00
|
|
|
|
using osu.Game.Online.API;
|
2016-08-26 03:28:23 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Configuration
|
|
|
|
|
{
|
|
|
|
|
class OsuConfigManager : ConfigManager<OsuConfig>
|
|
|
|
|
{
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
2016-09-01 10:05:44 +00:00
|
|
|
|
Set(OsuConfig.Width, 1366, 640);
|
|
|
|
|
Set(OsuConfig.Height, 768, 480);
|
2016-08-26 03:28:23 +00:00
|
|
|
|
Set(OsuConfig.MouseSensitivity, 1.0);
|
2016-08-31 10:49:34 +00:00
|
|
|
|
|
|
|
|
|
Set(OsuConfig.Username, string.Empty);
|
|
|
|
|
Set(OsuConfig.Password, string.Empty);
|
|
|
|
|
Set(OsuConfig.Token, string.Empty);
|
2016-10-04 08:15:03 +00:00
|
|
|
|
|
|
|
|
|
Set(OsuConfig.PlayMode, PlayMode.Osu);
|
2016-10-06 18:05:26 +00:00
|
|
|
|
|
|
|
|
|
Set(OsuConfig.VolumeGlobal, 0.8, 0, 1);
|
|
|
|
|
Set(OsuConfig.VolumeMusic, 1.0, 0, 1);
|
|
|
|
|
Set(OsuConfig.VolumeEffect, 1.0, 0, 1);
|
2016-08-26 03:28:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum OsuConfig
|
|
|
|
|
{
|
|
|
|
|
Width,
|
|
|
|
|
Height,
|
|
|
|
|
MouseSensitivity,
|
2016-08-31 10:49:34 +00:00
|
|
|
|
Username,
|
|
|
|
|
Password,
|
2016-10-04 08:15:03 +00:00
|
|
|
|
Token,
|
2016-10-06 18:05:26 +00:00
|
|
|
|
PlayMode,
|
|
|
|
|
VolumeGlobal,
|
|
|
|
|
VolumeEffect,
|
|
|
|
|
VolumeMusic
|
2016-08-26 03:28:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|