SpaceAgeScenario.cs
/// <summary>
/// Check if settings need to be reset; show or hide AppLauncher button if the settings have changed
/// </summary>
Check if settings need to be reset; show or hide AppLauncher button if the settings have changed
Check if settings need to be reset ; show or hide AppLauncher button if the settings have changed
void OnGameSettingsApplied()
        {
            Core.Log("OnGameSettingsApplied", LogLevel.Important);
            if (SpaceAgeChronicleSettings.Instance.ResetSettings)
            {
                ResetSettings();
                ScreenMessages.PostScreenMessage(Localizer.Format("#SpaceAge_UI_SettingsReset"));
            }
            if (SpaceAgeChronicleSettings.Instance.ShowAppLauncherButton && appLauncherButton == null)
                RegisterAppLauncherButton();
            if (!SpaceAgeChronicleSettings.Instance.ShowAppLauncherButton)
                UnregisterAppLauncherButton();
            if (!SpaceAgeChronicleSettings.Instance.TrackBurns)
                burnStarted = double.NaN;
        }
void OnGameSettingsApplied ( ) { Core . Log ( " " , LogLevel . Important ) ; if ( SpaceAgeChronicleSettings . Instance . ResetSettings ) { ResetSettings ( ) ; ScreenMessages . PostScreenMessage ( Localizer . Format ( " " ) ) ; } if ( SpaceAgeChronicleSettings . Instance . ShowAppLauncherButton && appLauncherButton == null ) RegisterAppLauncherButton ( ) ; if ( ! SpaceAgeChronicleSettings . Instance . ShowAppLauncherButton ) UnregisterAppLauncherButton ( ) ; if ( ! SpaceAgeChronicleSettings . Instance . TrackBurns ) burnStarted = double . NaN ; }
Check if settings need to be reset; show or hide AppLauncher button if the settings have changed
Check if settings need to be reset ; show or hide AppLauncher button if the settings have changed