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.
Files changed (110) hide show
  1. package/README.md +64 -64
  2. package/dist/Runtime/Extensions/3D/JsExtension.js +7 -3
  3. package/dist/Runtime/Extensions/DialogueTree/JsExtension.js +44 -32
  4. package/dist/Runtime/Extensions/DialogueTree/bondage.js/dist/bondage.min.js +10 -10
  5. package/dist/Runtime/Extensions/DialogueTree/bondage.js/version.txt +5 -5
  6. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js +2 -2
  7. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js.map +2 -2
  8. package/dist/Runtime/Extensions/Firebase/A_firebasejs/NOTICE.txt +6 -6
  9. package/dist/Runtime/Extensions/Multiplayer/messageManager.js +1 -1
  10. package/dist/Runtime/Extensions/Multiplayer/messageManager.js.map +2 -2
  11. package/dist/Runtime/Extensions/Multiplayer/multiplayerobjectruntimebehavior.js +1 -1
  12. package/dist/Runtime/Extensions/Multiplayer/multiplayerobjectruntimebehavior.js.map +2 -2
  13. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +1 -1
  14. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +2 -2
  15. package/dist/Runtime/Extensions/PhysicsBehavior/box2djs/box2d.js +804 -804
  16. package/dist/Runtime/Extensions/Shopify/shopify-buy.umd.polyfilled.min.js +1 -1
  17. package/dist/Runtime/Extensions/Spine/managers/pixi-spine-atlas-manager.js +1 -1
  18. package/dist/Runtime/Extensions/Spine/managers/pixi-spine-atlas-manager.js.map +2 -2
  19. package/dist/Runtime/Extensions/Spine/managers/pixi-spine-manager.js +1 -1
  20. package/dist/Runtime/Extensions/Spine/managers/pixi-spine-manager.js.map +2 -2
  21. package/dist/Runtime/Extensions/TileMap/example/anotherIsland.json +5768 -5768
  22. package/dist/Runtime/Extensions/TileMap/example/island.json +5822 -5822
  23. package/dist/Runtime/Model3DManager.js +1 -1
  24. package/dist/Runtime/Model3DManager.js.map +2 -2
  25. package/dist/Runtime/ResourceLoader.js +1 -1
  26. package/dist/Runtime/ResourceLoader.js.map +2 -2
  27. package/dist/Runtime/capturemanager.js +2 -0
  28. package/dist/Runtime/capturemanager.js.map +7 -0
  29. package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js +1 -1
  30. package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js.map +2 -2
  31. package/dist/Runtime/howler-sound-manager/howler-sound-manager.js +1 -1
  32. package/dist/Runtime/howler-sound-manager/howler-sound-manager.js.map +2 -2
  33. package/dist/Runtime/jsonmanager.js +1 -1
  34. package/dist/Runtime/jsonmanager.js.map +2 -2
  35. package/dist/Runtime/layer.js +1 -1
  36. package/dist/Runtime/layer.js.map +2 -2
  37. package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js +1 -1
  38. package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js.map +2 -2
  39. package/dist/Runtime/pixi-renderers/pixi-image-manager.js +1 -1
  40. package/dist/Runtime/pixi-renderers/pixi-image-manager.js.map +2 -2
  41. package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js +1 -1
  42. package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js.map +2 -2
  43. package/dist/Runtime/runtimegame.js +1 -1
  44. package/dist/Runtime/runtimegame.js.map +2 -2
  45. package/dist/Runtime/runtimewatermark.js +2 -2
  46. package/dist/Runtime/runtimewatermark.js.map +2 -2
  47. package/dist/Runtime/scenestack.js +1 -1
  48. package/dist/Runtime/scenestack.js.map +2 -2
  49. package/dist/Runtime/spriteruntimeobject.js +1 -1
  50. package/dist/Runtime/spriteruntimeobject.js.map +2 -2
  51. package/dist/lib/libGD.cjs +21 -21
  52. package/dist/lib/libGD.wasm +0 -0
  53. package/gd.d.ts +22 -6
  54. package/package.json +1 -1
  55. package/dist/Runtime/Extensions/TileMap/helper/node_modules/.package-lock.json +0 -19
  56. package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/index.d.ts +0 -165
  57. package/dist/Runtime/Extensions/TileMap/helper/node_modules/@types/pako/package.json +0 -35
  58. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js +0 -2
  59. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.js.map +0 -7
  60. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.es5.min.js +0 -2
  61. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js +0 -2
  62. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.js.map +0 -7
  63. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako.min.js +0 -2
  64. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js +0 -2
  65. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.js.map +0 -7
  66. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.es5.min.js +0 -2
  67. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js +0 -2
  68. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.js.map +0 -7
  69. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_deflate.min.js +0 -2
  70. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js +0 -2
  71. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.js.map +0 -7
  72. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.es5.min.js +0 -2
  73. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js +0 -2
  74. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.js.map +0 -7
  75. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/dist/pako_inflate.min.js +0 -2
  76. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js +0 -2
  77. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/index.js.map +0 -7
  78. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js +0 -2
  79. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/deflate.js.map +0 -7
  80. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js +0 -2
  81. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/inflate.js.map +0 -7
  82. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js +0 -2
  83. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/common.js.map +0 -7
  84. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js +0 -2
  85. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/utils/strings.js.map +0 -7
  86. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js +0 -2
  87. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/adler32.js.map +0 -7
  88. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js +0 -2
  89. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/constants.js.map +0 -7
  90. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js +0 -2
  91. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/crc32.js.map +0 -7
  92. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js +0 -2
  93. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/deflate.js.map +0 -7
  94. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js +0 -2
  95. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/gzheader.js.map +0 -7
  96. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js +0 -2
  97. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inffast.js.map +0 -7
  98. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js +0 -2
  99. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inflate.js.map +0 -7
  100. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js +0 -2
  101. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/inftrees.js.map +0 -7
  102. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js +0 -2
  103. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/messages.js.map +0 -7
  104. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js +0 -2
  105. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/trees.js.map +0 -7
  106. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js +0 -2
  107. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/lib/zlib/zstream.js.map +0 -7
  108. package/dist/Runtime/Extensions/TileMap/helper/node_modules/pako/package.json +0 -64
  109. package/types/index.d.ts +0 -23
  110. 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 = modelWidth;
