From 8f9f935796a9724e176e5f7d3a87dd46a9e0c893 Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Fri, 13 Mar 2015 23:04:50 +0200 Subject: [PATCH] Implemented layers for MapViewer, fixed some issues. --- Game/Game-csharp.sln | 2 +- Game/Game.sln | 2 +- Game/Library/assetDatabase3 | Bin 1051320 -> 1051320 bytes .../00/00000000000000004000000000000000 | Bin 4325 -> 4325 bytes Game/UnityVS.Game.CSharp.csproj | 12 +- Game/UnityVS.Game.v11.suo | Bin 181760 -> 186880 bytes .../MapViewer/Business/MapRenderer.cs | 2 +- Tools/MapViewer/MapViewer/MainWindow.xaml | 35 +-- Tools/MapViewer/MapViewer/MainWindow.xaml.cs | 263 +++++++++++++----- Tools/MapViewer/MapViewer/MapViewer.csproj | 4 + .../MapViewer/MapViewer/Resources/zoom_in.png | Bin 0 -> 725 bytes .../MapViewer/Resources/zoom_out.png | Bin 0 -> 708 bytes 12 files changed, 228 insertions(+), 92 deletions(-) create mode 100644 Tools/MapViewer/MapViewer/Resources/zoom_in.png create mode 100644 Tools/MapViewer/MapViewer/Resources/zoom_out.png diff --git a/Game/Game-csharp.sln b/Game/Game-csharp.sln index 0b8e34b..f6c3fb1 100644 --- a/Game/Game-csharp.sln +++ b/Game/Game-csharp.sln @@ -23,7 +23,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution + GlobalSection(MonoDevelopProperties) = preSolution StartupItem = Assembly-CSharp.csproj Policies = $0 $0.TextStylePolicy = $1 diff --git a/Game/Game.sln b/Game/Game.sln index 692a937..4d128e6 100644 --- a/Game/Game.sln +++ b/Game/Game.sln @@ -29,7 +29,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution + GlobalSection(MonoDevelopProperties) = preSolution StartupItem = Assembly-CSharp.csproj Policies = $0 $0.TextStylePolicy = $1 diff --git a/Game/Library/assetDatabase3 b/Game/Library/assetDatabase3 index 20387a4621fa2d55836894bb7af8cd227df4c7ce..6a11755310398de4944d022c22a6922d364e7eab 100644 GIT binary patch delta 165 zcmdln)nUg}hYdHR7_}z{DoRWiwNl?KBHhHw62&w>VDl^mE)GU{u*6>t>B#|_HjFBh z8FhpwKQLvRY@{j2s5N<_rTpY08VZcEAXS@}YK99is!w*5mYV!oN|CW(y5n3f;pPCV v_5dqJAZ7w$W*}w(Vpbq#17da{<^W<&Am##MZXo6XVqPHT+a6%WpK$>Ifm1P> delta 148 zcmdln)nUg}hYdHRCRy2RmXK~@Wl?M1$-H@<0vE^R08Ix*`NiG&@2#O)Sj#;FERO}lsaRKf2E^<@%mKulK+FZi+(66&#JoVvw>`j$KjQ)bGYKwk diff --git a/Game/Library/metadata/00/00000000000000004000000000000000 b/Game/Library/metadata/00/00000000000000004000000000000000 index 54446c064dcfb1d75f807804c8dc352e4023b9f4..fb06d6ecb945c9a8ad10ffc7494e24be9a6741af 100644 GIT binary patch delta 20 ccmaE=_*8L&g8<8d0OruiirgKO&j?5Y08!@$C;$Ke delta 20 ccmaE=_*8L&g8<7eX6DezirgKO&j?5Y08h{c^#A|> diff --git a/Game/UnityVS.Game.CSharp.csproj b/Game/UnityVS.Game.CSharp.csproj index d0fa6ec..261e377 100644 --- a/Game/UnityVS.Game.CSharp.csproj +++ b/Game/UnityVS.Game.CSharp.csproj @@ -7,14 +7,16 @@ 2.0 {02576F1D-BE9C-CFA7-763D-1EBF63B36977} Library - + + Assembly-CSharp 512 {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} .NETFramework v3.5 Unity Subset v3.5 - + + Game:1 StandaloneWindows:5 5.0.0f4 @@ -86,8 +88,10 @@ - + + Designer + - + \ No newline at end of file diff --git a/Game/UnityVS.Game.v11.suo b/Game/UnityVS.Game.v11.suo index 1a792739de33a09bb674ee900f59d45521f302dc..d93e2bedebde1f56b5de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@ge zZyNoq$_DsLf#}TFNSh>BOMfaazPTO)UR^Ak-=f0rI&4xxYEB{PuO;m@!fLAT(|;*d z!g;o5=yV5YLH6$23O;_n4IlJpFbSXr#oG@OcnlfTx>jxX3-SNMClq2=46( zW~(vn%t-ec0QqFk&p^*du2Pt&Z&afv308Ctlu5RB zh(mbyA`D`B_$ut&W5nWjSIPl{qkuP#MGg*7&Ft=n)6$Kb@M3$S7$BYd0s^Fln~*JC Z-vZ&%=uPk)y7LoJyVQLf?;aL4{{r~nF1!E$ diff --git a/Tools/MapViewer/MapViewer/Business/MapRenderer.cs b/Tools/MapViewer/MapViewer/Business/MapRenderer.cs index 7ece64c..5b405f3 100644 --- a/Tools/MapViewer/MapViewer/Business/MapRenderer.cs +++ b/Tools/MapViewer/MapViewer/Business/MapRenderer.cs @@ -41,7 +41,7 @@ namespace TransportGame.MapViewer private readonly Color WaterColor = Colors.Navy; private readonly Color ElevationTerrainColor = Colors.White; - private readonly Color TerrainColor = Colors.White; + private readonly Color TerrainColor = Colors.Gray; public MapRenderer() { diff --git a/Tools/MapViewer/MapViewer/MainWindow.xaml b/Tools/MapViewer/MapViewer/MainWindow.xaml index ab0ca83..391c093 100644 --- a/Tools/MapViewer/MapViewer/MainWindow.xaml +++ b/Tools/MapViewer/MapViewer/MainWindow.xaml @@ -22,20 +22,16 @@ - Zoom: - - - - - + + + + - 00% + 00% @@ -62,19 +58,14 @@ - Elevation + (All) + Elevation Roads Buildings Vegetation - - - - - -