//private void pictureBox2_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[1].name.Replace('_', ' '); //} //private void pictureBox3_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[2].name.Replace('_', ' '); //} //private void pictureBox4_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[3].name.Replace('_', ' '); //} //private void pictureBox5_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[4].name.Replace('_', ' '); //} //private void pictureBox6_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[5].name.Replace('_', ' '); //} //private void Relic1_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[6].name.Replace('_', ' '); //} //private void Relic2_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[7].name.Replace('_', ' '); //} //private void StarterItemPicture_Hover(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = Build[8].name.Replace('_', ' '); //} //private void ClearLabels(object sender, EventArgs e) //{ // this.CurrentItemNameLabel.Text = ""; //} #endregion //#region MajorLabels //private void ItemIntensityLabel_Click(object sender, EventArgs e) //{ // if (!this.DamageCheckBox.Checked || !this.HybridCheckBox.Checked || !this.DefenseCheckBox.Checked) // { // this.DamageCheckBox.Checked = true; // this.HybridCheckBox.Checked = true; // this.DefenseCheckBox.Checked = true; // } // else // { // this.DamageCheckBox.Checked = false; // this.HybridCheckBox.Checked = false; // this.DefenseCheckBox.Checked = false; // } //} //private void PhysicalLabel_Click(object sender, EventArgs e) //{ // if (!this.WarriorCheckBox.Checked || !this.HunterCheckBox.Checked || !this.AssassinCheckBox.Checked) // { // this.WarriorCheckBox.Checked = true; // this.HunterCheckBox.Checked = true; // this.AssassinCheckBox.Checked = true; // } // else // { // this.HunterCheckBox.Checked = false; // this.WarriorCheckBox.Checked = false; // this.AssassinCheckBox.Checked = false; // } //} //private void MagicalLabel_Click(object sender, EventArgs e) //{ // if (!this.GuardianCheckBox.Checked || !this.MageCheckBox.Checked) // { // this.GuardianCheckBox.Checked = true; // this.MageCheckBox.Checked = true; // } // else // { // this.GuardianCheckBox.Checked = false; // this.MageCheckBox.Checked = false; // } //} //#endregion #region BodySection //Checkboxes with gods and itemcolours, sets _build to a full build, and _god to a god public void FullRebuild(List <ItemColorType> itemColorTypes, List <GodType> godTypes) { //Choose god int choice; legalGods = godCol.RetrieveLegalList(godTypes); choice = rnd.Next(legalGods.Count); god = legalGods[choice]; legalBoots = itemCol.RetrieveLegalBoots(itemColorTypes, god.godType); legalItems = itemCol.RetrieveLegalItems(itemColorTypes, god.godType); legalRelics = itemCol.RetrieveLegalRelics(); legalStarters = itemCol.RetrieveLegalStarters(itemColorTypes, god.godType); for (int i = 0; i < 9; i++) { RerollItem(i); } }
public void BuildButton_Click(object sender, EventArgs e) { godCol = new GodCollector(); itemCol = new ItemCollector(MapSelectionList.SelectedValue); //Setup for next roll //this.GeneralTextBox.Visible = false; GeneralTextBox.Text = "Welcome to DankSmite!\nClick the Build button to get a god and a build! C" + "lick the pictures to reroll them, should you want to do so!\n\n\nWorks for smite ve" + "rsion: " + SmiteVersion + "\nDanksmite version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString(2); //this.GeneralTextBox.Visible = false; //this.CurrentItemNameLabel.Text = ""; RerollNumber.Text = 0.ToString(); CredsFlag = false; WelcomeFlag = false; DetailsFlag = false; //Making input easier GodNameInterpreter(); //Some dankness #region Dank if (InputField.Text == "op") { //_god = new God("Ymir", "g"); //for (int i = 0; i < 6; i++) //{ // Build[i] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //} //Build[6] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //Build[7] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //Build[8] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //legalBoots = itemCol.RetrieveLegalBoots(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); //legalItems = itemCol.RetrieveLegalItems(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); //legalRelics = itemCol.RetrieveLegalRelics(); //legalStarters = itemCol.RetrieveLegalStarters(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); } else if (InputField.Text.ToLower() == "trickermand") { //_god = new God("Ymir", "g"); //Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); //Build[1] = new Item("Dynasty_Plate_Helm", "hyb", true, false, false); //Build[2] = new Item("BreastPlate_of_Valor", "def", true, true, false); //Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); //Build[5] = new Item("Shogun's_Kusari", "dmg", true, false, false); //Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); //Build[6] = new Item("Blink_Rune", "dmg", true, true, false); //Build[7] = new Item("Magic_Shell", "dmg", true, true, false); //Build[8] = new Item("Mark_of_the_Vanguard", "dmg", false, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (InputField.Text.ToLower() == "nazzyc") { //_god = new God("Medusa", "h"); //for (int i = 0; i < 6; i++) //{ // Build[i] = new Item("Odysseus'_Bow", "dmg", false, true, false); //} //Build[6] = new Item("Bracer_of_Undoing", "def", true, true, false); //Build[7] = new Item("Bracer_of_Undoing", "def", true, true, false); //Build[8] = new Item("Odysseus'_Bow", "dmg", false, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (InputField.Text.ToLower() == "kloppermand") { //_god = new God("Ares", "g"); //Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); //Build[1] = new Item("Void_Stone", "hyb", true, false, false); //Build[2] = new Item("Mystical_Mail", "def", true, true, false); //Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); //Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); //Build[5] = new Item("Rod_of_Tahuti", "dmg", true, false, false); //Build[6] = new Item("Blink_Rune", "hyb", true, true, false); //Build[7] = new Item("Shield_of_Thorns", "def", true, true, false); //Build[8] = new Item("Mark_of_the_Vanguard", "def", true, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } #endregion //Validation of proper input else if (!((AssassinCheckbox.Checked == false && this.GuardianCheckbox.Checked == false && this.HunterCheckbox.Checked == false && this.MageCheckbox.Checked == false && this.WarriorCheckbox.Checked == false) || (this.DamageCheckbox.Checked == false && this.DefenseCheckbox.Checked == false && this.HybridCheckbox.Checked == false))) { if (string.IsNullOrEmpty(InputField.Text)) { FullRebuild(CreateItemTypeListFromCheckBoxes(), CreateGodTypeListFromCheckBoxes()); } else { FullRebuild(InputField.Text, CreateItemTypeListFromCheckBoxes()); } } else { _god = new God("Ymir", GodType.Guardian, "Ymir.png"); for (int i = 0; i < 6; i++) { Build[i] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); } Build[6] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); Build[7] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); Build[8] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); legalBoots = itemCol.RetrieveLegalBoots(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); legalItems = itemCol.RetrieveLegalItems(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); legalRelics = itemCol.RetrieveLegalRelics(); legalStarters = itemCol.RetrieveLegalStarters(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); } //Sets labels //this.StarterItemLabel.Visible = true; //this.RelicLabel1.Visible = true; //this.RelicLabel2.Visible = true; //this.ItemLabel1.Visible = true; //this.ItemLabel2.Visible = true; //this.ItemLabel3.Visible = true; //this.ItemLabel4.Visible = true; //this.ItemLabel5.Visible = true; //this.ItemLabel6.Visible = true; //clickedRebuild = true; Draw(); }
private void BuildButton(object sender, EventArgs e) { //Setup for next roll this.GeneralTextBox.Visible = false; this.CurrentItemNameLabel.Text = ""; RerollAmount = 0; CredsFlag = false; WelcomeFlag = false; DetailsFlag = false; //Making input easier GodNameInterpreter(); //Some dankness #region Dank if (this.TextInput.Text == "op") { _god = new God("Ymir", "g"); for (int i = 0; i < 6; i++) { Build[i] = new Item("Deathbringer", "dmg", false, true, false); } Build[6] = new Item("Blink_Rune", "dmg", true, true, false); Build[7] = new Item("Blink_Rune", "dmg", true, true, false); Build[8] = new Item("Deathbringer", "dmg", false, true, false); legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (this.TextInput.Text.ToLower() == "trickermand") { _god = new God("Ymir", "g"); Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); Build[1] = new Item("Dynasty_Plate_Helm", "hyb", true, false, false); Build[2] = new Item("BreastPlate_of_Valor", "def", true, true, false); Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); Build[5] = new Item("Shogun's_Kusari", "dmg", true, false, false); Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); Build[6] = new Item("Blink_Rune", "dmg", true, true, false); Build[7] = new Item("Magic_Shell", "dmg", true, true, false); Build[8] = new Item("Mark_of_the_Vanguard", "dmg", false, true, false); legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (this.TextInput.Text.ToLower() == "nazzyc") { _god = new God("Medusa", "h"); for (int i = 0; i < 6; i++) { Build[i] = new Item("Odysseus'_Bow", "dmg", false, true, false); } Build[6] = new Item("Bracer_of_Undoing", "def", true, true, false); Build[7] = new Item("Bracer_of_Undoing", "def", true, true, false); Build[8] = new Item("Odysseus'_Bow", "dmg", false, true, false); legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (this.TextInput.Text.ToLower() == "kloppermand") { _god = new God("Ares", "g"); Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); Build[1] = new Item("Void_Stone", "hyb", true, false, false); Build[2] = new Item("Mystical_Mail", "def", true, true, false); Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); Build[5] = new Item("Rod_of_Tahuti", "dmg", true, false, false); Build[6] = new Item("Blink_Rune", "hyb", true, true, false); Build[7] = new Item("Shield_of_Thorns", "def", true, true, false); Build[8] = new Item("Mark_of_the_Vanguard", "def", true, true, false); legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } #endregion //Validation of proper input else if (!((this.AssassinCheckBox.Checked == false && this.GuardianCheckBox.Checked == false && this.HunterCheckBox.Checked == false && this.MageCheckBox.Checked == false && this.WarriorCheckBox.Checked == false) || (this.DamageCheckBox.Checked == false && this.DefenseCheckBox.Checked == false && this.HybridCheckBox.Checked == false))) { if (string.IsNullOrEmpty(this.TextInput.Text)) { fullRebuild( this.GuardianCheckBox.Checked, this.MageCheckBox.Checked, this.HunterCheckBox.Checked, this.AssassinCheckBox.Checked, this.WarriorCheckBox.Checked, this.DamageCheckBox.Checked, this.HybridCheckBox.Checked, this.DefenseCheckBox.Checked ); } else { fullRebuild( this.TextInput.Text, this.DamageCheckBox.Checked, this.HybridCheckBox.Checked, this.DefenseCheckBox.Checked ); } } else { _god = new God("Ymir", "g"); for (int i = 0; i < 6; i++) { Build[i] = new Item("Deathbringer", "dmg", false, true, false); } Build[6] = new Item("Blink_Rune", "dmg", true, true, false); Build[7] = new Item("Blink_Rune", "dmg", true, true, false); Build[8] = new Item("Deathbringer", "dmg", false, true, false); legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } //Sets labels this.StarterItemLabel.Visible = true; this.RelicLabel1.Visible = true; this.RelicLabel2.Visible = true; this.ItemLabel1.Visible = true; this.ItemLabel2.Visible = true; this.ItemLabel3.Visible = true; this.ItemLabel4.Visible = true; this.ItemLabel5.Visible = true; this.ItemLabel6.Visible = true; clickedRebuild = true; Draw(); }