public void LoadColor(ColorID colorID, string themeID) { switch (colorID) { case ColorID.MoonInnerCorona: CurrentMix.Atmosphere.MoonInnerCorona.Load(themeID); break; case ColorID.MoonOuterCorona: CurrentMix.Atmosphere.MoonOuterCorona.Load(themeID); break; case ColorID.SkyTint: CurrentMix.Atmosphere.SkyTint.Load(themeID); break; case ColorID.NightHorizonColor: CurrentMix.Atmosphere.NightHorizonColor.Load(themeID); break; case ColorID.EarlyNightZenithColor: CurrentMix.Atmosphere.EarlyNightZenithColor.Load(themeID); break; case ColorID.LateNightZenithColor: CurrentMix.Atmosphere.LateNightZenithColor.Load(themeID); break; case ColorID.WaterClean: CurrentMix.Water.WaterClean.Load(themeID); break; case ColorID.WaterDirty: CurrentMix.Water.WaterDirty.Load(themeID); break; case ColorID.WaterUnder: CurrentMix.Water.WaterUnder.Load(themeID); break; } SaveLocalMix(); EventUIDirty?.Invoke(this, new UIDirtyEventArgs(CurrentMix)); }
public void LoadValue(ValueID valueID, string themeID) { switch (valueID) { case ValueID.Longitude: CurrentMix.Atmosphere.Longitude.Load(themeID); break; case ValueID.Latitude: CurrentMix.Atmosphere.Latitude.Load(themeID); break; case ValueID.SunSize: CurrentMix.Atmosphere.SunSize.Load(themeID); break; case ValueID.SunAnisotropy: CurrentMix.Atmosphere.SunAnisotropy.Load(themeID); break; case ValueID.MoonSize: CurrentMix.Atmosphere.MoonSize.Load(themeID); break; case ValueID.Rayleigh: CurrentMix.Atmosphere.Rayleigh.Load(themeID); break; case ValueID.Mie: CurrentMix.Atmosphere.Mie.Load(themeID); break; case ValueID.Exposure: CurrentMix.Atmosphere.Exposure.Load(themeID); break; case ValueID.StarsIntensity: CurrentMix.Atmosphere.StarsIntensity.Load(themeID); break; case ValueID.OuterSpaceIntensity: CurrentMix.Atmosphere.OuterSpaceIntensity.Load(themeID); break; case ValueID.GrassDetailEnabled: CurrentMix.Terrain.GrassDetailEnabled.Load(themeID); break; case ValueID.FertileDetailEnabled: CurrentMix.Terrain.FertileDetailEnabled.Load(themeID); break; case ValueID.RocksDetailEnabled: CurrentMix.Terrain.RocksDetailEnabled.Load(themeID); break; case ValueID.MinTemperatureDay: CurrentMix.Weather.MinTemperatureDay.Load(themeID); break; case ValueID.MaxTemperatureDay: CurrentMix.Weather.MaxTemperatureDay.Load(themeID); break; case ValueID.MinTemperatureNight: CurrentMix.Weather.MinTemperatureNight.Load(themeID); break; case ValueID.MaxTemperatureNight: CurrentMix.Weather.MaxTemperatureNight.Load(themeID); break; case ValueID.MinTemperatureRain: CurrentMix.Weather.MinTemperatureRain.Load(themeID); break; case ValueID.MaxTemperatureRain: CurrentMix.Weather.MaxTemperatureRain.Load(themeID); break; case ValueID.MinTemperatureFog: CurrentMix.Weather.MinTemperatureFog.Load(themeID); break; case ValueID.MaxTemperatureFog: CurrentMix.Weather.MaxTemperatureFog.Load(themeID); break; case ValueID.RainProbabilityDay: CurrentMix.Weather.RainProbabilityDay.Load(themeID); break; case ValueID.RainProbabilityNight: CurrentMix.Weather.RainProbabilityNight.Load(themeID); break; case ValueID.FogProbabilityDay: CurrentMix.Weather.FogProbabilityDay.Load(themeID); break; case ValueID.FogProbabilityNight: CurrentMix.Weather.FogProbabilityNight.Load(themeID); break; case ValueID.NorthernLightsProbability: CurrentMix.Weather.NorthernLightsProbability.Load(themeID); break; } SaveLocalMix(); EventUIDirty?.Invoke(this, new UIDirtyEventArgs(CurrentMix)); }
public void LoadOffset(OffsetID offsetID, string themeID) { switch (offsetID) { case OffsetID.GrassPollutionColorOffset: CurrentMix.Terrain.GrassPollutionColorOffset.Load(themeID); break; case OffsetID.GrassFieldColorOffset: CurrentMix.Terrain.GrassFieldColorOffset.Load(themeID); break; case OffsetID.GrassFertilityColorOffset: CurrentMix.Terrain.GrassFertilityColorOffset.Load(themeID); break; case OffsetID.GrassForestColorOffset: CurrentMix.Terrain.GrassForestColorOffset.Load(themeID); break; } SaveLocalMix(); EventUIDirty?.Invoke(this, new UIDirtyEventArgs(CurrentMix)); }
public void LoadTexture(TextureID textureID, string themeID) { switch (textureID) { case TextureID.GrassDiffuseTexture: CurrentMix.Terrain.GrassDiffuseTexture.Load(themeID); break; case TextureID.RuinedDiffuseTexture: CurrentMix.Terrain.RuinedDiffuseTexture.Load(themeID); break; case TextureID.PavementDiffuseTexture: CurrentMix.Terrain.PavementDiffuseTexture.Load(themeID); break; case TextureID.GravelDiffuseTexture: CurrentMix.Terrain.GravelDiffuseTexture.Load(themeID); break; case TextureID.CliffDiffuseTexture: CurrentMix.Terrain.CliffDiffuseTexture.Load(themeID); break; case TextureID.SandDiffuseTexture: CurrentMix.Terrain.SandDiffuseTexture.Load(themeID); break; case TextureID.OilDiffuseTexture: CurrentMix.Terrain.OilDiffuseTexture.Load(themeID); break; case TextureID.OreDiffuseTexture: CurrentMix.Terrain.OreDiffuseTexture.Load(themeID); break; case TextureID.CliffSandNormalTexture: CurrentMix.Terrain.CliffSandNormalTexture.Load(themeID); break; case TextureID.UpwardRoadDiffuse: CurrentMix.Structures.UpwardRoadDiffuse.Load(themeID); break; case TextureID.DownwardRoadDiffuse: CurrentMix.Structures.DownwardRoadDiffuse.Load(themeID); break; case TextureID.BuildingFloorDiffuse: CurrentMix.Structures.BuildingFloorDiffuse.Load(themeID); break; case TextureID.BuildingBaseDiffuse: CurrentMix.Structures.BuildingBaseDiffuse.Load(themeID); break; case TextureID.BuildingBaseNormal: CurrentMix.Structures.BuildingBaseNormal.Load(themeID); break; case TextureID.BuildingBurntDiffuse: CurrentMix.Structures.BuildingBurntDiffuse.Load(themeID); break; case TextureID.BuildingAbandonedDiffuse: CurrentMix.Structures.BuildingAbandonedDiffuse.Load(themeID); break; case TextureID.LightColorPalette: CurrentMix.Structures.LightColorPalette.Load(themeID); break; case TextureID.MoonTexture: CurrentMix.Atmosphere.MoonTexture.Load(themeID); break; case TextureID.WaterFoam: CurrentMix.Water.WaterFoam.Load(themeID); break; case TextureID.WaterNormal: CurrentMix.Water.WaterNormal.Load(themeID); break; } SaveLocalMix(); EventUIDirty?.Invoke(this, new UIDirtyEventArgs(CurrentMix)); }
public void LoadCategory(ThemeCategory category, string themeID) { switch (category) { case ThemeCategory.Themes: CurrentMix = new ThemeMix(themeID); break; case ThemeCategory.Terrain: CurrentMix.Terrain.Load(themeID); break; case ThemeCategory.Water: CurrentMix.Water.Load(themeID); break; case ThemeCategory.Structures: CurrentMix.Structures.Load(themeID); break; case ThemeCategory.Atmosphere: CurrentMix.Atmosphere.Load(themeID); break; case ThemeCategory.Weather: CurrentMix.Weather.Load(themeID); break; } SaveLocalMix(); EventUIDirty?.Invoke(this, new UIDirtyEventArgs(CurrentMix)); }