function GetPluginSettings()
{
return {
"name": "Demo",
"id": "Demo",
"description": "Demo description.",
"author": "Demo",
"help url": "http://demo.com",
"category": "Demo",
"type": "object", // not in layout
"rotatable": false,
"flags": pf_singleglobal
};
};
For me, everything is valid but Construct interpreted it differently.
---------------------------
HTML5 exporter
---------------------------
Unable to load plugin in 'C:\Daten\Tools\Construct 2\exporters\html5\plugins\demo\': Javascript exception in file 'edittime.js' line 5: SyntaxError: Unexpected token :
Code line:
"name": "Demo",
Stack trace:
SyntaxError: Unexpected token :
This plugin will not be available in the editor.
---------------------------
OK
---------------------------