Beispiel #1
0
        private void VeteranModBtn_Click(object sender, RoutedEventArgs e)
        {
            if (ModifySettings.ModificationSettings.VeteranModUfoInstalled)
            {
                Directory.CreateDirectory("bin"); Directory.CreateDirectory("pak");

                File.WriteAllBytes("bin\\balance.bin", Properties.Resources.BalanceVanilla);
                File.WriteAllBytes("pak\\creature.pak", Properties.Resources.CreatureVanilla);

                VeteranModBtn.SetResourceReference(ContentProperty, "String0088");

                ModifySettings.ModificationSettings.VeteranModUfoInstalled = false;
            }
            else
            {
                Directory.CreateDirectory("bin"); Directory.CreateDirectory("pak");

                File.WriteAllBytes("bin\\balance.bin", Properties.Resources.BalanceVeteran);
                File.WriteAllBytes("pak\\creature.pak", Properties.Resources.CreatureVeteran);

                VeteranModBtn.SetResourceReference(ContentProperty, "String0089");

                ModifySettings.ModificationSettings.VeteranModUfoInstalled = true;
            }
        }
Beispiel #2
0
        public ModifyPageSettingsOne()
        {
            InitializeComponent();

            VeteranModBtn.SetResourceReference(ContentProperty,
                                               !ModifySettings.ModificationSettings.VeteranModUfoInstalled ? "String0088" : "String0089");

            Sacred229PathBtn.SetResourceReference(ContentProperty,
                                                  !ModifySettings.ModificationSettings.SacredUnofficialPatchInstalled ? "String0090" : "String0091");

            ServerCoreFixBtn.SetResourceReference(ContentProperty,
                                                  !ModifySettings.ModificationSettings.ServerMultiCoreFixInstalled ? "String0092" : "String0093");

            Log.Info("Initialization components for app modify page one done!");
        }