private void sanAndreasToolStripMenuItem_Click(object sender, EventArgs e) { Config.Instance().SelectedGame = "san_andreas"; Config.Instance().EnabledEffects.Clear(); EffectDatabase.PopulateEffects("san_andreas"); PopulateEffectTreeList(); foreach (CategoryTreeNode node in enabledEffectsView.Nodes) { node.Checked = false; CheckAllChildNodes(node, false); node.UpdateCategory(); } foreach (CategoryTreeNode node in enabledEffectsView.Nodes) { node.UpdateCategory(); } }
public Form1() { InitializeComponent(); Text = "GTA Trilogy Chaos Mod v2.0.2"; if (!debug) { tabSettings.TabPages.Remove(tabDebug); gameToolStripMenuItem.Visible = false; } else { Text += " (DEBUG)"; } stopwatch = new Stopwatch(); autoStartTimer = new System.Timers.Timer() { Interval = 50, AutoReset = true }; autoStartTimer.Elapsed += AutoStartTimer_Elapsed; EffectDatabase.PopulateEffects("san_andreas"); PopulateEffectTreeList(); PopulateMainCooldowns(); PopulatePresets(); tabSettings.TabPages.Remove(tabTwitch); PopulateVotingTimes(); PopulateVotingCooldowns(); TryLoadConfig(); timesUntilRapidFire = new Random().Next(10, 15); }