Exemple #1
0
        private void saveSettings()
        {
            ConfigNode root         = new ConfigNode();
            ConfigNode ambienceNode = root.AddNode("ambience");

            setting.save(ambienceNode.AddNode("setting"));
            secondSetting.save(ambienceNode.AddNode("setting"));
            root.Save(SETTINGS_FILE);
        }
Exemple #2
0
        private void saveSettings()
        {
            ConfigNode root         = new ConfigNode();
            ConfigNode ambienceNode = root.AddNode("ambience");

            setting.save(ambienceNode.AddNode("setting"));
            secondSetting.save(ambienceNode.AddNode("setting"));
            if (button == null)
            {
                //Log.warn("Button is null, unable to save position");
            }
            else
            {
                //Log.warn("Button is not null, saving position");
                button.Save(root.AddNode("position"));
            }
            root.Save(SETTINGS_FILE);
        }