3235
- this._defaultHeight = modelHeight;
3236
- this._defaultDepth = modelDepth;
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 Tree from a scene variable'),
37
+ _('Load dialogue tree from a scene variable'),
38
38
  _(
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.'
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 Scene variable _PARAM0_'),
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 Json data'),
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 Tree from a Json File'),
60
+ _('Load dialogue tree from a JSON file'),
61
61
  _(
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.'
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 json file _PARAM1_'),
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
- _('Json file that holds the Yarn Json data'),
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 Option'),
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 Option'),
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 Option'),
143
+ _('Select next option'),
144
144
  _(
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.'
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 Option'),
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 Option'),
158
+ _('Select previous option'),
159
159
  _(
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.'
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 Option'),
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 Variable Name'), '', false)
229
- .addParameter('string', _('Variable string value'), '', false)
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 Variable Name'), '', false)
246
- .addParameter('expression', _('Variable number value'), '', true)
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 Variable Name'), '', false)
263
- .addParameter('trueorfalse', _('Variable boolean value'), '', false)
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 Options line type'),
339
+ _('Get the text of an option from an options line type'),
340
340
  _(
341
- "Get the text of an option from an Options line type, using the option's Number. The numbers start from 0."
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 Options line type'),
353
+ _('Get a Horizontal list of options from the options line type'),
354
354
  _(
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 ->"
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 Options line type'),
368
+ _('Get a Vertical list of options from the options line type'),
369
369
  _(
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 ->"
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 value'),
511
- _('Get dialogue state value'),
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', _('Variable Name'), '', false)
515
+ .addParameter('string', _('Dialogue state variable name'), '', false)
516
516
  .getCodeExtraInformation()
517
- .setFunctionName('gdjs.dialogueTree.getVariable');
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(