Using Plugins

halfnelson edited this page Feb 23, 2014 · 2 revisions

Using plugins in 1.5+

There is now support for moai modules that are not part of the sdk. To use a plugin, create a plugins folder somewhere for your project and check out the plugin to a subfolder there.

For example to add vavius' spine module:

cd myproject
mkdir plugins
cd plugins
git clone https://github.com/halfnelson/plugin-moai-spine.git moai-spine

Now we just need to edit our cmake command line (in whichever script you use, eg create-projects-win.bat) to add -DPLUGIN_MOAI-SPINE=1 and -DPLUGIN_DIR=<projectdir>/plugins

When you run the command you should see it mention that the plugin has been added (somewhere in its output) and the moai-spine project should show up in the ide (if using visual studio).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.