internal SettingsWindow()
 {
     settings    = SettingsWrapper.Instance.gameSettings;
     modStyle    = SettingsWrapper.Instance.modStyle;
     showWindow  = false;
     triggerSave = false;
     windowRect  = new Rect((Screen.width - 250) / 2, (Screen.height - 600) / 2, 250, 600);
     windowId    = GUIUtility.GetControlID(FocusType.Passive);
 }
 internal SettingsWindow()
 {
     settings = SettingsWrapper.Instance.gameSettings;
     modStyle = SettingsWrapper.Instance.modStyle;
     showWindow = false;
     triggerSave = false;
     windowRect = new Rect((Screen.width - 250) / 2, (Screen.height - 600) / 2, 250, 600);
     windowId = GUIUtility.GetControlID(FocusType.Passive);
 }
        private SettingsWrapper()
        {
            gameSettings = new Settings("ChuteSafetyIndicator.cfg");
            gameSettings.Load();
            gameSettings.Save();

            gameSettings.safeTexture.SetPixel(0, 0, gameSettings.safeColor);
            gameSettings.safeTexture.Apply();
            gameSettings.riskyTexture.SetPixel(0, 0, gameSettings.riskyColor);
            gameSettings.riskyTexture.Apply();
            gameSettings.unSafeTexture.SetPixel(0, 0, gameSettings.unSafeColor);
            gameSettings.unSafeTexture.Apply();



            modStyle = new ModStyle();
        }
        private SettingsWrapper()
        {
            gameSettings = new Settings("ChuteSafetyIndicator.cfg");
            gameSettings.Load();
            gameSettings.Save();

            gameSettings.safeTexture.SetPixel(0, 0, gameSettings.safeColor);
            gameSettings.safeTexture.Apply();
            gameSettings.riskyTexture.SetPixel(0, 0, gameSettings.riskyColor);
            gameSettings.riskyTexture.Apply();
            gameSettings.unSafeTexture.SetPixel(0, 0, gameSettings.unSafeColor);
            gameSettings.unSafeTexture.Apply();



            modStyle = new ModStyle();
        }