Пример #1
0
 private void RingRight_Click(object sender, RoutedEventArgs e)
 {
     GearWindow ringRightWindow = new GearWindow(gearPerSlot[GearType.Ring]);
     ringRightWindow.Title = "Select Right Ring";
     ringRightWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     ringRightWindow.Show();
     ringRightWindow.GearSelected += ringRightWindow_GearSelected;
 }
Пример #2
0
 private void Weapon_Click(object sender, RoutedEventArgs e)
 {
     List<Item> weapons = new List<Item>();
     weapons.AddRange(gearPerSlot[GearType.Sword]);
     weapons.AddRange(gearPerSlot[GearType.Axe]);
     weapons.AddRange(gearPerSlot[GearType.Bow]);
     weapons.AddRange(gearPerSlot[GearType.Claw]);
     weapons.AddRange(gearPerSlot[GearType.Dagger]);
     weapons.AddRange(gearPerSlot[GearType.Mace]);
     weapons.AddRange(gearPerSlot[GearType.Sceptre]);
     weapons.AddRange(gearPerSlot[GearType.Staff]);
     weapons.AddRange(gearPerSlot[GearType.Wand]);
     GearWindow weaponWindow = new GearWindow(weapons);
     weaponWindow.Title = "Select Weapon";
     weaponWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     weaponWindow.Show();
     weaponWindow.GearSelected += weaponWindow_GearSelected;
 }
Пример #3
0
 private void Offhand_Click(object sender, RoutedEventArgs e)
 {
     List<Item> weapons = new List<Item>();
     if (MHIsBow)
         weapons.AddRange(gearPerSlot[GearType.Quiver]);
     else if (MHIsWand)
         weapons.AddRange(gearPerSlot[GearType.Wand]);
     else
     {
         weapons.AddRange(gearPerSlot[GearType.Sword].Where(gear => !gear.Properties[0].Name.Contains("Two Handed")));
         weapons.AddRange(gearPerSlot[GearType.Axe].Where(gear => !gear.Properties[0].Name.Contains("Two Handed")));
         weapons.AddRange(gearPerSlot[GearType.Claw]);
         weapons.AddRange(gearPerSlot[GearType.Dagger]);
         weapons.AddRange(gearPerSlot[GearType.Mace].Where(gear => !gear.Properties[0].Name.Contains("Two Handed")));
         weapons.AddRange(gearPerSlot[GearType.Sceptre]);
         weapons.AddRange(gearPerSlot[GearType.Shield]);
     }
     GearWindow offHandWindow = new GearWindow(weapons);
     offHandWindow.Title = "Select Offhand";
     offHandWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     offHandWindow.Show();
     offHandWindow.GearSelected += offHandWindow_GearSelected;
 }
Пример #4
0
 private void Helm_Click(object sender, RoutedEventArgs e)
 {
     GearWindow helmetWindow = new GearWindow(gearPerSlot[GearType.Helmet]);
     helmetWindow.Title = "Select Helm";
     helmetWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     helmetWindow.Show();
     helmetWindow.GearSelected += helmetWindow_GearSelected;
 }
Пример #5
0
 private void Gloves_Click(object sender, RoutedEventArgs e)
 {
     GearWindow glovesWindow = new GearWindow(gearPerSlot[GearType.Gloves]);
     glovesWindow.Title = "Select Gloves";
     glovesWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     glovesWindow.Show();
     glovesWindow.GearSelected += glovesWindow_GearSelected;
 }
Пример #6
0
 private void Boots_Click(object sender, RoutedEventArgs e)
 {
     GearWindow bootsWindow = new GearWindow(gearPerSlot[GearType.Boots]);
     bootsWindow.Title = "Select Boots";
     bootsWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     bootsWindow.Show();
     bootsWindow.GearSelected += bootsWindow_GearSelected;
 }
Пример #7
0
 private void Armour_Click(object sender, RoutedEventArgs e)
 {
     GearWindow armourWindow = new GearWindow(gearPerSlot[GearType.Chest]);
     armourWindow.Title = "Select Armour";
     armourWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     armourWindow.Show();
     armourWindow.GearSelected += armourWindow_GearSelected;
 }