@defold-typescript/types 0.5.2 → 0.5.4
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 +1 -1
- package/generated/buffer.d.ts +3 -3
- package/generated/collectionfactory.d.ts +9 -9
- package/generated/collectionproxy.d.ts +1 -1
- package/generated/factory.d.ts +9 -9
- package/generated/go.d.ts +12 -12
- package/generated/gui.d.ts +147 -147
- package/generated/http.d.ts +21 -21
- package/generated/iac.d.ts +1 -1
- package/generated/iap.d.ts +4 -4
- package/generated/image.d.ts +30 -30
- package/generated/json.d.ts +2 -2
- package/generated/kinds/gui-script.d.ts +1 -0
- package/generated/kinds/render-script.d.ts +1 -0
- package/generated/kinds/script.d.ts +1 -0
- package/generated/model.d.ts +23 -23
- package/generated/particlefx.d.ts +13 -13
- package/generated/physics.d.ts +87 -87
- package/generated/profiler.d.ts +11 -11
- package/generated/render.d.ts +67 -67
- package/generated/resource.d.ts +372 -372
- package/generated/sound.d.ts +23 -23
- package/generated/sprite.d.ts +14 -14
- package/generated/sys.d.ts +57 -57
- package/generated/timer.d.ts +12 -12
- package/generated/window.d.ts +28 -28
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/scripts/regen.ts +1 -0
- package/src/doc-comment.ts +10 -2
- package/src/index.ts +2 -0
- package/src/message-dispatch.d.ts +23 -0
- package/src/message-guard.d.ts +16 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ npm i -D @defold-typescript/types
|
|
|
10
10
|
|
|
11
11
|
Most users get these wired in automatically by the
|
|
12
12
|
[`defold-typescript`](https://www.npmjs.com/package/@defold-typescript/cli) CLI
|
|
13
|
-
(`defold-typescript init`), which points `tsconfig.json` at the right surface.
|
|
13
|
+
(`bunx @defold-typescript/cli init`), which points `tsconfig.json` at the right surface.
|
|
14
14
|
|
|
15
15
|
See the repository [README](https://github.com/king8fisher/defold-typescript#readme)
|
|
16
16
|
and [`docs/guide/`](https://github.com/king8fisher/defold-typescript/tree/main/docs/guide)
|
package/generated/buffer.d.ts
CHANGED
|
@@ -89,9 +89,9 @@ declare global {
|
|
|
89
89
|
*
|
|
90
90
|
* @param element_count - The number of elements the buffer should hold
|
|
91
91
|
* @param declaration - A table where each entry (table) describes a stream
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
* - hash | string `name`: The name of the stream
|
|
93
|
+
* - constant `type`: The data type of the stream
|
|
94
|
+
* - number `count`: The number of values each element should hold
|
|
95
95
|
* @returns the new buffer
|
|
96
96
|
* @example
|
|
97
97
|
* ```lua
|
|
@@ -78,9 +78,9 @@ declare global {
|
|
|
78
78
|
*
|
|
79
79
|
* @param url - the collection factory component to get status from
|
|
80
80
|
* @returns status of the collection factory component
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
* - `collectionfactory.STATUS_UNLOADED`
|
|
82
|
+
* - `collectionfactory.STATUS_LOADING`
|
|
83
|
+
* - `collectionfactory.STATUS_LOADED`
|
|
84
84
|
*/
|
|
85
85
|
function get_status(url?: string | Hash | Url): Opaque<"constant">;
|
|
86
86
|
/**
|
|
@@ -89,12 +89,12 @@ declare global {
|
|
|
89
89
|
*
|
|
90
90
|
* @param url - the collection factory component to load
|
|
91
91
|
* @param complete_function - function to call when resources are loaded.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
* `self`
|
|
93
|
+
* object The current object.
|
|
94
|
+
* `url`
|
|
95
|
+
* url url of the collection factory component
|
|
96
|
+
* `result`
|
|
97
|
+
* boolean True if resource were loaded successfully
|
|
98
98
|
* @example
|
|
99
99
|
* ```lua
|
|
100
100
|
* How to load resources of a collection factory prototype.
|
|
@@ -25,7 +25,7 @@ declare global {
|
|
|
25
25
|
*
|
|
26
26
|
* @param collectionproxy - the collectionproxy to check for resources.
|
|
27
27
|
* @returns the resources, or an empty list if the
|
|
28
|
-
|
|
28
|
+
* collection was not excluded.
|
|
29
29
|
* @example
|
|
30
30
|
* ```lua
|
|
31
31
|
* local function print_resources(self, cproxy)
|
package/generated/factory.d.ts
CHANGED
|
@@ -55,9 +55,9 @@ declare global {
|
|
|
55
55
|
*
|
|
56
56
|
* @param url - the factory component to get status from
|
|
57
57
|
* @returns status of the factory component
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
* - `factory.STATUS_UNLOADED`
|
|
59
|
+
* - `factory.STATUS_LOADING`
|
|
60
|
+
* - `factory.STATUS_LOADED`
|
|
61
61
|
*/
|
|
62
62
|
function get_status(url?: string | Hash | Url): Opaque<"constant">;
|
|
63
63
|
/**
|
|
@@ -66,12 +66,12 @@ declare global {
|
|
|
66
66
|
*
|
|
67
67
|
* @param url - the factory component to load
|
|
68
68
|
* @param complete_function - function to call when resources are loaded.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
* `self`
|
|
70
|
+
* object The current object.
|
|
71
|
+
* `url`
|
|
72
|
+
* url url of the factory component
|
|
73
|
+
* `result`
|
|
74
|
+
* boolean True if resources were loaded successfully
|
|
75
75
|
* @example
|
|
76
76
|
* ```lua
|
|
77
77
|
* How to load resources of a factory prototype.
|
package/generated/go.d.ts
CHANGED
|
@@ -208,23 +208,23 @@ declare global {
|
|
|
208
208
|
* @param url - url of the game object or component having the property
|
|
209
209
|
* @param property - id of the property to animate
|
|
210
210
|
* @param playback - playback mode of the animation
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
* - `go.PLAYBACK_ONCE_FORWARD`
|
|
212
|
+
* - `go.PLAYBACK_ONCE_BACKWARD`
|
|
213
|
+
* - `go.PLAYBACK_ONCE_PINGPONG`
|
|
214
|
+
* - `go.PLAYBACK_LOOP_FORWARD`
|
|
215
|
+
* - `go.PLAYBACK_LOOP_BACKWARD`
|
|
216
|
+
* - `go.PLAYBACK_LOOP_PINGPONG`
|
|
217
217
|
* @param to - target property value
|
|
218
218
|
* @param easing - easing to use during animation. Either specify a constant, see the animation guide for a complete list, or a vmath.vector with a curve
|
|
219
219
|
* @param duration - duration of the animation in seconds
|
|
220
220
|
* @param delay - delay before the animation starts in seconds
|
|
221
221
|
* @param complete_function - optional function to call when the animation has completed
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
* `self`
|
|
223
|
+
* object The current object.
|
|
224
|
+
* `url`
|
|
225
|
+
* url The game object or component instance for which the property is animated.
|
|
226
|
+
* `property`
|
|
227
|
+
* hash The id of the animated property.
|
|
228
228
|
* @example
|
|
229
229
|
* ```lua
|
|
230
230
|
* Animate the position of a game object to x = 10 during 1 second, then y = 20 during 1 second:
|
package/generated/gui.d.ts
CHANGED
|
@@ -443,48 +443,48 @@ declare global {
|
|
|
443
443
|
*
|
|
444
444
|
* @param node - node to animate
|
|
445
445
|
* @param property - property to animate
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
446
|
+
* - `"position"`
|
|
447
|
+
* - `"rotation"`
|
|
448
|
+
* - `"euler"`
|
|
449
|
+
* - `"scale"`
|
|
450
|
+
* - `"color"`
|
|
451
|
+
* - `"outline"`
|
|
452
|
+
* - `"shadow"`
|
|
453
|
+
* - `"size"`
|
|
454
|
+
* - `"fill_angle"` (pie)
|
|
455
|
+
* - `"inner_radius"` (pie)
|
|
456
|
+
* - `"leading"` (text)
|
|
457
|
+
* - `"tracking"` (text)
|
|
458
|
+
* - `"slice9"` (slice9)
|
|
459
|
+
* The following property constants are defined equaling the corresponding property string names.
|
|
460
|
+
* - `gui.PROP_POSITION`
|
|
461
|
+
* - `gui.PROP_ROTATION`
|
|
462
|
+
* - `gui.PROP_EULER`
|
|
463
|
+
* - `gui.PROP_SCALE`
|
|
464
|
+
* - `gui.PROP_COLOR`
|
|
465
|
+
* - `gui.PROP_OUTLINE`
|
|
466
|
+
* - `gui.PROP_SHADOW`
|
|
467
|
+
* - `gui.PROP_SIZE`
|
|
468
|
+
* - `gui.PROP_FILL_ANGLE`
|
|
469
|
+
* - `gui.PROP_INNER_RADIUS`
|
|
470
|
+
* - `gui.PROP_LEADING`
|
|
471
|
+
* - `gui.PROP_TRACKING`
|
|
472
|
+
* - `gui.PROP_SLICE9`
|
|
473
473
|
* @param to - target property value
|
|
474
474
|
* @param easing - easing to use during animation.
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
* Either specify one of the `gui.EASING_*` constants or provide a
|
|
476
|
+
* vector with a custom curve. See the animation guide for more information.
|
|
477
477
|
* @param duration - duration of the animation in seconds.
|
|
478
478
|
* @param delay - delay before the animation starts in seconds.
|
|
479
479
|
* @param complete_function - function to call when the
|
|
480
|
-
|
|
480
|
+
* animation has completed
|
|
481
481
|
* @param playback - playback mode
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
482
|
+
* - `gui.PLAYBACK_ONCE_FORWARD`
|
|
483
|
+
* - `gui.PLAYBACK_ONCE_BACKWARD`
|
|
484
|
+
* - `gui.PLAYBACK_ONCE_PINGPONG`
|
|
485
|
+
* - `gui.PLAYBACK_LOOP_FORWARD`
|
|
486
|
+
* - `gui.PLAYBACK_LOOP_BACKWARD`
|
|
487
|
+
* - `gui.PLAYBACK_LOOP_PINGPONG`
|
|
488
488
|
* @example
|
|
489
489
|
* ```lua
|
|
490
490
|
* How to start a simple color animation, where the node fades in to white during 0.5 seconds:
|
|
@@ -528,19 +528,19 @@ declare global {
|
|
|
528
528
|
*
|
|
529
529
|
* @param node - node that should have its animation canceled
|
|
530
530
|
* @param property - optional property for which the animation should be canceled
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
531
|
+
* - `"position"`
|
|
532
|
+
* - `"rotation"`
|
|
533
|
+
* - `"euler"`
|
|
534
|
+
* - `"scale"`
|
|
535
|
+
* - `"color"`
|
|
536
|
+
* - `"outline"`
|
|
537
|
+
* - `"shadow"`
|
|
538
|
+
* - `"size"`
|
|
539
|
+
* - `"fill_angle"` (pie)
|
|
540
|
+
* - `"inner_radius"` (pie)
|
|
541
|
+
* - `"leading"` (text)
|
|
542
|
+
* - `"tracking"` (text)
|
|
543
|
+
* - `"slice9"` (slice9)
|
|
544
544
|
* @example
|
|
545
545
|
* ```lua
|
|
546
546
|
* Start an animation of the position property of a node, then cancel parts of
|
|
@@ -667,7 +667,7 @@ declare global {
|
|
|
667
667
|
* @param node - node to get the property for
|
|
668
668
|
* @param property - the property to retrieve
|
|
669
669
|
* @param options - optional options table (only applicable for material constants)
|
|
670
|
-
|
|
670
|
+
* - `index` number index into array property (1 based)
|
|
671
671
|
* @example
|
|
672
672
|
* ```lua
|
|
673
673
|
* Get properties on existing nodes:
|
|
@@ -683,9 +683,9 @@ declare global {
|
|
|
683
683
|
*
|
|
684
684
|
* @param node - node from which to get the adjust mode (node)
|
|
685
685
|
* @returns the current adjust mode
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
* - `gui.ADJUST_FIT`
|
|
687
|
+
* - `gui.ADJUST_ZOOM`
|
|
688
|
+
* - `gui.ADJUST_STRETCH`
|
|
689
689
|
*/
|
|
690
690
|
function get_adjust_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
691
691
|
/**
|
|
@@ -701,11 +701,11 @@ declare global {
|
|
|
701
701
|
*
|
|
702
702
|
* @param node - node from which to get the blend mode
|
|
703
703
|
* @returns blend mode
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
704
|
+
* - `gui.BLEND_ALPHA`
|
|
705
|
+
* - `gui.BLEND_ADD`
|
|
706
|
+
* - `gui.BLEND_ADD_ALPHA`
|
|
707
|
+
* - `gui.BLEND_MULT`
|
|
708
|
+
* - `gui.BLEND_SCREEN`
|
|
709
709
|
*/
|
|
710
710
|
function get_blend_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
711
711
|
/**
|
|
@@ -720,8 +720,8 @@ declare global {
|
|
|
720
720
|
*
|
|
721
721
|
* @param node - node from which to get the clipping mode
|
|
722
722
|
* @returns clipping mode
|
|
723
|
-
|
|
724
|
-
|
|
723
|
+
* - `gui.CLIPPING_MODE_NONE`
|
|
724
|
+
* - `gui.CLIPPING_MODE_STENCIL`
|
|
725
725
|
*/
|
|
726
726
|
function get_clipping_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
727
727
|
/**
|
|
@@ -937,8 +937,8 @@ declare global {
|
|
|
937
937
|
*
|
|
938
938
|
* @param node - node from where to get the outer bounds mode
|
|
939
939
|
* @returns the outer bounds mode of the pie node:
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
* - `gui.PIEBOUNDS_RECTANGLE`
|
|
941
|
+
* - `gui.PIEBOUNDS_ELLIPSE`
|
|
942
942
|
*/
|
|
943
943
|
function get_outer_bounds(node: Opaque<"node">): Opaque<"constant">;
|
|
944
944
|
/**
|
|
@@ -977,15 +977,15 @@ declare global {
|
|
|
977
977
|
*
|
|
978
978
|
* @param node - node to get pivot from
|
|
979
979
|
* @returns pivot constant
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
980
|
+
* - `gui.PIVOT_CENTER`
|
|
981
|
+
* - `gui.PIVOT_N`
|
|
982
|
+
* - `gui.PIVOT_NE`
|
|
983
|
+
* - `gui.PIVOT_E`
|
|
984
|
+
* - `gui.PIVOT_SE`
|
|
985
|
+
* - `gui.PIVOT_S`
|
|
986
|
+
* - `gui.PIVOT_SW`
|
|
987
|
+
* - `gui.PIVOT_W`
|
|
988
|
+
* - `gui.PIVOT_NW`
|
|
989
989
|
*/
|
|
990
990
|
function get_pivot(node: Opaque<"node">): Opaque<"constant">;
|
|
991
991
|
/**
|
|
@@ -1044,8 +1044,8 @@ declare global {
|
|
|
1044
1044
|
*
|
|
1045
1045
|
* @param node - node from which to get the size mode (node)
|
|
1046
1046
|
* @returns the current size mode
|
|
1047
|
-
|
|
1048
|
-
|
|
1047
|
+
* - `gui.SIZE_MODE_MANUAL`
|
|
1048
|
+
* - `gui.SIZE_MODE_AUTO`
|
|
1049
1049
|
*/
|
|
1050
1050
|
function get_size_mode(node: Opaque<"node">): Opaque<"constant">;
|
|
1051
1051
|
/**
|
|
@@ -1110,9 +1110,9 @@ declare global {
|
|
|
1110
1110
|
*
|
|
1111
1111
|
* @param node - node to get x-anchor from
|
|
1112
1112
|
* @returns anchor constant
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
* - `gui.ANCHOR_NONE`
|
|
1114
|
+
* - `gui.ANCHOR_LEFT`
|
|
1115
|
+
* - `gui.ANCHOR_RIGHT`
|
|
1116
1116
|
*/
|
|
1117
1117
|
function get_xanchor(node: Opaque<"node">): Opaque<"constant">;
|
|
1118
1118
|
/**
|
|
@@ -1120,9 +1120,9 @@ declare global {
|
|
|
1120
1120
|
*
|
|
1121
1121
|
* @param node - node to get y-anchor from
|
|
1122
1122
|
* @returns anchor constant
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1123
|
+
* - `gui.ANCHOR_NONE`
|
|
1124
|
+
* - `gui.ANCHOR_TOP`
|
|
1125
|
+
* - `gui.ANCHOR_BOTTOM`
|
|
1126
1126
|
*/
|
|
1127
1127
|
function get_yanchor(node: Opaque<"node">): Opaque<"constant">;
|
|
1128
1128
|
/**
|
|
@@ -1209,10 +1209,10 @@ declare global {
|
|
|
1209
1209
|
* @param width - texture width
|
|
1210
1210
|
* @param height - texture height
|
|
1211
1211
|
* @param type - texture type
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1212
|
+
* - `"rgb"` - RGB
|
|
1213
|
+
* - `"rgba"` - RGBA
|
|
1214
|
+
* - `"l"` - LUMINANCE
|
|
1215
|
+
* - `"astc"` - ASTC compressed format
|
|
1216
1216
|
* @param buffer - texture data
|
|
1217
1217
|
* @param flip - flip texture vertically
|
|
1218
1218
|
* @example
|
|
@@ -1410,15 +1410,15 @@ declare global {
|
|
|
1410
1410
|
* @param node - node to set animation for
|
|
1411
1411
|
* @param animation - animation id
|
|
1412
1412
|
* @param complete_function - optional function to call when the animation has completed
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1413
|
+
* `self`
|
|
1414
|
+
* object The current object.
|
|
1415
|
+
* `node`
|
|
1416
|
+
* node The node that is animated.
|
|
1417
1417
|
* @param play_properties - optional table with properties
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1418
|
+
* `offset`
|
|
1419
|
+
* number The normalized initial value of the animation cursor when the animation starts playing
|
|
1420
|
+
* `playback_rate`
|
|
1421
|
+
* number The rate with which the animation will be played. Must be positive
|
|
1422
1422
|
* @example
|
|
1423
1423
|
* ```lua
|
|
1424
1424
|
* Set the texture of a node to a flipbook animation from an atlas:
|
|
@@ -1446,18 +1446,18 @@ declare global {
|
|
|
1446
1446
|
*
|
|
1447
1447
|
* @param node - node to play particle fx for
|
|
1448
1448
|
* @param emitter_state_function - optional callback function that will be called when an emitter attached to this particlefx changes state.
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1449
|
+
* `self`
|
|
1450
|
+
* object The current object
|
|
1451
|
+
* `node`
|
|
1452
|
+
* hash The particle fx node, or `nil` if the node was deleted
|
|
1453
|
+
* `emitter`
|
|
1454
|
+
* hash The id of the emitter
|
|
1455
|
+
* `state`
|
|
1456
|
+
* constant the new state of the emitter:
|
|
1457
|
+
* - `particlefx.EMITTER_STATE_SLEEPING`
|
|
1458
|
+
* - `particlefx.EMITTER_STATE_PRESPAWN`
|
|
1459
|
+
* - `particlefx.EMITTER_STATE_SPAWNING`
|
|
1460
|
+
* - `particlefx.EMITTER_STATE_POSTSPAWN`
|
|
1461
1461
|
* @example
|
|
1462
1462
|
* ```lua
|
|
1463
1463
|
* How to play a particle fx when a gui node is created.
|
|
@@ -1538,8 +1538,8 @@ declare global {
|
|
|
1538
1538
|
* @param property - the property to set
|
|
1539
1539
|
* @param value - the property to set
|
|
1540
1540
|
* @param options - optional options table (only applicable for material constants)
|
|
1541
|
-
|
|
1542
|
-
|
|
1541
|
+
* - `index` number index into array property (1 based)
|
|
1542
|
+
* - `key` hash name of internal property
|
|
1543
1543
|
* @example
|
|
1544
1544
|
* ```lua
|
|
1545
1545
|
* Updates the position property on an existing node:
|
|
@@ -1594,9 +1594,9 @@ declare global {
|
|
|
1594
1594
|
*
|
|
1595
1595
|
* @param node - node to set adjust mode for
|
|
1596
1596
|
* @param adjust_mode - adjust mode to set
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1597
|
+
* - `gui.ADJUST_FIT`
|
|
1598
|
+
* - `gui.ADJUST_ZOOM`
|
|
1599
|
+
* - `gui.ADJUST_STRETCH`
|
|
1600
1600
|
*/
|
|
1601
1601
|
function set_adjust_mode(node: Opaque<"node">, adjust_mode: Opaque<"constant">): void;
|
|
1602
1602
|
/**
|
|
@@ -1612,11 +1612,11 @@ declare global {
|
|
|
1612
1612
|
*
|
|
1613
1613
|
* @param node - node to set blend mode for
|
|
1614
1614
|
* @param blend_mode - blend mode to set
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1615
|
+
* - `gui.BLEND_ALPHA`
|
|
1616
|
+
* - `gui.BLEND_ADD`
|
|
1617
|
+
* - `gui.BLEND_ADD_ALPHA`
|
|
1618
|
+
* - `gui.BLEND_MULT`
|
|
1619
|
+
* - `gui.BLEND_SCREEN`
|
|
1620
1620
|
*/
|
|
1621
1621
|
function set_blend_mode(node: Opaque<"node">, blend_mode: Opaque<"constant">): void;
|
|
1622
1622
|
/**
|
|
@@ -1631,8 +1631,8 @@ declare global {
|
|
|
1631
1631
|
*
|
|
1632
1632
|
* @param node - node to set clipping mode for
|
|
1633
1633
|
* @param clipping_mode - clipping mode to set
|
|
1634
|
-
|
|
1635
|
-
|
|
1634
|
+
* - `gui.CLIPPING_MODE_NONE`
|
|
1635
|
+
* - `gui.CLIPPING_MODE_STENCIL`
|
|
1636
1636
|
*/
|
|
1637
1637
|
function set_clipping_mode(node: Opaque<"node">, clipping_mode: Opaque<"constant">): void;
|
|
1638
1638
|
/**
|
|
@@ -1792,8 +1792,8 @@ declare global {
|
|
|
1792
1792
|
*
|
|
1793
1793
|
* @param node - node for which to set the outer bounds mode
|
|
1794
1794
|
* @param bounds_mode - the outer bounds mode of the pie node:
|
|
1795
|
-
|
|
1796
|
-
|
|
1795
|
+
* - `gui.PIEBOUNDS_RECTANGLE`
|
|
1796
|
+
* - `gui.PIEBOUNDS_ELLIPSE`
|
|
1797
1797
|
*/
|
|
1798
1798
|
function set_outer_bounds(node: Opaque<"node">, bounds_mode: Opaque<"constant">): void;
|
|
1799
1799
|
/**
|
|
@@ -1831,15 +1831,15 @@ declare global {
|
|
|
1831
1831
|
*
|
|
1832
1832
|
* @param node - node to set pivot for
|
|
1833
1833
|
* @param pivot - pivot constant
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1834
|
+
* - `gui.PIVOT_CENTER`
|
|
1835
|
+
* - `gui.PIVOT_N`
|
|
1836
|
+
* - `gui.PIVOT_NE`
|
|
1837
|
+
* - `gui.PIVOT_E`
|
|
1838
|
+
* - `gui.PIVOT_SE`
|
|
1839
|
+
* - `gui.PIVOT_S`
|
|
1840
|
+
* - `gui.PIVOT_SW`
|
|
1841
|
+
* - `gui.PIVOT_W`
|
|
1842
|
+
* - `gui.PIVOT_NW`
|
|
1843
1843
|
*/
|
|
1844
1844
|
function set_pivot(node: Opaque<"node">, pivot: Opaque<"constant">): void;
|
|
1845
1845
|
/**
|
|
@@ -1871,10 +1871,10 @@ declare global {
|
|
|
1871
1871
|
* Sets how the safe area is applied to this gui scene.
|
|
1872
1872
|
*
|
|
1873
1873
|
* @param mode - safe area mode
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1874
|
+
* - `gui.SAFE_AREA_NONE`
|
|
1875
|
+
* - `gui.SAFE_AREA_LONG`
|
|
1876
|
+
* - `gui.SAFE_AREA_SHORT`
|
|
1877
|
+
* - `gui.SAFE_AREA_BOTH`
|
|
1878
1878
|
*/
|
|
1879
1879
|
function set_safe_area_mode(mode: Opaque<"constant">): void;
|
|
1880
1880
|
/**
|
|
@@ -1917,8 +1917,8 @@ declare global {
|
|
|
1917
1917
|
*
|
|
1918
1918
|
* @param node - node to set size mode for
|
|
1919
1919
|
* @param size_mode - size mode to set
|
|
1920
|
-
|
|
1921
|
-
|
|
1920
|
+
* - `gui.SIZE_MODE_MANUAL`
|
|
1921
|
+
* - `gui.SIZE_MODE_AUTO`
|
|
1922
1922
|
*/
|
|
1923
1923
|
function set_size_mode(node: Opaque<"node">, size_mode: Opaque<"constant">): void;
|
|
1924
1924
|
/**
|
|
@@ -1974,10 +1974,10 @@ declare global {
|
|
|
1974
1974
|
* @param width - texture width
|
|
1975
1975
|
* @param height - texture height
|
|
1976
1976
|
* @param type - texture type
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1977
|
+
* - `"rgb"` - RGB
|
|
1978
|
+
* - `"rgba"` - RGBA
|
|
1979
|
+
* - `"l"` - LUMINANCE
|
|
1980
|
+
* - `"astc"` - ASTC compressed format
|
|
1981
1981
|
* @param buffer - texture data
|
|
1982
1982
|
* @param flip - flip texture vertically
|
|
1983
1983
|
* @returns setting the data was successful
|
|
@@ -2029,9 +2029,9 @@ declare global {
|
|
|
2029
2029
|
*
|
|
2030
2030
|
* @param node - node to set x-anchor for
|
|
2031
2031
|
* @param anchor - anchor constant
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2032
|
+
* - `gui.ANCHOR_NONE`
|
|
2033
|
+
* - `gui.ANCHOR_LEFT`
|
|
2034
|
+
* - `gui.ANCHOR_RIGHT`
|
|
2035
2035
|
*/
|
|
2036
2036
|
function set_xanchor(node: Opaque<"node">, anchor: Opaque<"constant">): void;
|
|
2037
2037
|
/**
|
|
@@ -2039,9 +2039,9 @@ declare global {
|
|
|
2039
2039
|
*
|
|
2040
2040
|
* @param node - node to set y-anchor for
|
|
2041
2041
|
* @param anchor - anchor constant
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2042
|
+
* - `gui.ANCHOR_NONE`
|
|
2043
|
+
* - `gui.ANCHOR_TOP`
|
|
2044
|
+
* - `gui.ANCHOR_BOTTOM`
|
|
2045
2045
|
*/
|
|
2046
2046
|
function set_yanchor(node: Opaque<"node">, anchor: Opaque<"constant">): void;
|
|
2047
2047
|
/**
|
|
@@ -2051,10 +2051,10 @@ declare global {
|
|
|
2051
2051
|
* This function is only available on iOS and Android. .
|
|
2052
2052
|
*
|
|
2053
2053
|
* @param type - keyboard type
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2054
|
+
* - `gui.KEYBOARD_TYPE_DEFAULT`
|
|
2055
|
+
* - `gui.KEYBOARD_TYPE_EMAIL`
|
|
2056
|
+
* - `gui.KEYBOARD_TYPE_NUMBER_PAD`
|
|
2057
|
+
* - `gui.KEYBOARD_TYPE_PASSWORD`
|
|
2058
2058
|
* @param autoclose - if the keyboard should automatically close when clicking outside
|
|
2059
2059
|
*/
|
|
2060
2060
|
function show_keyboard(type: Opaque<"constant">, autoclose: boolean): void;
|
|
@@ -2063,7 +2063,7 @@ declare global {
|
|
|
2063
2063
|
*
|
|
2064
2064
|
* @param node - node to stop particle fx for
|
|
2065
2065
|
* @param options - options when stopping the particle fx. Supported options:
|
|
2066
|
-
|
|
2066
|
+
* - boolean `clear`: instantly clear spawned particles
|
|
2067
2067
|
*/
|
|
2068
2068
|
function stop_particlefx(node: Opaque<"node">, options?: { clear?: boolean }): void;
|
|
2069
2069
|
/**
|