-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.caw.js
103 lines (90 loc) · 2.3 KB
/
config.caw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import {
ADDON_CATEGORY,
ADDON_TYPE,
PLUGIN_TYPE,
PROPERTY_TYPE,
} from "./template/enums.js";
import _version from "./version.js";
export const addonType = ADDON_TYPE.PLUGIN;
export const type = PLUGIN_TYPE.OBJECT;
export const id = "sample_addon";
export const name = "Sample Addon";
export const version = _version;
export const author = "skymen";
export const website = "https://www.construct.net";
export const documentation = "https://www.construct.net";
export const description = "Description";
export const category = ADDON_CATEGORY.GENERAL;
export const hasDomside = false;
export const files = {
extensionScript: {},
fileDependencies: [],
};
// categories that are not filled will use the folder name
export const aceCategories = {};
export const info = {
// icon: "icon.svg",
// PLUGIN world only
// defaultImageUrl: "default-image.png",
Set: {
// COMMON to all
CanBeBundled: true,
IsDeprecated: false,
GooglePlayServicesEnabled: false,
// BEHAVIOR only
IsOnlyOneAllowed: false,
// PLUGIN world only
IsResizable: false,
IsRotatable: false,
Is3D: false,
HasImage: false,
IsTiled: false,
SupportsZElevation: false,
SupportsColor: false,
SupportsEffects: false,
MustPreDraw: false,
// PLUGIN object only
IsSingleGlobal: true,
},
// PLUGIN only
AddCommonACEs: {
Position: false,
SceneGraph: false,
Size: false,
Angle: false,
Appearance: false,
ZOrder: false,
},
};
export const properties = [
/*
{
type: PROPERTY_TYPE.INTEGER,
id: "property_id",
options: {
initialValue: 0,
interpolatable: false,
// minValue: 0, // omit to disable
// maxValue: 100, // omit to disable
// for type combo only
// items: [
// {itemId1: "item name1" },
// {itemId2: "item name2" },
// ],
// dragSpeedMultiplier: 1, // omit to disable
// for type object only
// allowedPluginIds: ["Sprite", "<world>"],
// for type link only
// linkCallback: function(instOrObj) {},
// linkText: "Link Text",
// callbackType:
// "for-each-instance"
// "once-for-type"
// for type info only
// infoCallback: function(inst) {},
},
name: "Property Name",
desc: "Property Description",
}
*/
];