Skip to content

Commit

Permalink
Merge 1.6.0.0 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
TriggerAu committed Oct 16, 2016
2 parents 6494fab + 10fd3a8 commit 1051979
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 40 deletions.
3 changes: 3 additions & 0 deletions PluginFiles/ReadMe-TransferWindowPlanner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ LICENSE
This work is licensed under an MIT license as outlined at the OSI site. Visit the documentation site for more details and Attribution

VERSION HISTORY
Version 1.6.0.0 - KSP Version: 1.2.0
- Recompile for 1.2

Version 1.5.1.0 - KSP Version: 1.1.2
- Adjusted code to handle UIToggle and flight Pause menu

Expand Down
4 changes: 2 additions & 2 deletions TransferWindowPlanner/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.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
24 changes: 17 additions & 7 deletions TransferWindowPlanner/SharedStuff/ToolbarWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -725,13 +725,23 @@ internal ToolbarTypes() {
button = new ButtonTypes(iButtonType);
}

internal static Type getType(string name) {
return AssemblyLoader.loadedAssemblies
.SelectMany(a => a.assembly.GetExportedTypes())
.SingleOrDefault(t => t.FullName == name);
}

internal static PropertyInfo getProperty(Type type, string name) {
internal static Type getType(string name)
{
Type type = null;
AssemblyLoader.loadedAssemblies.TypeOperation(t =>
{
if(t.FullName == name)
type = t;
}
);

if(type != null) {
return type;
}
return null;
}

internal static PropertyInfo getProperty(Type type, string name) {
return type.GetProperty(name, BindingFlags.Public | BindingFlags.Instance);
}

Expand Down
19 changes: 9 additions & 10 deletions TransferWindowPlanner/TWP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,17 @@ private void OnUnpause()

internal override void Start()
{
if (AssemblyLoader.loadedAssemblies
.Select(a => a.assembly.GetExportedTypes())
.SelectMany(t => t)
.Any(t => t.FullName.ToLower().EndsWith(".realsolarsystem")))
LogFormatted("Searching for RSS");
AssemblyLoader.loadedAssemblies.TypeOperation(t =>
{
settings.RSSActive = true;
if (!settings.RSSShowCalendarToggled)
{
settings.ShowCalendarToggle = true;
settings.RSSShowCalendarToggled = true;
if(t.FullName == ("RealSolarSystem.RSSWatchDog")) {
settings.RSSActive = true;
if(!settings.RSSShowCalendarToggled) {
settings.ShowCalendarToggle = true;
settings.RSSShowCalendarToggled = true;
}
}
}
});

//Init the KAC Integration
KACWrapper.InitKACWrapper();
Expand Down
28 changes: 13 additions & 15 deletions TransferWindowPlanner/TransferWindowPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,16 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\~Games\KSP_win_PluginTest_Prerelease\KSP_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="KSPUtil, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\~Games\KSP_win_PluginTest_Minimal\KSP_Data\Managed\KSPUtil.dll</HintPath>
<HintPath>..\..\_Versions\KSP_win_PluginTest_Minimal\KSP_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\~Games\KSP_win_PluginTest_Prerelease\KSP_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\_Versions\KSP_win_PluginTest_Minimal\KSP_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -83,14 +79,16 @@
<PropertyGroup>
<PostBuildEvent>rem Set the Variables we need
echo Finding KSP
if exist "R:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
set GAMEPATH="R:\~Games\KSP_Win_PlugInTest_Minimal"
) else if exist "D:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
set GAMEPATH="D:\~Games\KSP_Win_PlugInTest_Minimal"
) else if exist "C:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
set GAMEPATH="C:\~Games\KSP_Win_PlugInTest_Minimal
) else if exist "D:\~Games\KSP_Win_PlugInTest\KSP.exe" (
set GAMEPATH="D:\~Games\KSP_Win_PlugInTest"
rem if exist "R:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
rem set GAMEPATH="R:\~Games\KSP_Win_PlugInTest_Minimal"
rem ) else if exist "D:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
rem set GAMEPATH="D:\~Games\KSP_Win_PlugInTest_Minimal"
rem ) else if exist "C:\~Games\KSP_Win_PlugInTest_Minimal\KSP.exe" (
rem set GAMEPATH="C:\~Games\KSP_Win_PlugInTest_Minimal
rem ) else if exist "D:\~Games\KSP_Win_PlugInTest\KSP.exe" (

if exist "D:\Programming\KSP\_Versions\KSP_Win_PlugInTest\KSP.exe" (
set GAMEPATH="D:\Programming\KSP\_Versions\KSP_Win_PlugInTest"
) else if exist "C:\~Games\KSP_Win_PlugInTest\KSP.exe" (
set GAMEPATH="C:\~Games\KSP_Win_PlugInTest"
)else (
Expand Down
12 changes: 6 additions & 6 deletions TransferWindowPlanner/TransferWindowPlanner.version
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"DOWNLOAD" : "https://github.com/TriggerAu/TransferWindowPlanner/releases",
"VERSION": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 1,
"MINOR": 6,
"PATCH": 0,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 1,
"PATCH": 2
"MINOR": 2,
"PATCH": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 1,
"MINOR": 2,
"PATCH": 0
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 1,
"MINOR": 2,
"PATCH": 99
}
}

0 comments on commit 1051979

Please sign in to comment.