1- import { ADDON_CATEGORY , ADDON_TYPE , PLUGIN_TYPE } from "./template/enums.js" ;
1+ import {
2+ ADDON_CATEGORY ,
3+ ADDON_TYPE ,
4+ PLUGIN_TYPE ,
5+ PROPERTY_TYPE ,
6+ } from "./template/enums.js" ;
27export const addonType = ADDON_TYPE . PLUGIN ;
38export const type = PLUGIN_TYPE . OBJECT ;
49export const id = "sample_addon" ;
@@ -8,24 +13,31 @@ export const author = "skymen";
813export const website = "https://www.construct.net" ;
914export const documentation = "https://www.construct.net" ;
1015export const description = "Description" ;
11- export const category = ADDON_CATEGORY . GENERAL ; // "3d", "data-and-storage", "form-controls", "input", "media", "monetisation", "platform-specific", "web", "other"
16+ export const category = ADDON_CATEGORY . GENERAL ;
1217
18+ export const hasDomside = false ;
1319export const files = {
1420 extensionScript : { } ,
1521 fileDependencies : [ ] ,
1622} ;
1723
18- export const hasDomside = false ;
19-
2024// categories that are not filled will use the folder name
2125export const aceCategories = { } ;
2226
2327export const info = {
2428 // icon: "icon.svg",
25- // world only
29+ // PLUGIN world only
2630 // defaultImageUrl: "default-image.png",
2731 Set : {
28- // world only
32+ // COMMON to all
33+ CanBeBundled : true ,
34+ IsDeprecated : false ,
35+ GooglePlayServicesEnabled : false ,
36+
37+ // BEHAVIOR only
38+ IsOnlyOneAllowed : false ,
39+
40+ // PLUGIN world only
2941 IsResizable : false ,
3042 IsRotatable : false ,
3143 Is3D : false ,
@@ -36,16 +48,11 @@ export const info = {
3648 SupportsEffects : false ,
3749 MustPreDraw : false ,
3850
39- // object only
51+ // PLUGIN object only
4052 IsSingleGlobal : true ,
41-
42- // world and object
43- CanBeBundled : true ,
44- IsDeprecated : false ,
45- GooglePlayServicesEnabled : false ,
4653 } ,
54+ // PLUGIN only
4755 AddCommonACEs : {
48- // world only
4956 Position : false ,
5057 SceneGraph : false ,
5158 Size : false ,
@@ -58,21 +65,7 @@ export const info = {
5865export const properties = [
5966 /*
6067 {
61- type:
62- "integer"
63- "float"
64- "percent"
65- "text"
66- "longtext"
67- "check"
68- "font"
69- "combo"
70- "color"
71- "object"
72- "group"
73- "link"
74- "info"
75-
68+ type: PROPERTY_TYPE.INTEGER,
7669 id: "property_id",
7770 options: {
7871 initialValue: 0,
@@ -93,14 +86,14 @@ export const properties = [
9386 // allowedPluginIds: ["Sprite", "<world>"],
9487
9588 // for type link only
96- // linkCallback: ` function(instOrObj) {}` ,
89+ // linkCallback: function(instOrObj) {},
9790 // linkText: "Link Text",
9891 // callbackType:
9992 // "for-each-instance"
10093 // "once-for-type"
10194
10295 // for type info only
103- // infoCallback: ` function(inst) {}` ,
96+ // infoCallback: function(inst) {},
10497 },
10598 name: "Property Name",
10699 desc: "Property Description",
0 commit comments