diff --git a/About.xaml b/About.xaml
index d8811c5a..3936eaf2 100644
--- a/About.xaml
+++ b/About.xaml
@@ -8,6 +8,6 @@
Title="Slazangers Map Tool (SMT)" Height="200" Width="400" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
-
+
diff --git a/MainWindow.xaml b/MainWindow.xaml
index 4b0da11a..532258da 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -75,8 +75,36 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index 89e66acd..9be50bbb 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -193,7 +193,7 @@ void ReDrawMap()
}
- void ShapeMouseHandler(object sender, MouseButtonEventArgs e)
+ void ShapeMouseDownHandler(object sender, MouseButtonEventArgs e)
{
Shape obj = sender as Shape;
EVEData.RegionData currentRegion = RegionDropDown.SelectedItem as EVEData.RegionData;
@@ -233,6 +233,30 @@ void ShapeMouseHandler(object sender, MouseButtonEventArgs e)
}
}
+ void ShapeMouseOverHandler(object sender, MouseEventArgs e)
+ {
+ Shape obj = sender as Shape;
+ EVEData.RegionData currentRegion = RegionDropDown.SelectedItem as EVEData.RegionData;
+
+ EVEData.System selectedSys = obj.DataContext as EVEData.System;
+ if(obj.IsMouseOver && MapConf.ShowSystemPopup)
+ {
+ SystemInfoPopup.PlacementTarget = obj;
+ SystemInfoPopup.VerticalOffset = 5;
+ SystemInfoPopup.HorizontalOffset = 15;
+ SystemInfoPopup.DataContext = selectedSys;
+
+ SystemInfoPopup.IsOpen = true;
+ }
+ else
+ {
+ SystemInfoPopup.IsOpen = false;
+
+ }
+ }
+
+
+
private void SelectSystem(string name)
{
EVEData.RegionData rd = RegionDropDown.SelectedItem as EVEData.RegionData;
@@ -558,7 +582,10 @@ private void AddSystemsToMap()
}
systemShape.DataContext = sys;
- systemShape.MouseDown += ShapeMouseHandler;
+ systemShape.MouseDown += ShapeMouseDownHandler;
+ systemShape.MouseEnter += ShapeMouseOverHandler;
+ systemShape.MouseLeave += ShapeMouseOverHandler;
+
Canvas.SetLeft(systemShape, sys.DotlanX - circleOffset);
diff --git a/MapConfig.cs b/MapConfig.cs
index a280e178..313264f3 100644
--- a/MapConfig.cs
+++ b/MapConfig.cs
@@ -88,6 +88,12 @@ protected void OnPropertyChanged(string name)
[DisplayName("Selected System")]
public Color SelectedSystemColour { get; set; }
+ [Category("General")]
+ [DisplayName("System Popup")]
+ public bool ShowSystemPopup { get; set; }
+
+
+
[Category("Character")]
[DisplayName("Highlight")]
public Color CharacterHighlightColour { get; set; }
@@ -246,7 +252,7 @@ public void SetDefaults()
ConstellationGateColour = Color.FromRgb(128, 128, 128);
SelectedSystemColour = Color.FromRgb(255, 255, 255);
-
+ ShowSystemPopup = true;
CharacterHighlightColour = Color.FromRgb(70, 130, 180);
CharacterTextColour = Color.FromRgb(0, 0, 0);