Skip to content

Commit

Permalink
Add License display in modmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
FloppyDisk committed Jun 24, 2023
1 parent 307bc97 commit 14626bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions PulsarInjector/PulsarInjector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<SpecificVersion>False</SpecificVersion>
<HintPath Condition="Exists('..\PulsarModLoader\bin\Release\PulsarModLoader.dll')">..\PulsarModLoader\bin\Release\PulsarModLoader.dll</HintPath>
<HintPath Condition="Exists('..\PulsarModLoader\bin\Debug\PulsarModLoader.dll')">..\PulsarModLoader\bin\Debug\PulsarModLoader.dll</HintPath>
<HintPath>..\PulsarModLoader\bin\Debug\PulsarModLoader.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
1 change: 1 addition & 0 deletions PulsarModLoader/CustomGUI/GUIMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void WindowFunction(int WindowID)
Label($"Author: {mod.Author}");
Label($"Name: {mod.Name}");
Label($"Version: {mod.Version}");
Label($"License: {mod.License ?? "Proprietary"}");
if (mod.ShortDescription != string.Empty)
Label($"Short Description: {mod.ShortDescription}");
if (mod.LongDescription != string.Empty)
Expand Down
2 changes: 1 addition & 1 deletion PulsarModLoader/PulsarMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public virtual string License
{
get
{
return String.Empty;
return null; //This has to be null to allow the Coalcase to work later on
}
}

Expand Down
4 changes: 3 additions & 1 deletion PulsarModLoader/PulsarModLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@
<None Include="packages.config" />
<None Include="PulsarModLoader.nuspec" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="CopyMarkdownFiles" AfterTargets="AfterBuild">
<CreateItem Include="$(SolutionDir)\*.md">
Expand Down

0 comments on commit 14626bb

Please sign in to comment.