Make hostages CT blue and fix hostage hiding

* Hostages and other spawns should now hide respectively correctly
This commit is contained in:
MathiasL 2022-03-18 00:50:47 +01:00
parent 77f3d2c91c
commit 374d66e854
14 changed files with 175 additions and 159 deletions

View file

@ -344,6 +344,7 @@ namespace Damage_Calculator
var spawn = new PlayerSpawn();
spawn.Origin = this.stringToVector3(entityRootVdf["origin"]?.Value) ?? Vector3.Empty;
spawn.Angles = this.stringToVector3(entityRootVdf["angles"]?.Value) ?? Vector3.Empty;
spawn.Team = ePlayerTeam.CounterTerrorist; // Just for the colour
// Count all hostage spawns
map.AmountHostages++;
@ -553,11 +554,14 @@ namespace Damage_Calculator
private void positionSpawns()
{
double size = this.getPixelsFromUnits(70);
double size = this.getPixelsFromUnits(75);
foreach (var spawn in this.loadedMap.SpawnPoints)
{
if (!spawn.IsPriority && mnuAllowNonPrioritySpawns.IsChecked == false)
if (spawn.Type != eSpawnType.Hostage)
{
if (mnuAllowNonPrioritySpawns.IsChecked == false && (!spawn.IsPriority || (spawn.Team == ePlayerTeam.Terrorist && !this.loadedMap.HasPrioritySpawnsT) || (spawn.Team == ePlayerTeam.CounterTerrorist && !this.loadedMap.HasPrioritySpawnsCT)))
continue;
}
if (spawn.Type == eSpawnType.Standard && mnuShowStandardSpawns.IsChecked == false)
continue;

View file

@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DDEB88E6BF2411090CEFE97ECD05FAC168A9400B7A2D3FEBF6EE291BC90C4F86"
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "520310F22F68AE4E47B66F6D92CC98AD8018EE1647882A1C45F9B52AC540A4BB"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -41,7 +41,7 @@ namespace Damage_Calculator {
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowBombSites;
@ -49,7 +49,7 @@ namespace Damage_Calculator {
#line hidden
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowSpawnAreas;
@ -57,7 +57,7 @@ namespace Damage_Calculator {
#line hidden
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowStandardSpawns;
@ -65,7 +65,7 @@ namespace Damage_Calculator {
#line hidden
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShow2v2Spawns;
@ -73,7 +73,7 @@ namespace Damage_Calculator {
#line hidden
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowHostageSpawns;
@ -81,7 +81,7 @@ namespace Damage_Calculator {
#line hidden
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuAllowNonPrioritySpawns;
@ -89,7 +89,7 @@ namespace Damage_Calculator {
#line hidden
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowDrawnMarkers;
@ -97,7 +97,7 @@ namespace Damage_Calculator {
#line hidden
#line 32 "..\..\MainWindow.xaml"
#line 33 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuAbout;
@ -105,7 +105,7 @@ namespace Damage_Calculator {
#line hidden
#line 33 "..\..\MainWindow.xaml"
#line 34 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuHelp;
@ -113,7 +113,7 @@ namespace Damage_Calculator {
#line hidden
#line 47 "..\..\MainWindow.xaml"
#line 48 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioModeShooting;
@ -121,7 +121,7 @@ namespace Damage_Calculator {
#line hidden
#line 48 "..\..\MainWindow.xaml"
#line 49 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioModeBomb;
@ -129,7 +129,7 @@ namespace Damage_Calculator {
#line hidden
#line 50 "..\..\MainWindow.xaml"
#line 51 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel topStackPanel;
@ -137,7 +137,7 @@ namespace Damage_Calculator {
#line hidden
#line 52 "..\..\MainWindow.xaml"
#line 53 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox comboBoxMaps;
@ -145,7 +145,7 @@ namespace Damage_Calculator {
#line hidden
#line 57 "..\..\MainWindow.xaml"
#line 58 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtEasterEggMetres;
@ -153,7 +153,7 @@ namespace Damage_Calculator {
#line hidden
#line 58 "..\..\MainWindow.xaml"
#line 59 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock textDistanceMetres;
@ -161,7 +161,7 @@ namespace Damage_Calculator {
#line hidden
#line 62 "..\..\MainWindow.xaml"
#line 63 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock textDistanceUnits;
@ -169,7 +169,7 @@ namespace Damage_Calculator {
#line hidden
#line 65 "..\..\MainWindow.xaml"
#line 66 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Shapes.Rectangle rectTop;
@ -177,7 +177,7 @@ namespace Damage_Calculator {
#line hidden
#line 66 "..\..\MainWindow.xaml"
#line 67 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Shapes.Rectangle rectSide;
@ -185,7 +185,7 @@ namespace Damage_Calculator {
#line hidden
#line 67 "..\..\MainWindow.xaml"
#line 68 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel leftStackPanel;
@ -193,7 +193,7 @@ namespace Damage_Calculator {
#line hidden
#line 71 "..\..\MainWindow.xaml"
#line 72 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackArmorSeparated;
@ -201,7 +201,7 @@ namespace Damage_Calculator {
#line hidden
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHelmet;
@ -209,7 +209,7 @@ namespace Damage_Calculator {
#line hidden
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkKevlar;
@ -217,7 +217,7 @@ namespace Damage_Calculator {
#line hidden
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkArmorAny;
@ -225,7 +225,7 @@ namespace Damage_Calculator {
#line hidden
#line 77 "..\..\MainWindow.xaml"
#line 78 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackAreaHit;
@ -233,7 +233,7 @@ namespace Damage_Calculator {
#line hidden
#line 79 "..\..\MainWindow.xaml"
#line 80 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioHead;
@ -241,7 +241,7 @@ namespace Damage_Calculator {
#line hidden
#line 80 "..\..\MainWindow.xaml"
#line 81 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioChestArms;
@ -249,7 +249,7 @@ namespace Damage_Calculator {
#line hidden
#line 81 "..\..\MainWindow.xaml"
#line 82 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioStomach;
@ -257,7 +257,7 @@ namespace Damage_Calculator {
#line hidden
#line 82 "..\..\MainWindow.xaml"
#line 83 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioLegs;
@ -265,7 +265,7 @@ namespace Damage_Calculator {
#line hidden
#line 84 "..\..\MainWindow.xaml"
#line 85 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackWeaponUsed;
@ -273,7 +273,7 @@ namespace Damage_Calculator {
#line hidden
#line 86 "..\..\MainWindow.xaml"
#line 87 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox comboWeapons;
@ -281,7 +281,7 @@ namespace Damage_Calculator {
#line hidden
#line 90 "..\..\MainWindow.xaml"
#line 91 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtResult;
@ -289,7 +289,7 @@ namespace Damage_Calculator {
#line hidden
#line 91 "..\..\MainWindow.xaml"
#line 92 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtResultArmor;
@ -297,7 +297,7 @@ namespace Damage_Calculator {
#line hidden
#line 98 "..\..\MainWindow.xaml"
#line 99 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHasMapFile;
@ -305,7 +305,7 @@ namespace Damage_Calculator {
#line hidden
#line 99 "..\..\MainWindow.xaml"
#line 100 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHasNavFile;
@ -313,7 +313,7 @@ namespace Damage_Calculator {
#line hidden
#line 102 "..\..\MainWindow.xaml"
#line 103 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtBombMaxDamage;
@ -321,7 +321,7 @@ namespace Damage_Calculator {
#line hidden
#line 106 "..\..\MainWindow.xaml"
#line 107 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtBombRadius;
@ -329,7 +329,7 @@ namespace Damage_Calculator {
#line hidden
#line 113 "..\..\MainWindow.xaml"
#line 114 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtCursorX;
@ -337,7 +337,7 @@ namespace Damage_Calculator {
#line hidden
#line 117 "..\..\MainWindow.xaml"
#line 118 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtCursorY;
@ -345,7 +345,7 @@ namespace Damage_Calculator {
#line hidden
#line 122 "..\..\MainWindow.xaml"
#line 123 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal Damage_Calculator.ZoomBorder rightZoomBorder;
@ -353,7 +353,7 @@ namespace Damage_Calculator {
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Image mapImage;
@ -361,7 +361,7 @@ namespace Damage_Calculator {
#line hidden
#line 125 "..\..\MainWindow.xaml"
#line 127 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Canvas pointsCanvas;
@ -369,7 +369,7 @@ namespace Damage_Calculator {
#line hidden
#line 129 "..\..\MainWindow.xaml"
#line 132 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Grid gridLoading;
@ -430,19 +430,25 @@ namespace Damage_Calculator {
#line 14 "..\..\MainWindow.xaml"
((Damage_Calculator.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);
#line default
#line hidden
#line 15 "..\..\MainWindow.xaml"
((Damage_Calculator.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_PreviewMouseDown);
#line default
#line hidden
return;
case 2:
this.mnuShowBombSites = ((System.Windows.Controls.MenuItem)(target));
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
this.mnuShowBombSites.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
this.mnuShowBombSites.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -451,13 +457,13 @@ namespace Damage_Calculator {
case 3:
this.mnuShowSpawnAreas = ((System.Windows.Controls.MenuItem)(target));
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
this.mnuShowSpawnAreas.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
this.mnuShowSpawnAreas.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -466,13 +472,13 @@ namespace Damage_Calculator {
case 4:
this.mnuShowStandardSpawns = ((System.Windows.Controls.MenuItem)(target));
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
this.mnuShowStandardSpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
this.mnuShowStandardSpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -481,13 +487,13 @@ namespace Damage_Calculator {
case 5:
this.mnuShow2v2Spawns = ((System.Windows.Controls.MenuItem)(target));
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
this.mnuShow2v2Spawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
this.mnuShow2v2Spawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -496,13 +502,13 @@ namespace Damage_Calculator {
case 6:
this.mnuShowHostageSpawns = ((System.Windows.Controls.MenuItem)(target));
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
this.mnuShowHostageSpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
this.mnuShowHostageSpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -511,13 +517,13 @@ namespace Damage_Calculator {
case 7:
this.mnuAllowNonPrioritySpawns = ((System.Windows.Controls.MenuItem)(target));
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
this.mnuAllowNonPrioritySpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
this.mnuAllowNonPrioritySpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -526,13 +532,13 @@ namespace Damage_Calculator {
case 8:
this.mnuShowDrawnMarkers = ((System.Windows.Controls.MenuItem)(target));
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
this.mnuShowDrawnMarkers.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
this.mnuShowDrawnMarkers.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -540,7 +546,7 @@ namespace Damage_Calculator {
return;
case 9:
#line 27 "..\..\MainWindow.xaml"
#line 28 "..\..\MainWindow.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeTheme_Click);
#line default
@ -548,7 +554,7 @@ namespace Damage_Calculator {
return;
case 10:
#line 28 "..\..\MainWindow.xaml"
#line 29 "..\..\MainWindow.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeTheme_Click);
#line default
@ -557,7 +563,7 @@ namespace Damage_Calculator {
case 11:
this.mnuAbout = ((System.Windows.Controls.MenuItem)(target));
#line 32 "..\..\MainWindow.xaml"
#line 33 "..\..\MainWindow.xaml"
this.mnuAbout.Click += new System.Windows.RoutedEventHandler(this.mnuAbout_Click);
#line default
@ -566,7 +572,7 @@ namespace Damage_Calculator {
case 12:
this.mnuHelp = ((System.Windows.Controls.MenuItem)(target));
#line 33 "..\..\MainWindow.xaml"
#line 34 "..\..\MainWindow.xaml"
this.mnuHelp.Click += new System.Windows.RoutedEventHandler(this.mnuHelp_Click);
#line default
@ -575,7 +581,7 @@ namespace Damage_Calculator {
case 13:
this.radioModeShooting = ((System.Windows.Controls.RadioButton)(target));
#line 47 "..\..\MainWindow.xaml"
#line 48 "..\..\MainWindow.xaml"
this.radioModeShooting.Checked += new System.Windows.RoutedEventHandler(this.radioModeShooting_Checked);
#line default
@ -584,7 +590,7 @@ namespace Damage_Calculator {
case 14:
this.radioModeBomb = ((System.Windows.Controls.RadioButton)(target));
#line 48 "..\..\MainWindow.xaml"
#line 49 "..\..\MainWindow.xaml"
this.radioModeBomb.Checked += new System.Windows.RoutedEventHandler(this.radioModeBomb_Checked);
#line default
@ -596,7 +602,7 @@ namespace Damage_Calculator {
case 16:
this.comboBoxMaps = ((System.Windows.Controls.ComboBox)(target));
#line 52 "..\..\MainWindow.xaml"
#line 53 "..\..\MainWindow.xaml"
this.comboBoxMaps.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBoxMaps_SelectionChanged);
#line default
@ -626,13 +632,13 @@ namespace Damage_Calculator {
case 24:
this.chkHelmet = ((System.Windows.Controls.CheckBox)(target));
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
this.chkHelmet.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
this.chkHelmet.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -641,13 +647,13 @@ namespace Damage_Calculator {
case 25:
this.chkKevlar = ((System.Windows.Controls.CheckBox)(target));
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
this.chkKevlar.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
this.chkKevlar.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -656,13 +662,13 @@ namespace Damage_Calculator {
case 26:
this.chkArmorAny = ((System.Windows.Controls.CheckBox)(target));
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
this.chkArmorAny.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
this.chkArmorAny.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -674,7 +680,7 @@ namespace Damage_Calculator {
case 28:
this.radioHead = ((System.Windows.Controls.RadioButton)(target));
#line 79 "..\..\MainWindow.xaml"
#line 80 "..\..\MainWindow.xaml"
this.radioHead.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -683,7 +689,7 @@ namespace Damage_Calculator {
case 29:
this.radioChestArms = ((System.Windows.Controls.RadioButton)(target));
#line 80 "..\..\MainWindow.xaml"
#line 81 "..\..\MainWindow.xaml"
this.radioChestArms.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -692,7 +698,7 @@ namespace Damage_Calculator {
case 30:
this.radioStomach = ((System.Windows.Controls.RadioButton)(target));
#line 81 "..\..\MainWindow.xaml"
#line 82 "..\..\MainWindow.xaml"
this.radioStomach.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -701,7 +707,7 @@ namespace Damage_Calculator {
case 31:
this.radioLegs = ((System.Windows.Controls.RadioButton)(target));
#line 82 "..\..\MainWindow.xaml"
#line 83 "..\..\MainWindow.xaml"
this.radioLegs.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -713,7 +719,7 @@ namespace Damage_Calculator {
case 33:
this.comboWeapons = ((System.Windows.Controls.ComboBox)(target));
#line 86 "..\..\MainWindow.xaml"
#line 87 "..\..\MainWindow.xaml"
this.comboWeapons.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboWeapons_SelectionChanged);
#line default
@ -749,19 +755,19 @@ namespace Damage_Calculator {
case 43:
this.mapImage = ((System.Windows.Controls.Image)(target));
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapImage_MouseLeftButtonUp);
#line default
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapImage_MouseRightButtonUp);
#line default
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.LayoutUpdated += new System.EventHandler(this.mapImage_LayoutUpdated);
#line default

View file

@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DDEB88E6BF2411090CEFE97ECD05FAC168A9400B7A2D3FEBF6EE291BC90C4F86"
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "520310F22F68AE4E47B66F6D92CC98AD8018EE1647882A1C45F9B52AC540A4BB"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -41,7 +41,7 @@ namespace Damage_Calculator {
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowBombSites;
@ -49,7 +49,7 @@ namespace Damage_Calculator {
#line hidden
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowSpawnAreas;
@ -57,7 +57,7 @@ namespace Damage_Calculator {
#line hidden
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowStandardSpawns;
@ -65,7 +65,7 @@ namespace Damage_Calculator {
#line hidden
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShow2v2Spawns;
@ -73,7 +73,7 @@ namespace Damage_Calculator {
#line hidden
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowHostageSpawns;
@ -81,7 +81,7 @@ namespace Damage_Calculator {
#line hidden
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuAllowNonPrioritySpawns;
@ -89,7 +89,7 @@ namespace Damage_Calculator {
#line hidden
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuShowDrawnMarkers;
@ -97,7 +97,7 @@ namespace Damage_Calculator {
#line hidden
#line 32 "..\..\MainWindow.xaml"
#line 33 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuAbout;
@ -105,7 +105,7 @@ namespace Damage_Calculator {
#line hidden
#line 33 "..\..\MainWindow.xaml"
#line 34 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem mnuHelp;
@ -113,7 +113,7 @@ namespace Damage_Calculator {
#line hidden
#line 47 "..\..\MainWindow.xaml"
#line 48 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioModeShooting;
@ -121,7 +121,7 @@ namespace Damage_Calculator {
#line hidden
#line 48 "..\..\MainWindow.xaml"
#line 49 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioModeBomb;
@ -129,7 +129,7 @@ namespace Damage_Calculator {
#line hidden
#line 50 "..\..\MainWindow.xaml"
#line 51 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel topStackPanel;
@ -137,7 +137,7 @@ namespace Damage_Calculator {
#line hidden
#line 52 "..\..\MainWindow.xaml"
#line 53 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox comboBoxMaps;
@ -145,7 +145,7 @@ namespace Damage_Calculator {
#line hidden
#line 57 "..\..\MainWindow.xaml"
#line 58 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtEasterEggMetres;
@ -153,7 +153,7 @@ namespace Damage_Calculator {
#line hidden
#line 58 "..\..\MainWindow.xaml"
#line 59 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock textDistanceMetres;
@ -161,7 +161,7 @@ namespace Damage_Calculator {
#line hidden
#line 62 "..\..\MainWindow.xaml"
#line 63 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock textDistanceUnits;
@ -169,7 +169,7 @@ namespace Damage_Calculator {
#line hidden
#line 65 "..\..\MainWindow.xaml"
#line 66 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Shapes.Rectangle rectTop;
@ -177,7 +177,7 @@ namespace Damage_Calculator {
#line hidden
#line 66 "..\..\MainWindow.xaml"
#line 67 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Shapes.Rectangle rectSide;
@ -185,7 +185,7 @@ namespace Damage_Calculator {
#line hidden
#line 67 "..\..\MainWindow.xaml"
#line 68 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel leftStackPanel;
@ -193,7 +193,7 @@ namespace Damage_Calculator {
#line hidden
#line 71 "..\..\MainWindow.xaml"
#line 72 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackArmorSeparated;
@ -201,7 +201,7 @@ namespace Damage_Calculator {
#line hidden
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHelmet;
@ -209,7 +209,7 @@ namespace Damage_Calculator {
#line hidden
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkKevlar;
@ -217,7 +217,7 @@ namespace Damage_Calculator {
#line hidden
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkArmorAny;
@ -225,7 +225,7 @@ namespace Damage_Calculator {
#line hidden
#line 77 "..\..\MainWindow.xaml"
#line 78 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackAreaHit;
@ -233,7 +233,7 @@ namespace Damage_Calculator {
#line hidden
#line 79 "..\..\MainWindow.xaml"
#line 80 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioHead;
@ -241,7 +241,7 @@ namespace Damage_Calculator {
#line hidden
#line 80 "..\..\MainWindow.xaml"
#line 81 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioChestArms;
@ -249,7 +249,7 @@ namespace Damage_Calculator {
#line hidden
#line 81 "..\..\MainWindow.xaml"
#line 82 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioStomach;
@ -257,7 +257,7 @@ namespace Damage_Calculator {
#line hidden
#line 82 "..\..\MainWindow.xaml"
#line 83 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.RadioButton radioLegs;
@ -265,7 +265,7 @@ namespace Damage_Calculator {
#line hidden
#line 84 "..\..\MainWindow.xaml"
#line 85 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.StackPanel stackWeaponUsed;
@ -273,7 +273,7 @@ namespace Damage_Calculator {
#line hidden
#line 86 "..\..\MainWindow.xaml"
#line 87 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ComboBox comboWeapons;
@ -281,7 +281,7 @@ namespace Damage_Calculator {
#line hidden
#line 90 "..\..\MainWindow.xaml"
#line 91 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtResult;
@ -289,7 +289,7 @@ namespace Damage_Calculator {
#line hidden
#line 91 "..\..\MainWindow.xaml"
#line 92 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtResultArmor;
@ -297,7 +297,7 @@ namespace Damage_Calculator {
#line hidden
#line 98 "..\..\MainWindow.xaml"
#line 99 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHasMapFile;
@ -305,7 +305,7 @@ namespace Damage_Calculator {
#line hidden
#line 99 "..\..\MainWindow.xaml"
#line 100 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.CheckBox chkHasNavFile;
@ -313,7 +313,7 @@ namespace Damage_Calculator {
#line hidden
#line 102 "..\..\MainWindow.xaml"
#line 103 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtBombMaxDamage;
@ -321,7 +321,7 @@ namespace Damage_Calculator {
#line hidden
#line 106 "..\..\MainWindow.xaml"
#line 107 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtBombRadius;
@ -329,7 +329,7 @@ namespace Damage_Calculator {
#line hidden
#line 113 "..\..\MainWindow.xaml"
#line 114 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtCursorX;
@ -337,7 +337,7 @@ namespace Damage_Calculator {
#line hidden
#line 117 "..\..\MainWindow.xaml"
#line 118 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock txtCursorY;
@ -345,7 +345,7 @@ namespace Damage_Calculator {
#line hidden
#line 122 "..\..\MainWindow.xaml"
#line 123 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal Damage_Calculator.ZoomBorder rightZoomBorder;
@ -353,7 +353,7 @@ namespace Damage_Calculator {
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Image mapImage;
@ -361,7 +361,7 @@ namespace Damage_Calculator {
#line hidden
#line 125 "..\..\MainWindow.xaml"
#line 127 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Canvas pointsCanvas;
@ -369,7 +369,7 @@ namespace Damage_Calculator {
#line hidden
#line 129 "..\..\MainWindow.xaml"
#line 132 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Grid gridLoading;
@ -430,19 +430,25 @@ namespace Damage_Calculator {
#line 14 "..\..\MainWindow.xaml"
((Damage_Calculator.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);
#line default
#line hidden
#line 15 "..\..\MainWindow.xaml"
((Damage_Calculator.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_PreviewMouseDown);
#line default
#line hidden
return;
case 2:
this.mnuShowBombSites = ((System.Windows.Controls.MenuItem)(target));
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
this.mnuShowBombSites.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 18 "..\..\MainWindow.xaml"
#line 19 "..\..\MainWindow.xaml"
this.mnuShowBombSites.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -451,13 +457,13 @@ namespace Damage_Calculator {
case 3:
this.mnuShowSpawnAreas = ((System.Windows.Controls.MenuItem)(target));
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
this.mnuShowSpawnAreas.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 19 "..\..\MainWindow.xaml"
#line 20 "..\..\MainWindow.xaml"
this.mnuShowSpawnAreas.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -466,13 +472,13 @@ namespace Damage_Calculator {
case 4:
this.mnuShowStandardSpawns = ((System.Windows.Controls.MenuItem)(target));
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
this.mnuShowStandardSpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 20 "..\..\MainWindow.xaml"
#line 21 "..\..\MainWindow.xaml"
this.mnuShowStandardSpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -481,13 +487,13 @@ namespace Damage_Calculator {
case 5:
this.mnuShow2v2Spawns = ((System.Windows.Controls.MenuItem)(target));
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
this.mnuShow2v2Spawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 21 "..\..\MainWindow.xaml"
#line 22 "..\..\MainWindow.xaml"
this.mnuShow2v2Spawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -496,13 +502,13 @@ namespace Damage_Calculator {
case 6:
this.mnuShowHostageSpawns = ((System.Windows.Controls.MenuItem)(target));
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
this.mnuShowHostageSpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 22 "..\..\MainWindow.xaml"
#line 23 "..\..\MainWindow.xaml"
this.mnuShowHostageSpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -511,13 +517,13 @@ namespace Damage_Calculator {
case 7:
this.mnuAllowNonPrioritySpawns = ((System.Windows.Controls.MenuItem)(target));
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
this.mnuAllowNonPrioritySpawns.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 23 "..\..\MainWindow.xaml"
#line 24 "..\..\MainWindow.xaml"
this.mnuAllowNonPrioritySpawns.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -526,13 +532,13 @@ namespace Damage_Calculator {
case 8:
this.mnuShowDrawnMarkers = ((System.Windows.Controls.MenuItem)(target));
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
this.mnuShowDrawnMarkers.Checked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
#line hidden
#line 24 "..\..\MainWindow.xaml"
#line 25 "..\..\MainWindow.xaml"
this.mnuShowDrawnMarkers.Unchecked += new System.Windows.RoutedEventHandler(this.visibilityMenu_CheckChanged);
#line default
@ -540,7 +546,7 @@ namespace Damage_Calculator {
return;
case 9:
#line 27 "..\..\MainWindow.xaml"
#line 28 "..\..\MainWindow.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeTheme_Click);
#line default
@ -548,7 +554,7 @@ namespace Damage_Calculator {
return;
case 10:
#line 28 "..\..\MainWindow.xaml"
#line 29 "..\..\MainWindow.xaml"
((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeTheme_Click);
#line default
@ -557,7 +563,7 @@ namespace Damage_Calculator {
case 11:
this.mnuAbout = ((System.Windows.Controls.MenuItem)(target));
#line 32 "..\..\MainWindow.xaml"
#line 33 "..\..\MainWindow.xaml"
this.mnuAbout.Click += new System.Windows.RoutedEventHandler(this.mnuAbout_Click);
#line default
@ -566,7 +572,7 @@ namespace Damage_Calculator {
case 12:
this.mnuHelp = ((System.Windows.Controls.MenuItem)(target));
#line 33 "..\..\MainWindow.xaml"
#line 34 "..\..\MainWindow.xaml"
this.mnuHelp.Click += new System.Windows.RoutedEventHandler(this.mnuHelp_Click);
#line default
@ -575,7 +581,7 @@ namespace Damage_Calculator {
case 13:
this.radioModeShooting = ((System.Windows.Controls.RadioButton)(target));
#line 47 "..\..\MainWindow.xaml"
#line 48 "..\..\MainWindow.xaml"
this.radioModeShooting.Checked += new System.Windows.RoutedEventHandler(this.radioModeShooting_Checked);
#line default
@ -584,7 +590,7 @@ namespace Damage_Calculator {
case 14:
this.radioModeBomb = ((System.Windows.Controls.RadioButton)(target));
#line 48 "..\..\MainWindow.xaml"
#line 49 "..\..\MainWindow.xaml"
this.radioModeBomb.Checked += new System.Windows.RoutedEventHandler(this.radioModeBomb_Checked);
#line default
@ -596,7 +602,7 @@ namespace Damage_Calculator {
case 16:
this.comboBoxMaps = ((System.Windows.Controls.ComboBox)(target));
#line 52 "..\..\MainWindow.xaml"
#line 53 "..\..\MainWindow.xaml"
this.comboBoxMaps.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBoxMaps_SelectionChanged);
#line default
@ -626,13 +632,13 @@ namespace Damage_Calculator {
case 24:
this.chkHelmet = ((System.Windows.Controls.CheckBox)(target));
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
this.chkHelmet.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 72 "..\..\MainWindow.xaml"
#line 73 "..\..\MainWindow.xaml"
this.chkHelmet.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -641,13 +647,13 @@ namespace Damage_Calculator {
case 25:
this.chkKevlar = ((System.Windows.Controls.CheckBox)(target));
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
this.chkKevlar.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 73 "..\..\MainWindow.xaml"
#line 74 "..\..\MainWindow.xaml"
this.chkKevlar.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -656,13 +662,13 @@ namespace Damage_Calculator {
case 26:
this.chkArmorAny = ((System.Windows.Controls.CheckBox)(target));
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
this.chkArmorAny.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
#line hidden
#line 75 "..\..\MainWindow.xaml"
#line 76 "..\..\MainWindow.xaml"
this.chkArmorAny.Unchecked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -674,7 +680,7 @@ namespace Damage_Calculator {
case 28:
this.radioHead = ((System.Windows.Controls.RadioButton)(target));
#line 79 "..\..\MainWindow.xaml"
#line 80 "..\..\MainWindow.xaml"
this.radioHead.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -683,7 +689,7 @@ namespace Damage_Calculator {
case 29:
this.radioChestArms = ((System.Windows.Controls.RadioButton)(target));
#line 80 "..\..\MainWindow.xaml"
#line 81 "..\..\MainWindow.xaml"
this.radioChestArms.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -692,7 +698,7 @@ namespace Damage_Calculator {
case 30:
this.radioStomach = ((System.Windows.Controls.RadioButton)(target));
#line 81 "..\..\MainWindow.xaml"
#line 82 "..\..\MainWindow.xaml"
this.radioStomach.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -701,7 +707,7 @@ namespace Damage_Calculator {
case 31:
this.radioLegs = ((System.Windows.Controls.RadioButton)(target));
#line 82 "..\..\MainWindow.xaml"
#line 83 "..\..\MainWindow.xaml"
this.radioLegs.Checked += new System.Windows.RoutedEventHandler(this.settings_Updated);
#line default
@ -713,7 +719,7 @@ namespace Damage_Calculator {
case 33:
this.comboWeapons = ((System.Windows.Controls.ComboBox)(target));
#line 86 "..\..\MainWindow.xaml"
#line 87 "..\..\MainWindow.xaml"
this.comboWeapons.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboWeapons_SelectionChanged);
#line default
@ -749,19 +755,19 @@ namespace Damage_Calculator {
case 43:
this.mapImage = ((System.Windows.Controls.Image)(target));
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapImage_MouseLeftButtonUp);
#line default
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapImage_MouseRightButtonUp);
#line default
#line hidden
#line 124 "..\..\MainWindow.xaml"
#line 126 "..\..\MainWindow.xaml"
this.mapImage.LayoutUpdated += new System.EventHandler(this.mapImage_LayoutUpdated);
#line default