Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Cavernosa authored Jun 21, 2022
1 parent 2c9a614 commit 8dfc1a1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
18 changes: 18 additions & 0 deletions MenuTestMod.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Modding;
using System.Collections.Generic;
using Modding.Menu;

namespace MenuTestMod
{
public class MenuTestMod: Mod, ICustomMenuMod
{
public bool ToggleButtonInsideMenu { get; } = false;
internal MenuScreen screen;
public MenuScreen GetMenuScreen(MenuScreen modListMenu, ModToggleDelegates? toggleDelegates)
{
this.screen = new MenuBuilder("modListMenu")
.Build();
return this.screen;
}
}
}
34 changes: 34 additions & 0 deletions ProjectFile.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Change this to the path of your modded HK installation -->
<HollowKnightRefs>hollow_knight_Data/Managed</HollowKnightRefs>
<!-- Change this to the path where you want the ready-to-upload exports to be -->
<ExportDir>./Exports/</ExportDir>
<!-- Uncomment this to generate a documentation file to be included with the mod -->
<!--<DocumentationFile>$(OutputPath)/$(AssemblyTitle).xml</DocumentationFile>-->
</PropertyGroup>
<PropertyGroup>
<RootNamespace>MenuTestMod</RootNamespace>
<AssemblyName>MenuTestMod</AssemblyName>
<TargetFramework>net472</TargetFramework>
<AssemblyTitle>MenuTestMod</AssemblyTitle>
<Product>MenuTestMod</Product>
<Description>A Hollow Knight Mod</Description>
<Copyright>Copyright © 2022</Copyright>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<Target Name="CopyMod" AfterTargets="PostBuildEvent">
<RemoveDir Condition="Exists('$(ExportDir)/$(TargetName)/')" Directories="$(ExportDir)/$(TargetName)/" />
<MakeDir Directories="$(ExportDir)/$(TargetName)/" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ExportDir)/$(TargetName)/" />

</Target>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(HollowKnightRefs)/Assembly-CSharp.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

0 comments on commit 8dfc1a1

Please sign in to comment.