Skip to content

Commit

Permalink
New settings; generate when first run
Browse files Browse the repository at this point in the history
  • Loading branch information
DMagic1 committed Jan 26, 2017
1 parent ff5823a commit 1cc35e3
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions SCANsat/SCAN_Settings_Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using System.Reflection;
using UnityEngine;
using palette = SCANsat.SCAN_UI.UI_Framework.SCANpalette;

namespace SCANsat
{
Expand All @@ -17,6 +18,8 @@ public class SCAN_Settings_Config : MonoBehaviour
[Persistent]
public bool GroundTracksActiveOnly = true;
[Persistent]
public bool MechJebTarget = false;
[Persistent]
public bool OverlayTooltips = true;
[Persistent]
public bool WindowTooltips = true;
Expand All @@ -33,7 +36,7 @@ public class SCAN_Settings_Config : MonoBehaviour
[Persistent]
public bool RequireNarrowBand = true;
[Persistent]
public bool DisableStock = false;
public bool DisableStockResource = false;
[Persistent]
public bool InstantScan = true;
[Persistent]
Expand All @@ -43,16 +46,36 @@ public class SCAN_Settings_Config : MonoBehaviour
[Persistent]
public int Interpolation = 8;
[Persistent]
public int ResourceMapHeight = 512;
public int ResourceMapHeight = 256;
[Persistent]
public int BiomeMapHeight = 512;
[Persistent]
public float CoverageTransparency = 0.1f;
public float CoverageTransparency = 0.2f;
[Persistent]
public bool TrueGreyScale = false;
[Persistent]
public bool ExportCSV = false;
[Persistent]
public float BiomeTransparency = 0.4f;
[Persistent]
public bool BiomeBorder = true;
[Persistent]
public bool StockBiomes = false;
[Persistent]
public Color LowBiomeColor = palette.xkcd_CamoGreen;
[Persistent]
public Color HighBiomeColor = palette.xkcd_Marigold;
[Persistent]
public float SlopeCutoff = 1;
[Persistent]
public Color BottomLowSlopeColor = palette.xkcd_PukeGreen;
[Persistent]
public Color BottomHighSlopeColor = palette.xkcd_Lemon;
[Persistent]
public Color TopLowSlopeColor = palette.xkcd_Lemon;
[Persistent]
public Color TopHighSlopeColor = palette.xkcd_OrangeRed;
[Persistent]
public bool CheatMapFill = false;
[Persistent]
public bool CheatStartLoTerrain = false;
Expand Down Expand Up @@ -107,6 +130,11 @@ private void Awake()

if (Load())
SCANUtil.SCANlog("Settings file loaded");
else
{
if (Save())
SCANUtil.SCANlog("Settings file generated at:\n{0}", filePath);
}
}

public bool Load()
Expand Down

0 comments on commit 1cc35e3

Please sign in to comment.