Skip to content

Commit

Permalink
Merge pull request #256 from DMagic1/dev
Browse files Browse the repository at this point in the history
Version 17.1
  • Loading branch information
DMagic1 authored Feb 11, 2017
2 parents 6be618b + bc9ebb3 commit ffe484a
Show file tree
Hide file tree
Showing 64 changed files with 4,652 additions and 2,509 deletions.
15 changes: 15 additions & 0 deletions SCANassets/Resources/SCANlocalization.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ SCAN_Localization
overlayRefresh = Map Refresh
insNextResource = Next Resource
insPreviousResource = Previous Resource
zoomVesselSync = Sync Current Vessel
zoomVesselLock = Lock Position To Vessel
zoomMapRefresh = Map Refresh
zoomMapWindowState = Toggle Window Size
zoomMapIn = Zoom In
zoomMapOut = Zoom Out
zoomMapLeft = Shift Left
zoomMapRight = Shift Right
zoomMapUp = Shift Up
zoomMapDown = Shift Down
zoomMapIcons = Map Icons
waypointToggle = Waypoint Selector
waypointSet = Create Waypoint
waypointCancel = Cancel Waypoint
waypointMechJeb = Set MechJeb Landing Target
}
}
}
Binary file modified SCANassets/Resources/scan_images
Binary file not shown.
Binary file modified SCANassets/Resources/scansat_prefabs
Binary file not shown.
2 changes: 1 addition & 1 deletion SCANassets/SCANsat.version
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"MAJOR":1,
"MINOR":1,
"PATCH":7,
"BUILD":0
"BUILD":1
},
"KSP_VERSION":{
"MAJOR":1,
Expand Down
12 changes: 9 additions & 3 deletions SCANsat.Unity/Interfaces/ISCAN_BigMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public interface ISCAN_BigMap

string CurrentCelestialBody { get; set; }

string RandomWaypoint { get; }

bool IsVisible { get; set; }

bool ColorToggle { get; set; }
Expand Down Expand Up @@ -46,12 +48,16 @@ public interface ISCAN_BigMap

bool TooltipsOn { get; }

bool LockInput { get; set; }

int OrbitSteps { get; }

int CurrentScene { get; }

float Scale { get; }

Sprite WaypointSprite { get; }

Canvas MainCanvas { get; }

Canvas TooltipCanvas { get; }
Expand All @@ -60,8 +66,6 @@ public interface ISCAN_BigMap

Vector2 Size { get; set; }

Vector2 MapScreenPosition { get; set; }

Texture2D LegendImage { get; }

IList<string> Projections { get; }
Expand Down Expand Up @@ -102,7 +106,9 @@ public interface ISCAN_BigMap

void Update();

void OnGUI();
void SetWaypoint(string id, Vector2 pos);

void ClickMap(Vector2 pos);

SimpleLabelInfo OrbitInfo(int index);

Expand Down
2 changes: 2 additions & 0 deletions SCANsat.Unity/Interfaces/ISCAN_MainMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public interface ISCAN_MainMap

bool TooltipsOn { get; }

bool MapGenerating { get; }

float Scale { get; }

Canvas TooltipCanvas { get; }
Expand Down
4 changes: 4 additions & 0 deletions SCANsat.Unity/Interfaces/ISCAN_Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public interface ISCAN_Settings

bool WindowTooltips { get; set; }

bool MapGenSpeed { get; set; }

bool StockToolbar { get; set; }

bool ToolbarMenu { get; set; }
Expand All @@ -64,6 +66,8 @@ public interface ISCAN_Settings

bool ShowMapFill { get; }

bool LockInput { get; set; }

Canvas TooltipCanvas { get; }

Vector2 Position { set; }
Expand Down
106 changes: 106 additions & 0 deletions SCANsat.Unity/Interfaces/ISCAN_ZoomMap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace SCANsat.Unity.Interfaces
{
public interface ISCAN_ZoomMap
{
string Version { get; }

string CurrentMapType { get; set; }

string CurrentResource { get; set; }

string ZoomLevelText { get; }

string MapCenterText { get; }

string RandomWaypoint { get; }

bool IsVisible { get; set; }

bool VesselLock { get; set; }

bool ColorToggle { get; set; }

bool OrbitToggle { get; set; }

bool IconsToggle { get; set; }

bool LegendToggle { get; set; }

bool ResourceToggle { get; set; }

bool OrbitAvailable { get; }

bool ShowOrbit { get; }

bool ShowWaypoint { get; }

bool ShowResource { get; }

bool TooltipsOn { get; }

bool LockInput { get; set; }

int OrbitSteps { get; }

int CurrentScene { get; }

int WindowState { get; set; }

float Scale { get; }

Sprite WaypointSprite { get; }

Canvas MainCanvas { get; }

Canvas TooltipCanvas { get; }

Vector2 Position { get; set; }

Vector2 Size { get; set; }

Texture2D LegendImage { get; }

IList<string> MapTypes { get; }

IList<string> Resources { get; }

IList<string> LegendLabels { get; }

Dictionary<string, MapLabelInfo> OrbitLabelList { get; }

Dictionary<Guid, MapLabelInfo> FlagInfoList { get; }

Dictionary<string, MapLabelInfo> AnomalyInfoList { get; }

Dictionary<int, MapLabelInfo> WaypointInfoList { get; }

KeyValuePair<Guid, MapLabelInfo> VesselInfo { get; }

string MapInfo(Vector2 rectPosition);

void RefreshMap();

void Update();

void VesselSync();

void MoveMap(int i);

void ZoomMap(bool zoom);

void SetWaypoint(string id, Vector2 pos);

void ClickMap(int button, Vector2 pos);

SimpleLabelInfo OrbitInfo(int index);

MapLabelInfo OrbitIconInfo(string id);

Vector2 VesselPosition();
}
}
4 changes: 2 additions & 2 deletions SCANsat.Unity/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7.0.0")]
[assembly: AssemblyFileVersion("1.7.0.0")]
[assembly: AssemblyVersion("1.7.1.0")]
[assembly: AssemblyFileVersion("1.7.1.0")]
2 changes: 2 additions & 0 deletions SCANsat.Unity/SCANsat.Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<Compile Include="Interfaces\ISCAN_Overlay.cs" />
<Compile Include="Interfaces\ISCAN_Settings.cs" />
<Compile Include="Interfaces\ISCAN_Toolbar.cs" />
<Compile Include="Interfaces\ISCAN_ZoomMap.cs" />
<Compile Include="MapLabelInfo.cs" />
<Compile Include="SCAN_DoubleButton.cs" />
<Compile Include="SCAN_Toggle.cs" />
Expand Down Expand Up @@ -79,6 +80,7 @@
<Compile Include="Unity\SCAN_Toolbar.cs" />
<Compile Include="Unity\SCAN_Tooltip.cs" />
<Compile Include="Unity\SCAN_VesselInfo.cs" />
<Compile Include="Unity\SCAN_ZoomMap.cs" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Loading

0 comments on commit ffe484a

Please sign in to comment.