gdcore-tools 2.0.0-beta9 → 2.0.0-gd-v5.4.218-autobuild
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -64
- package/dist/Runtime/Extensions/3D/JsExtension.js +7 -3
- package/dist/Runtime/Extensions/DialogueTree/JsExtension.js +44 -32
- package/dist/Runtime/Extensions/DialogueTree/bondage.js/dist/bondage.min.js +10 -10
- package/dist/Runtime/Extensions/DialogueTree/bondage.js/version.txt +5 -5
- package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js +2 -2
- package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js.map +2 -2
- package/dist/Runtime/Extensions/Firebase/A_firebasejs/NOTICE.txt +6 -6
- package/dist/Runtime/Extensions/Multiplayer/messageManager.js +1 -1
- package/dist/Runtime/Extensions/Multiplayer/messageManager.js.map +2 -2
- package/dist/Runtime/Extensions/Multiplayer/multiplayerobjectruntimebehavior.js +1 -1
- package/dist/Runtime/Extensions/Multiplayer/multiplayerobjectruntimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +1 -1
- package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +2 -2
- package/dist/Runtime/Extensions/PhysicsBehavior/box2djs/box2d.js +804 -804
- package/dist/Runtime/Extensions/Shopify/shopify-buy.umd.polyfilled.min.js +1 -1
- package/dist/Runtime/Extensions/Spine/managers/pixi-spine-atlas-manager.js +1 -1
- package/dist/Runtime/Extensions/Spine/managers/pixi-spine-atlas-manager.js.map +2 -2
- package/dist/Runtime/Extensions/Spine/managers/pixi-spine-manager.js +1 -1
- package/dist/Runtime/Extensions/Spine/managers/pixi-spine-manager.js.map +2 -2
- package/dist/Runtime/Extensions/TileMap/example/anotherIsland.json +5768 -5768
- package/dist/Runtime/Extensions/TileMap/example/island.json +5822 -5822
- package/dist/Runtime/Model3DManager.js +1 -1
- package/dist/Runtime/Model3DManager.js.map +2 -2
- package/dist/Runtime/ResourceLoader.js +1 -1
- package/dist/Runtime/ResourceLoader.js.map +2 -2
- package/dist/Runtime/capturemanager.js +2 -0
- package/dist/Runtime/capturemanager.js.map +7 -0
- package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js +1 -1
- package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js.map +2 -2
- package/dist/Runtime/howler-sound-manager/howler-sound-manager.js +1 -1
- package/dist/Runtime/howler-sound-manager/howler-sound-manager.js.map +2 -2
- package/dist/Runtime/jsonmanager.js +1 -1
- package/dist/Runtime/jsonmanager.js.map +2 -2
- package/dist/Runtime/layer.js +1 -1
- package/dist/Runtime/layer.js.map +2 -2
- package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js +1 -1
- package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js.map +2 -2
- package/dist/Runtime/pixi-renderers/pixi-image-manager.js +1 -1
- package/dist/Runtime/pixi-renderers/pixi-image-manager.js.map +2 -2
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js +1 -1
- package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js.map +2 -2
- package/dist/Runtime/runtimegame.js +1 -1
- package/dist/Runtime/runtimegame.js.map +2 -2
- package/dist/Runtime/runtimewatermark.js +2 -2
- package/dist/Runtime/runtimewatermark.js.map +2 -2
- package/dist/Runtime/scenestack.js +1 -1
- package/dist/Runtime/scenestack.js.map +2 -2
- package/dist/Runtime/spriteruntimeobject.js +1 -1
- package/dist/Runtime/spriteruntimeobject.js.map +2 -2
- package/dist/lib/libGD.cjs +21 -21
- package/dist/lib/libGD.wasm +0 -0
- package/gd.d.ts +22 -6
- package/package.json +1 -1
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/.package-lock.json +0 -19
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/index.d.ts +0 -165
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/package.json +0 -35
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.min.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js +0 -2
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js.map +0 -7
- package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/package.json +0 -64
- package/types/index.d.ts +0 -23
- package/types/open_project.d.ts +0 -25
package/README.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# gdcore-tools
|
|
2
|
-
|
|
3
|
-
A package that downloads and bootstraps any version of GDevelops Core library.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
`npm install gdcore-tools`
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
Require the module, call it and add a callback with `.then`.
|
|
12
|
-
This will download the latest version of GDevelop, extract the required files,
|
|
13
|
-
and load GDCore wrapped with helpful functions.
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
const loadGD = require("gdcore-tools");
|
|
17
|
-
loadGD().then((gdtools) => {
|
|
18
|
-
// Create something awesome!
|
|
19
|
-
});
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Examples
|
|
23
|
-
|
|
24
|
-
You can find examples [here](https://github.com/arthuro555/gdcore-tools/tree/master/examples).
|
|
25
|
-
|
|
26
|
-
## API
|
|
27
|
-
|
|
28
|
-
You can find the API for GDCore (`WrappedGD.gd`) at [the official GDevelop website](https://docs.gdevelop-app.com/GDCore%20Documentation/namespacegd.html). Note that every method in `PascalCase` on the docs have to be used in `camelCase` in JavaScript.
|
|
29
|
-
|
|
30
|
-
#### Events:
|
|
31
|
-
##### `print`:
|
|
32
|
-
Triggered when GDCore wants to print a message.
|
|
33
|
-
|
|
34
|
-
##### `error`:
|
|
35
|
-
Triggered when GDCore errors.
|
|
36
|
-
|
|
37
|
-
#### `loadGD(version?: string): Promise<WrappedGD>`
|
|
38
|
-
|
|
39
|
-
The entrypoint of the module. Accept a github release tag to specify a specific version to download and use.
|
|
40
|
-
|
|
41
|
-
#### `WrappedGD.gd: gd`
|
|
42
|
-
|
|
43
|
-
The actual `gd` namespace of GDCore.
|
|
44
|
-
|
|
45
|
-
#### `WrappedGD.loadProject(projectLocation: string): Promise<gd.Project>`
|
|
46
|
-
|
|
47
|
-
Accepts a full path to a .json file, and returns a promise that resolves to the loaded `gd.Project` instance.
|
|
48
|
-
|
|
49
|
-
#### `WrappedGD.saveProject(project: gd.Project, fileName?: string, filePath?: string): Promise<void>`
|
|
50
|
-
|
|
51
|
-
Saves a `gd.Project` to a JSON file. The default path is `./` and the default filename `game.json`.
|
|
52
|
-
Returns a promise that resolves once the file is saved.
|
|
53
|
-
|
|
54
|
-
#### `WrappedGD.exportProject(project: gd.Project, outputDir: string, options?: Object): void`
|
|
55
|
-
|
|
56
|
-
Exports a project to a directory. Some options may be passed to the exporter, but they aren't officially documented. Returns a promise that resolves once the export is done.
|
|
57
|
-
|
|
58
|
-
#### `WrappedGD.reloadEventsFunctions(project): void`
|
|
59
|
-
|
|
60
|
-
Regenerates the code and reloads all events based extensions.
|
|
61
|
-
|
|
62
|
-
#### `WrappedGD.getRuntimePath(): string`
|
|
63
|
-
|
|
64
|
-
Get the path to the downloaded and built GDJS runtime.
|
|
1
|
+
# gdcore-tools
|
|
2
|
+
|
|
3
|
+
A package that downloads and bootstraps any version of GDevelops Core library.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
`npm install gdcore-tools`
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Require the module, call it and add a callback with `.then`.
|
|
12
|
+
This will download the latest version of GDevelop, extract the required files,
|
|
13
|
+
and load GDCore wrapped with helpful functions.
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const loadGD = require("gdcore-tools");
|
|
17
|
+
loadGD().then((gdtools) => {
|
|
18
|
+
// Create something awesome!
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
You can find examples [here](https://github.com/arthuro555/gdcore-tools/tree/master/examples).
|
|
25
|
+
|
|
26
|
+
## API
|
|
27
|
+
|
|
28
|
+
You can find the API for GDCore (`WrappedGD.gd`) at [the official GDevelop website](https://docs.gdevelop-app.com/GDCore%20Documentation/namespacegd.html). Note that every method in `PascalCase` on the docs have to be used in `camelCase` in JavaScript.
|
|
29
|
+
|
|
30
|
+
#### Events:
|
|
31
|
+
##### `print`:
|
|
32
|
+
Triggered when GDCore wants to print a message.
|
|
33
|
+
|
|
34
|
+
##### `error`:
|
|
35
|
+
Triggered when GDCore errors.
|
|
36
|
+
|
|
37
|
+
#### `loadGD(version?: string): Promise<WrappedGD>`
|
|
38
|
+
|
|
39
|
+
The entrypoint of the module. Accept a github release tag to specify a specific version to download and use.
|
|
40
|
+
|
|
41
|
+
#### `WrappedGD.gd: gd`
|
|
42
|
+
|
|
43
|
+
The actual `gd` namespace of GDCore.
|
|
44
|
+
|
|
45
|
+
#### `WrappedGD.loadProject(projectLocation: string): Promise<gd.Project>`
|
|
46
|
+
|
|
47
|
+
Accepts a full path to a .json file, and returns a promise that resolves to the loaded `gd.Project` instance.
|
|
48
|
+
|
|
49
|
+
#### `WrappedGD.saveProject(project: gd.Project, fileName?: string, filePath?: string): Promise<void>`
|
|
50
|
+
|
|
51
|
+
Saves a `gd.Project` to a JSON file. The default path is `./` and the default filename `game.json`.
|
|
52
|
+
Returns a promise that resolves once the file is saved.
|
|
53
|
+
|
|
54
|
+
#### `WrappedGD.exportProject(project: gd.Project, outputDir: string, options?: Object): void`
|
|
55
|
+
|
|
56
|
+
Exports a project to a directory. Some options may be passed to the exporter, but they aren't officially documented. Returns a promise that resolves once the export is done.
|
|
57
|
+
|
|
58
|
+
#### `WrappedGD.reloadEventsFunctions(project): void`
|
|
59
|
+
|
|
60
|
+
Regenerates the code and reloads all events based extensions.
|
|
61
|
+
|
|
62
|
+
#### `WrappedGD.getRuntimePath(): string`
|
|
63
|
+
|
|
64
|
+
Get the path to the downloaded and built GDJS runtime.
|
|
@@ -3231,9 +3231,9 @@ module.exports = {
|
|
|
3231
3231
|
: this._originalDepth / modelDepth;
|
|
3232
3232
|
const minScaleRatio = Math.min(widthRatio, heightRatio, depthRatio);
|
|
3233
3233
|
if (!Number.isFinite(minScaleRatio)) {
|
|
3234
|
-
this._defaultWidth =
|
|
3235
|
-
this._defaultHeight =
|
|
3236
|
-
this._defaultDepth =
|
|
3234
|
+
this._defaultWidth = this._originalWidth;
|
|
3235
|
+
this._defaultHeight = this._originalHeight;
|
|
3236
|
+
this._defaultDepth = this._originalDepth;
|
|
3237
3237
|
} else {
|
|
3238
3238
|
if (widthRatio === minScaleRatio) {
|
|
3239
3239
|
this._defaultWidth = this._originalWidth;
|
|
@@ -3274,6 +3274,10 @@ module.exports = {
|
|
|
3274
3274
|
this._defaultDepth = this._originalDepth;
|
|
3275
3275
|
}
|
|
3276
3276
|
}
|
|
3277
|
+
} else {
|
|
3278
|
+
this._defaultWidth = this._originalWidth;
|
|
3279
|
+
this._defaultHeight = this._originalHeight;
|
|
3280
|
+
this._defaultDepth = this._originalDepth;
|
|
3277
3281
|
}
|
|
3278
3282
|
|
|
3279
3283
|
this._threeObject.add(this._threeModelGroup);
|
|
@@ -34,18 +34,18 @@ module.exports = {
|
|
|
34
34
|
extension
|
|
35
35
|
.addAction(
|
|
36
36
|
'LoadDialogueFromSceneVariable',
|
|
37
|
-
_('Load dialogue
|
|
37
|
+
_('Load dialogue tree from a scene variable'),
|
|
38
38
|
_(
|
|
39
|
-
'Load a dialogue data object - Yarn
|
|
39
|
+
'Load a dialogue data object - Yarn JSON format, stored in a scene variable. Use this command to load all the Dialogue data at the beginning of the game.'
|
|
40
40
|
),
|
|
41
|
-
_('Load dialogue data from
|
|
41
|
+
_('Load dialogue data from scene variable _PARAM0_'),
|
|
42
42
|
'',
|
|
43
43
|
'JsPlatform/Extensions/yarn32.png',
|
|
44
44
|
'JsPlatform/Extensions/yarn32.png'
|
|
45
45
|
)
|
|
46
46
|
.addParameter(
|
|
47
47
|
'scenevar',
|
|
48
|
-
_('Scene variable that holds the Yarn
|
|
48
|
+
_('Scene variable that holds the Yarn JSON data'),
|
|
49
49
|
'',
|
|
50
50
|
false
|
|
51
51
|
)
|
|
@@ -57,11 +57,11 @@ module.exports = {
|
|
|
57
57
|
extension
|
|
58
58
|
.addAction(
|
|
59
59
|
'LoadDialogueFromJsonFile',
|
|
60
|
-
_('Load dialogue
|
|
60
|
+
_('Load dialogue tree from a JSON file'),
|
|
61
61
|
_(
|
|
62
|
-
'Load a dialogue data object - Yarn
|
|
62
|
+
'Load a dialogue data object - Yarn JSON format, stored in a JSON file. Use this command to load all the Dialogue data at the beginning of the game.'
|
|
63
63
|
),
|
|
64
|
-
_('Load dialogue data from
|
|
64
|
+
_('Load dialogue data from JSON file _PARAM1_'),
|
|
65
65
|
'',
|
|
66
66
|
'JsPlatform/Extensions/yarn32.png',
|
|
67
67
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -69,7 +69,7 @@ module.exports = {
|
|
|
69
69
|
.addCodeOnlyParameter('currentScene', '')
|
|
70
70
|
.addParameter(
|
|
71
71
|
'jsonResource',
|
|
72
|
-
_('
|
|
72
|
+
_('JSON file that holds the Yarn JSON data'),
|
|
73
73
|
'',
|
|
74
74
|
false
|
|
75
75
|
)
|
|
@@ -125,11 +125,11 @@ module.exports = {
|
|
|
125
125
|
extension
|
|
126
126
|
.addAction(
|
|
127
127
|
'ConfirmSelectOption',
|
|
128
|
-
_('Confirm selected
|
|
128
|
+
_('Confirm selected option'),
|
|
129
129
|
_(
|
|
130
130
|
'Set the selected option as confirmed, which will validate it and go forward to the next node. Use other actions to select options (see "select next option" and "Select previous option").'
|
|
131
131
|
),
|
|
132
|
-
_('Confirm selected
|
|
132
|
+
_('Confirm selected option'),
|
|
133
133
|
'',
|
|
134
134
|
'JsPlatform/Extensions/yarn32.png',
|
|
135
135
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -140,11 +140,11 @@ module.exports = {
|
|
|
140
140
|
extension
|
|
141
141
|
.addAction(
|
|
142
142
|
'SelectNextOption',
|
|
143
|
-
_('Select next
|
|
143
|
+
_('Select next option'),
|
|
144
144
|
_(
|
|
145
|
-
'Select next
|
|
145
|
+
'Select next option (add 1 to selected option number). Use this when the dialogue line is of type "options" and the player has pressed a button to change selected option.'
|
|
146
146
|
),
|
|
147
|
-
_('Select next
|
|
147
|
+
_('Select next option'),
|
|
148
148
|
'',
|
|
149
149
|
'JsPlatform/Extensions/yarn32.png',
|
|
150
150
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -155,11 +155,11 @@ module.exports = {
|
|
|
155
155
|
extension
|
|
156
156
|
.addAction(
|
|
157
157
|
'SelectPreviousOption',
|
|
158
|
-
_('Select previous
|
|
158
|
+
_('Select previous option'),
|
|
159
159
|
_(
|
|
160
|
-
'Select previous
|
|
160
|
+
'Select previous option (subtract 1 from selected option number). Use this when the dialogue line is of type "options" and the player has pressed a button to change selected option.'
|
|
161
161
|
),
|
|
162
|
-
_('Select previous
|
|
162
|
+
_('Select previous option'),
|
|
163
163
|
'',
|
|
164
164
|
'JsPlatform/Extensions/yarn32.png',
|
|
165
165
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -225,8 +225,8 @@ module.exports = {
|
|
|
225
225
|
'JsPlatform/Extensions/yarn32.png',
|
|
226
226
|
'JsPlatform/Extensions/yarn32.png'
|
|
227
227
|
)
|
|
228
|
-
.addParameter('string', _('State
|
|
229
|
-
.addParameter('string', _('
|
|
228
|
+
.addParameter('string', _('State variable name'), '', false)
|
|
229
|
+
.addParameter('string', _('New value'), '', false)
|
|
230
230
|
.getCodeExtraInformation()
|
|
231
231
|
.setFunctionName('gdjs.dialogueTree.setVariable');
|
|
232
232
|
|
|
@@ -242,8 +242,8 @@ module.exports = {
|
|
|
242
242
|
'JsPlatform/Extensions/yarn32.png',
|
|
243
243
|
'JsPlatform/Extensions/yarn32.png'
|
|
244
244
|
)
|
|
245
|
-
.addParameter('string', _('State
|
|
246
|
-
.addParameter('expression', _('
|
|
245
|
+
.addParameter('string', _('State variable name'), '', false)
|
|
246
|
+
.addParameter('expression', _('New value'), '', true)
|
|
247
247
|
.getCodeExtraInformation()
|
|
248
248
|
.setFunctionName('gdjs.dialogueTree.setVariable');
|
|
249
249
|
|
|
@@ -259,8 +259,8 @@ module.exports = {
|
|
|
259
259
|
'JsPlatform/Extensions/yarn32.png',
|
|
260
260
|
'JsPlatform/Extensions/yarn32.png'
|
|
261
261
|
)
|
|
262
|
-
.addParameter('string', _('State
|
|
263
|
-
.addParameter('trueorfalse', _('
|
|
262
|
+
.addParameter('string', _('State variable name'), '', false)
|
|
263
|
+
.addParameter('trueorfalse', _('New value'), '', false)
|
|
264
264
|
.getCodeExtraInformation()
|
|
265
265
|
.setFunctionName('gdjs.dialogueTree.setVariable');
|
|
266
266
|
|
|
@@ -336,9 +336,9 @@ module.exports = {
|
|
|
336
336
|
extension
|
|
337
337
|
.addStrExpression(
|
|
338
338
|
'Option',
|
|
339
|
-
_('Get the text of an option from an
|
|
339
|
+
_('Get the text of an option from an options line type'),
|
|
340
340
|
_(
|
|
341
|
-
"Get the text of an option from an
|
|
341
|
+
"Get the text of an option from an options line type, using the option's Number. The numbers start from 0."
|
|
342
342
|
),
|
|
343
343
|
'',
|
|
344
344
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -350,9 +350,9 @@ module.exports = {
|
|
|
350
350
|
extension
|
|
351
351
|
.addStrExpression(
|
|
352
352
|
'HorizontalOptionsList',
|
|
353
|
-
_('Get a Horizontal list of options from the
|
|
353
|
+
_('Get a Horizontal list of options from the options line type'),
|
|
354
354
|
_(
|
|
355
|
-
"Get the text of all available options from an
|
|
355
|
+
"Get the text of all available options from an options line type as a horizontal list. You can also pass the selected option's cursor string, which by default is ->"
|
|
356
356
|
),
|
|
357
357
|
'',
|
|
358
358
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -365,9 +365,9 @@ module.exports = {
|
|
|
365
365
|
extension
|
|
366
366
|
.addStrExpression(
|
|
367
367
|
'VerticalOptionsList',
|
|
368
|
-
_('Get a Vertical list of options from the
|
|
368
|
+
_('Get a Vertical list of options from the options line type'),
|
|
369
369
|
_(
|
|
370
|
-
"Get the text of all available options from an
|
|
370
|
+
"Get the text of all available options from an options line type as a vertical list. You can also pass the selected option's cursor string, which by default is ->"
|
|
371
371
|
),
|
|
372
372
|
'',
|
|
373
373
|
'JsPlatform/Extensions/yarn32.png'
|
|
@@ -507,14 +507,26 @@ module.exports = {
|
|
|
507
507
|
extension
|
|
508
508
|
.addExpression(
|
|
509
509
|
'Variable',
|
|
510
|
-
_('Get dialogue state
|
|
511
|
-
_('Get dialogue state
|
|
510
|
+
_('Get the number stored in a dialogue state variable'),
|
|
511
|
+
_('Get the number stored in a dialogue state variable'),
|
|
512
512
|
'',
|
|
513
513
|
'JsPlatform/Extensions/yarn32.png'
|
|
514
514
|
)
|
|
515
|
-
.addParameter('string', _('
|
|
515
|
+
.addParameter('string', _('Dialogue state variable name'), '', false)
|
|
516
516
|
.getCodeExtraInformation()
|
|
517
|
-
.setFunctionName('gdjs.dialogueTree.
|
|
517
|
+
.setFunctionName('gdjs.dialogueTree.getVariableAsNumber');
|
|
518
|
+
|
|
519
|
+
extension
|
|
520
|
+
.addStrExpression(
|
|
521
|
+
'VariableString',
|
|
522
|
+
_('Get the string stored in a dialogue state variable'),
|
|
523
|
+
_('Get the string stored in a dialogue state variable'),
|
|
524
|
+
'',
|
|
525
|
+
'JsPlatform/Extensions/yarn32.png'
|
|
526
|
+
)
|
|
527
|
+
.addParameter('string', _('Dialogue state variable name'), '', false)
|
|
528
|
+
.getCodeExtraInformation()
|
|
529
|
+
.setFunctionName('gdjs.dialogueTree.getVariableAsString');
|
|
518
530
|
|
|
519
531
|
extension
|
|
520
532
|
.addCondition(
|