Difference between revisions of "Making a Plugin"

From GiderosMobile
m
Line 1: Line 1:
 +
===Lua bases plugins===
 +
If your plugin is 100% Lua code then you can easily make it into a plugin.
 +
 +
Just create a folder based on the name of the plugin and add a file (also based on the plugin name) with the extension .gplugin .
 +
 +
The contents of the file should look like this:
 +
 +
<plugin
 +
name="My plugin name"
 +
description="What my plugin does!">
 +
<target name="APK,iOS,Html5,WinRT,Windows,MacOSX,Win32">
 +
</target>
 +
 +
</plugin>
 +
 +
Also add a sub-folder called 'luaplugin' to your folder, put your Lua files in there.  These will be automatically added to a project that adds your plugin.
 +
 
===[[Extend_your_application_with_plugins|Extend your application with plugins]]===
 
===[[Extend_your_application_with_plugins|Extend your application with plugins]]===

Revision as of 18:06, 23 December 2019

Lua bases plugins

If your plugin is 100% Lua code then you can easily make it into a plugin.

Just create a folder based on the name of the plugin and add a file (also based on the plugin name) with the extension .gplugin .

The contents of the file should look like this:

<plugin

name="My plugin name"
description="What my plugin does!">
<target name="APK,iOS,Html5,WinRT,Windows,MacOSX,Win32">
</target>

</plugin>

Also add a sub-folder called 'luaplugin' to your folder, put your Lua files in there. These will be automatically added to a project that adds your plugin.

Extend your application with plugins