public void UpdateModMenuChangeState(object sender, EventValueArgs <bool> e) { bool changed = e.Value; string name = ModLoaderText.ModMenuButton; if (ModProgram.GamePreloaded) { name += "+"; } if (changed) { name = "*" + name; } button_openModMenu.Text = name; }
public void SetProcessStartAllowed(object sender, EventValueArgs <bool> e) { bool allow = e.Value; if (ModProgram.OutputPath == "") { UpdateProcessText(ModLoaderText.Step2Text); allow = false; } button_startProcess.Enabled = allow; if (allow) { UpdateProcessText(ModLoaderText.ProcessReady); } }
void SetLayoutUnsupportedGame(object sender, EventValueArgs <string> e) { string cons_mod = e.Value; button_modCrateMenu.Text = ModLoaderText.ModCratesButton; checkedListBox1.Items.Clear(); button_openModMenu.Visible = true; button_openModMenu.Enabled = false; button_modCrateMenu.Enabled = button_modCrateMenu.Visible = button_modTools.Visible = true; button_randomizeSeed.Enabled = button_randomizeSeed.Visible = button_openModMenu.Visible = button_openModMenu.Enabled = button_downloadMods.Enabled = button_downloadMods.Visible = false; numericUpDown1.Enabled = numericUpDown1.Visible = false; button_modTools.Enabled = false;//true; label_gameType.Text = ModLoaderText.UnsupportedGameTitle + " (" + cons_mod + ")"; linkLabel_apiCredit.Text = string.Empty; linkLabel_optionDesc.Text = string.Empty; linkLabel_optionDesc.Visible = false; panel_desc.Visible = false; int height = 295 + 45 + (checkedListBox1.Items.Count * 17); checkedListBox1.Visible = checkedListBox1.Enabled = checkedListBox1.Items.Count > 0; AdjustSize(height); }
void ResetGameSpecific(object sender, EventValueArgs <bool> e) { bool ClearGameText = e.Value; button_modCrateMenu.Text = ModLoaderText.ModCratesButton; button_openModMenu.Text = ModLoaderText.ModMenuButton; button_startProcess.Enabled = false; button_openModMenu.Enabled = button_openModMenu.Visible = false; button_modCrateMenu.Enabled = button_modCrateMenu.Visible = false; button_randomizeSeed.Enabled = button_randomizeSeed.Visible = button_modTools.Visible = button_modTools.Enabled = button_downloadMods.Enabled = button_downloadMods.Visible = false; numericUpDown1.Enabled = numericUpDown1.Visible = false; linkLabel_apiCredit.Text = string.Empty; linkLabel_apiCredit.LinkVisited = false; if (ClearGameText) { label_gameType.Text = string.Empty; } linkLabel_optionDesc.Text = string.Empty; linkLabel_optionDesc.Visible = false; panel_desc.Visible = false; checkedListBox1.Visible = checkedListBox1.Enabled = false; int Height = 188; if (!ClearGameText) { Height = 220; } AdjustSize(Height); }
void UpdateProcessProgress(object sender, EventValueArgs <int> e) { progressBar1.Value = e.Value; }
void UpdateProcessText(object sender, EventValueArgs <string> e) { label_processText.Text = e.Value; }