Exemplo n.º 1
0
        protected void UpdateTechTree()
        {
            ConfigNode new_tech_nodes = PluginHelper.getNewTechTreeFile();

            if (new_tech_nodes != null)
            {
                new_tech_nodes.Save(PluginHelper.getTechTreeFilePath());
                PopupDialog.SpawnPopupDialog("Restart KSP", "Changes to the tech tree have been applied, please restart KSP before continuing.", "OK", false, GUI.skin);
            }
        }
Exemplo n.º 2
0
        public static ConfigNode getTechTreeFile()
        {
            ConfigNode config = ConfigNode.Load(PluginHelper.getTechTreeFilePath());

            return(config);
        }