Hefer V4 Release 10
Mods are compiled from C# source files when the user reviews the item.
This means that creating a mod is as simple as creating a C# script and dropping it in the mods folder.
To get started you have to create a C# script in the %LocalAppData%\Helfer V4\Mods Folder.
Create a C# source file with the name of your mod within the folder.
If you want to use intellisense in Visual Studio you have to add the ModExtensions.dll to your assemblies.
To create a mod, you just write C# code that draws on a bitmap.
You can open and write the code the .cs File with any text editor like Notepad++, Atom, Visual Studio, VS Code and so on.
But there are a few things that you have to know, otherwise the mod won't work:
The file name is the mod name.
The class name must always be ModScript!
The main function must always have the color and font as arguments as shown below!
The class name and the main function must always be included!
The main function must always return a bitmap as this is then displayed on the screen.
You can draw whatever you want on the bitmap.
The example below draws the text "Your String" with the color and font from the arguments on the bitmap.
See also