-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated plugin to support ksp 0.2.0.0
- Loading branch information
1 parent
33e268c
commit 5258a9e
Showing
20 changed files
with
448 additions
and
576 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup Label="Framework and language configuration"> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>true</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Game folder configuration"> | ||
<!-- Set this to the path to your KSP 2 folder if you don't have the KSP2DIR environmental variable set --> | ||
<KSP2DIR Condition="'$(KSP2DIR)' == ''">C:/Program Files (x86)/Steam/steamapps/common/Kerbal Space Program 2</KSP2DIR> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Build and namespace configuration"> | ||
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir> | ||
<PluginBinPath>$(SolutionDir)build/bin/plugin/$(Configuration)</PluginBinPath> | ||
<PluginObjPath>$(SolutionDir)build/obj/plugin/$(Configuration)</PluginObjPath> | ||
<BaseOutputPath>$(PluginBinPath)/$(MSBuildProjectName)</BaseOutputPath> | ||
<BaseIntermediateOutputPath>$(PluginObjPath)/$(MSBuildProjectName)</BaseIntermediateOutputPath> | ||
<AssemblyName>$(MSBuildProjectName)</AssemblyName> | ||
<RootNamespace>$(AssemblyName)</RootNamespace> | ||
<Configurations>Debug;Release;Deploy;DeployAndRun</Configurations> | ||
<Platforms>AnyCPU</Platforms> | ||
<NoWarn>$(NoWarn);CS0436</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Package source configuration"> | ||
<RestoreAdditionalProjectSources> | ||
https://nuget.spacewarp.org/v3/index.json | ||
</RestoreAdditionalProjectSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="Dependencies for build targets"> | ||
<PackageReference Include="JsonPeek" Version="1.2.0" PrivateAssets="all"/> | ||
</ItemGroup> | ||
|
||
<!-- Define the main target --> | ||
<Target Label="Reading properties from swinfo.json" Name="ReadPropertiesFromJson" BeforeTargets="PreBuildEvent;AddGeneratedFile"> | ||
<JsonPeek ContentPath="$(SolutionDir)/plugin_template/swinfo.json" Query="$"> | ||
<Output TaskParameter="Result" ItemName="Swinfo"/> | ||
</JsonPeek> | ||
|
||
<!-- Extract properties from the JSON --> | ||
<PropertyGroup> | ||
<ModId>@(Swinfo -> '%(mod_id)')</ModId> | ||
<Version>@(Swinfo -> '%(version)')</Version> | ||
<Version Condition="$(Version.Contains('-'))">$(Version.Substring(0, $(Version.IndexOf('-'))))</Version> | ||
<Product>@(Swinfo -> '%(name)')</Product> | ||
<Authors>@(Swinfo -> '%(author)')</Authors> | ||
<Description>@(Swinfo -> '%(description)')</Description> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>@(Swinfo -> '%(source)')</RepositoryUrl> | ||
<SpaceWarpPluginGuid>$(ModId)</SpaceWarpPluginGuid> | ||
<SpaceWarpPluginName>$(Product)</SpaceWarpPluginName> | ||
<SpaceWarpPluginVersion>$(Version)</SpaceWarpPluginVersion> | ||
</PropertyGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"spec": "2.0", | ||
"mod_id": "HideOrbits", | ||
"author": "Strykker2", | ||
"name": "HideOrbits", | ||
"description": "UI to toggle distant orbits if they get in the way", | ||
"source": "https://github.com/ColinZeidler/KSP2-HideDistantOrbits", | ||
"version": "0.5.0", | ||
"version_check": "", | ||
"ksp2_version": { | ||
"min": "0.2.0", | ||
"max": "*" | ||
}, | ||
"dependencies": [ | ||
{ | ||
"id": "com.github.x606.spacewarp", | ||
"version": { | ||
"min": "1.7.0", | ||
"max": "*" | ||
} | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build "../HideOrbits.sln" -c Debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build "../HideOrbits.sln" -c Deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build "../HideOrbits.sln" -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build "../HideOrbits.sln" -c DeployAndRun |
Oops, something went wrong.