-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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,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; | ||
} | ||
} | ||
} |
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,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> |