Skip to content

Commit

Permalink
Added AssemblyFileVersion
Browse files Browse the repository at this point in the history
 Updated version file for 1.12
 Fixed custom icons
  • Loading branch information
linuxgurugamer committed Oct 17, 2021
1 parent a54607d commit 3580555
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 15 deletions.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
4 changes: 3 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Changelog

2.8.3.2
2.8.3.3
Added AssemblyFileVersion
Updated version file for 1.12
Fixed custom icons

2.8.3.1
Expand Down
Binary file modified GameData/WaypointManager/Plugins/WaypointManager.dll
Binary file not shown.
13 changes: 4 additions & 9 deletions WaypointManager.version
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@
"MAJOR": 2,
"MINOR": 8,
"PATCH": 3,
"BUILD": 2
"BUILD": 3
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 8,
"PATCH": 0
"MINOR": 12,
"PATCH": 2
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 12,
"PATCH": 0
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 99,
"PATCH": 99
}
}
1 change: 1 addition & 0 deletions WaypointManager/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

using System.Reflection;

[assembly: AssemblyFileVersion("2.8.3.2")]
[assembly: AssemblyVersion("2.8.3.2")]
1 change: 1 addition & 0 deletions WaypointManager/AssemblyVersion.tt
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@

using System.Reflection;

[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
5 changes: 3 additions & 2 deletions WaypointManager/CustomWaypointGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ private static void WindowGUI(int windowID)
GUILayout.Space(4);

GUILayout.BeginVertical();
;
if (GUILayout.Button(Util.GetContractIcon(template.id, template.seed)))

if (GUILayout.Button(Util.GetContractIcon(template.id, template.seed), GUILayout.Width(40), GUILayout.Height(40)))
{
showIconPicker = !showIconPicker;

Expand Down Expand Up @@ -627,6 +627,7 @@ private static void IconPickerGUI(int windowID)
/// </summary>
public static void DrawMarker()
{
//Log.Info("DrawMarker, template.id: " + template.id);
// Only handle on repaint events
if (windowMode == WindowMode.Add && Event.current.type == EventType.Repaint)
{
Expand Down
3 changes: 2 additions & 1 deletion WaypointManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0")]
[assembly: AssemblyFileVersion("2.8.1")]
//[assembly: AssemblyFileVersion("2.8.1")]

[assembly: AssemblyInformationalVersion("2.8.1")]
[assembly: KSPAssembly("WaypointManager", 1, 0)]
2 changes: 2 additions & 0 deletions WaypointManager/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public static double TerrainHeight(double latitude, double longitude, CelestialB

public static void DrawWaypoint(CelestialBody targetBody, double latitude, double longitude, double altitude, string id, int seed, float alpha = -1.0f)
{
Log.Info("DrawWaypoint, id: " + id);
// Translate to scaled space
Vector3d localSpacePoint = targetBody.GetWorldSurfacePosition(latitude, longitude, altitude);
Vector3d scaledSpacePoint = ScaledSpace.LocalToScaledSpace(localSpacePoint);
Expand Down Expand Up @@ -379,6 +380,7 @@ public static void DrawWaypoint(CelestialBody targetBody, double latitude, doubl
// Draw the icon
Graphics.DrawTexture(iconRect, /* ContractDefs.sprites[id].texture */
GetContractIcon(id, seed), new Rect(0.0f, 0.0f, 1f, 1f), 0, 0, 0, 0, SystemUtilities.RandomColor(seed, alpha));
Log.Info("id: " + id);
}

}
Expand Down
1 change: 1 addition & 0 deletions WaypointManager/WaypointFlightRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using FinePrint;
using FinePrint.Utilities;
using ClickThroughFix;
using static WaypointManager.RegisterToolbar;

namespace WaypointManager
{
Expand Down
2 changes: 0 additions & 2 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ rem but not always

set H=%KSPDIR%

rem set H=R:\KSP_1.12.0_Tetrix

set GAMEDIR=WaypointManager
set GAMEDATA="GameData"
set VERSIONFILE=%GAMEDIR%.version
Expand Down

0 comments on commit 3580555

Please sign in to comment.