Beispiel #1
0
        private bool LoadColor(AtmosphereColor.ColorName name)
        {
            switch (name)
            {
            case AtmosphereColor.ColorName.MoonInnerCorona:
                return(MoonInnerCorona.Load());

            case AtmosphereColor.ColorName.MoonOuterCorona:
                return(MoonOuterCorona.Load());

            case AtmosphereColor.ColorName.SkyTint:
                return(SkyTint.Load());

            case AtmosphereColor.ColorName.NightHorizonColor:
                return(NightHorizonColor.Load());

            case AtmosphereColor.ColorName.EarlyNightZenithColor:
                return(EarlyNightZenithColor.Load());

            case AtmosphereColor.ColorName.LateNightZenithColor:
                return(LateNightZenithColor.Load());

            default: return(false);
            }
        }
Beispiel #2
0
        private void SetColor(string themeID, AtmosphereColor.ColorName name)
        {
            switch (name)
            {
            case AtmosphereColor.ColorName.MoonInnerCorona:
                MoonInnerCorona = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.MoonOuterCorona:
                MoonOuterCorona = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.SkyTint:
                SkyTint = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.NightHorizonColor:
                NightHorizonColor = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.EarlyNightZenithColor:
                EarlyNightZenithColor = new AtmosphereColor(themeID, name);
                break;

            case AtmosphereColor.ColorName.LateNightZenithColor:
                LateNightZenithColor = new AtmosphereColor(themeID, name);
                break;
            }
        }