/pro-motion-ng-plugin-template

A simple CMake-based project template to create custom plugins for Pro Motion NG

Primary LanguageC++MIT LicenseMIT

Pro Motion NG Plugin Template

This is WIP

This is a project template for creating custom plugins for Pro Motion NG, a fantastic pixel art and animation program. It is also available on Steam.

The code does absolutely nothing. A message box is displayed when the initialization function is invoked (see src/PluginInterface.cpp). Tested with version 8.0.1.0 of Pro Motion NG.

Build Instructions

You'll need the following tools:

Open a terminal (MSYS2, PowerShell, etc.) and enter

git clone https://github.com/georgjz/pro-motion-ng-plugin-template.git  myplugin
cd myplugin
cmake -G "Visual Studio 17 2022" -S . -B build
cmake --build build --config Release

NB! if you wish to your plugin to work with a version of Pro Motion NG prior to Changes with 8.0.0 beta 3, you'll need to link again 32-bit libraries with -A Win32:

cmake -G "Visual Studio 17 2022" -A Win32 -S . -B build

Newer versions should build/work fine without the extra option.

Installation

Once the build is finished, copy the resulting DLL build/Release/PluginTemplate.dll to the plugin folder of Pro Motion NG (usually something like C:\Program Files (x86)\Steam\steamapps\common\Pro Motion NG\plugins if you're using the steam edition). Then update plugins.ini on include

pluginX_exe=plugins\PluginTemplate.dll
pluginX_name=Plugin Template (CMake)

where X is some subsequent integer (to other plugins already installed). See Pro Motion NG's plugin documentation for details.

Code Documentation

WIP. See the developer documentation of Pro Motion NG for the time being.