1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Rename and add simple xmldoc

This commit is contained in:
Dean Herbert 2019-09-28 20:21:51 +08:00
parent d01c30fd52
commit a45f8c968b
2 changed files with 7 additions and 4 deletions

View File

@ -3,15 +3,18 @@
namespace osu.Game.Configuration
{
public class SessionStatics : InMemoryConfigManager<Statics>
/// <summary>
/// Stores global per-session statics. These will not be stored after exiting the game.
/// </summary>
public class SessionStatics : InMemoryConfigManager<Static>
{
protected override void InitialiseDefaults()
{
Set(Statics.LoginOverlayDisplayed, false);
Set(Static.LoginOverlayDisplayed, false);
}
}
public enum Statics
public enum Static
{
LoginOverlayDisplayed,
}

View File

@ -71,7 +71,7 @@ namespace osu.Game.Screens.Menu
private void load(DirectOverlay direct, SettingsOverlay settings, OsuConfigManager config, SessionStatics statics)
{
holdDelay = config.GetBindable<int>(OsuSetting.UIHoldActivationDelay);
loginDisplayed = statics.GetBindable<bool>(Statics.LoginOverlayDisplayed);
loginDisplayed = statics.GetBindable<bool>(Static.LoginOverlayDisplayed);
if (host.CanExit)
{