@defold-typescript/library-types 0.20.8 → 0.21.1
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/api-doc/decore.json +1883 -0
- package/api-doc/druid.json +11818 -0
- package/generated/decore.d.ts +228 -0
- package/generated/druid.d.ts +2067 -0
- package/luals-targets.json +28 -0
- package/package.json +6 -3
- package/scripts/__snapshots__/emit-library-dts.test.ts.snap +22 -0
- package/scripts/__snapshots__/parse-luals.test.ts.snap +127 -1006
- package/scripts/emit-library-dts.ts +252 -0
- package/scripts/lower-api-doc.ts +115 -0
- package/scripts/luals-fidelity.ts +31 -10
- package/scripts/map-luals-types.ts +65 -0
- package/scripts/parse-luals.ts +60 -11
- package/scripts/sync-luals-types.ts +70 -7
|
@@ -9301,9 +9301,9 @@ Create layout component with druid: \`layout = druid:new_layout(node, layout_typ
|
|
|
9301
9301
|
"doc": "",
|
|
9302
9302
|
"isOptional": false,
|
|
9303
9303
|
"isVararg": false,
|
|
9304
|
-
"name": "
|
|
9304
|
+
"name": "",
|
|
9305
9305
|
"types": [
|
|
9306
|
-
"number,",
|
|
9306
|
+
"number, number",
|
|
9307
9307
|
],
|
|
9308
9308
|
},
|
|
9309
9309
|
],
|
|
@@ -10961,46 +10961,6 @@ You can use these functions in your projects as well."
|
|
|
10961
10961
|
"fun(message: string, context: any)",
|
|
10962
10962
|
],
|
|
10963
10963
|
},
|
|
10964
|
-
{
|
|
10965
|
-
"doc": "",
|
|
10966
|
-
"isOptional": false,
|
|
10967
|
-
"name": "trace",
|
|
10968
|
-
"types": [
|
|
10969
|
-
"fun(_, msg: string, data: any)",
|
|
10970
|
-
],
|
|
10971
|
-
},
|
|
10972
|
-
{
|
|
10973
|
-
"doc": "",
|
|
10974
|
-
"isOptional": false,
|
|
10975
|
-
"name": "debug",
|
|
10976
|
-
"types": [
|
|
10977
|
-
"fun(_, msg: string, data: any)",
|
|
10978
|
-
],
|
|
10979
|
-
},
|
|
10980
|
-
{
|
|
10981
|
-
"doc": "",
|
|
10982
|
-
"isOptional": false,
|
|
10983
|
-
"name": "info",
|
|
10984
|
-
"types": [
|
|
10985
|
-
"fun(_, msg: string, data: any)",
|
|
10986
|
-
],
|
|
10987
|
-
},
|
|
10988
|
-
{
|
|
10989
|
-
"doc": "",
|
|
10990
|
-
"isOptional": false,
|
|
10991
|
-
"name": "warn",
|
|
10992
|
-
"types": [
|
|
10993
|
-
"fun(_, msg: string, data: any)",
|
|
10994
|
-
],
|
|
10995
|
-
},
|
|
10996
|
-
{
|
|
10997
|
-
"doc": "",
|
|
10998
|
-
"isOptional": false,
|
|
10999
|
-
"name": "error",
|
|
11000
|
-
"types": [
|
|
11001
|
-
"fun(_, msg: string, data: any)",
|
|
11002
|
-
],
|
|
11003
|
-
},
|
|
11004
10964
|
],
|
|
11005
10965
|
"generics": [],
|
|
11006
10966
|
"methods": [],
|
|
@@ -12928,12 +12888,12 @@ If color_id is not found in palette and not a hex string, returns white."
|
|
|
12928
12888
|
],
|
|
12929
12889
|
"returns": [
|
|
12930
12890
|
{
|
|
12931
|
-
"doc": "
|
|
12891
|
+
"doc": "",
|
|
12932
12892
|
"isOptional": false,
|
|
12933
12893
|
"isVararg": false,
|
|
12934
12894
|
"name": "",
|
|
12935
12895
|
"types": [
|
|
12936
|
-
"number,",
|
|
12896
|
+
"number, number, number",
|
|
12937
12897
|
],
|
|
12938
12898
|
},
|
|
12939
12899
|
],
|
|
@@ -13018,12 +12978,12 @@ If color_id is not found in palette and not a hex string, returns white."
|
|
|
13018
12978
|
],
|
|
13019
12979
|
"returns": [
|
|
13020
12980
|
{
|
|
13021
|
-
"doc": "
|
|
12981
|
+
"doc": "",
|
|
13022
12982
|
"isOptional": false,
|
|
13023
12983
|
"isVararg": false,
|
|
13024
12984
|
"name": "",
|
|
13025
12985
|
"types": [
|
|
13026
|
-
"number,",
|
|
12986
|
+
"number, number, number, number",
|
|
13027
12987
|
],
|
|
13028
12988
|
},
|
|
13029
12989
|
],
|
|
@@ -13072,12 +13032,12 @@ If color_id is not found in palette and not a hex string, returns white."
|
|
|
13072
13032
|
],
|
|
13073
13033
|
"returns": [
|
|
13074
13034
|
{
|
|
13075
|
-
"doc": "
|
|
13035
|
+
"doc": "",
|
|
13076
13036
|
"isOptional": false,
|
|
13077
13037
|
"isVararg": false,
|
|
13078
13038
|
"name": "",
|
|
13079
13039
|
"types": [
|
|
13080
|
-
"number,",
|
|
13040
|
+
"number, number, number, number|nil",
|
|
13081
13041
|
],
|
|
13082
13042
|
},
|
|
13083
13043
|
],
|
|
@@ -13216,198 +13176,145 @@ If color_id is not found in palette and not a hex string, returns white."
|
|
|
13216
13176
|
],
|
|
13217
13177
|
},
|
|
13218
13178
|
{
|
|
13219
|
-
"brief":
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
"returns": [],
|
|
13224
|
-
},
|
|
13225
|
-
{
|
|
13226
|
-
"brief": "",
|
|
13227
|
-
"generics": [],
|
|
13228
|
-
"name": "set_selection_width",
|
|
13229
|
-
"params": [],
|
|
13230
|
-
"returns": [],
|
|
13231
|
-
},
|
|
13232
|
-
{
|
|
13233
|
-
"brief": "",
|
|
13179
|
+
"brief":
|
|
13180
|
+
"Get the length of a text ignoring any tags except image tags
|
|
13181
|
+
which are treated as having a length of 1"
|
|
13182
|
+
,
|
|
13234
13183
|
"generics": [],
|
|
13235
|
-
"name": "
|
|
13184
|
+
"name": "length",
|
|
13236
13185
|
"params": [
|
|
13237
13186
|
{
|
|
13238
|
-
"doc": "",
|
|
13187
|
+
"doc": "String with text or a list of words (from richtext.create)",
|
|
13239
13188
|
"isOptional": false,
|
|
13240
13189
|
"isVararg": false,
|
|
13241
|
-
"name": "
|
|
13190
|
+
"name": "text",
|
|
13242
13191
|
"types": [
|
|
13243
|
-
"
|
|
13192
|
+
"string|table<string, any>",
|
|
13193
|
+
],
|
|
13194
|
+
},
|
|
13195
|
+
],
|
|
13196
|
+
"returns": [
|
|
13197
|
+
{
|
|
13198
|
+
"doc": "Length of text",
|
|
13199
|
+
"isOptional": false,
|
|
13200
|
+
"isVararg": false,
|
|
13201
|
+
"name": "",
|
|
13202
|
+
"types": [
|
|
13203
|
+
"number",
|
|
13244
13204
|
],
|
|
13245
13205
|
},
|
|
13246
13206
|
],
|
|
13247
|
-
"returns": [],
|
|
13248
|
-
},
|
|
13249
|
-
{
|
|
13250
|
-
"brief": "",
|
|
13251
|
-
"generics": [],
|
|
13252
|
-
"name": "on_select",
|
|
13253
|
-
"params": [],
|
|
13254
|
-
"returns": [],
|
|
13255
|
-
},
|
|
13256
|
-
{
|
|
13257
|
-
"brief": "",
|
|
13258
|
-
"generics": [],
|
|
13259
|
-
"name": "on_unselect",
|
|
13260
|
-
"params": [],
|
|
13261
|
-
"returns": [],
|
|
13262
|
-
},
|
|
13263
|
-
{
|
|
13264
|
-
"brief": "Update selection",
|
|
13265
|
-
"generics": [],
|
|
13266
|
-
"name": "update_selection",
|
|
13267
|
-
"params": [],
|
|
13268
|
-
"returns": [],
|
|
13269
|
-
},
|
|
13270
|
-
{
|
|
13271
|
-
"brief": "",
|
|
13272
|
-
"generics": [],
|
|
13273
|
-
"name": "get_index_by_touch",
|
|
13274
|
-
"params": [],
|
|
13275
|
-
"returns": [],
|
|
13276
|
-
},
|
|
13277
|
-
{
|
|
13278
|
-
"brief": "",
|
|
13279
|
-
"generics": [],
|
|
13280
|
-
"name": "on_touch_start_callback",
|
|
13281
|
-
"params": [],
|
|
13282
|
-
"returns": [],
|
|
13283
13207
|
},
|
|
13284
13208
|
{
|
|
13285
13209
|
"brief": "",
|
|
13286
13210
|
"generics": [],
|
|
13287
|
-
"name": "
|
|
13211
|
+
"name": "create",
|
|
13288
13212
|
"params": [
|
|
13289
13213
|
{
|
|
13290
|
-
"doc": "",
|
|
13214
|
+
"doc": "The text to create rich text nodes from",
|
|
13291
13215
|
"isOptional": false,
|
|
13292
13216
|
"isVararg": false,
|
|
13293
|
-
"name": "
|
|
13217
|
+
"name": "text",
|
|
13294
13218
|
"types": [
|
|
13295
|
-
"
|
|
13219
|
+
"string",
|
|
13296
13220
|
],
|
|
13297
13221
|
},
|
|
13298
13222
|
{
|
|
13299
|
-
"doc": "
|
|
13223
|
+
"doc": "Optional settings table (refer to documentation for details)",
|
|
13300
13224
|
"isOptional": false,
|
|
13301
13225
|
"isVararg": false,
|
|
13302
|
-
"name": "
|
|
13226
|
+
"name": "settings",
|
|
13303
13227
|
"types": [
|
|
13304
|
-
"
|
|
13228
|
+
"table",
|
|
13305
13229
|
],
|
|
13306
13230
|
},
|
|
13307
13231
|
{
|
|
13308
|
-
"doc": "
|
|
13232
|
+
"doc": "",
|
|
13309
13233
|
"isOptional": false,
|
|
13310
13234
|
"isVararg": false,
|
|
13311
|
-
"name": "
|
|
13235
|
+
"name": "style",
|
|
13312
13236
|
"types": [
|
|
13313
|
-
"
|
|
13237
|
+
"druid.rich_text.style",
|
|
13314
13238
|
],
|
|
13315
13239
|
},
|
|
13240
|
+
],
|
|
13241
|
+
"returns": [
|
|
13316
13242
|
{
|
|
13317
|
-
"doc": "
|
|
13243
|
+
"doc": "",
|
|
13318
13244
|
"isOptional": false,
|
|
13319
13245
|
"isVararg": false,
|
|
13320
|
-
"name": "
|
|
13246
|
+
"name": "",
|
|
13321
13247
|
"types": [
|
|
13322
|
-
"
|
|
13248
|
+
"druid.rich_text.word[]",
|
|
13323
13249
|
],
|
|
13324
13250
|
},
|
|
13325
13251
|
{
|
|
13326
|
-
"doc": "
|
|
13252
|
+
"doc": "",
|
|
13327
13253
|
"isOptional": false,
|
|
13328
13254
|
"isVararg": false,
|
|
13329
|
-
"name": "
|
|
13255
|
+
"name": "",
|
|
13330
13256
|
"types": [
|
|
13331
|
-
"
|
|
13257
|
+
"druid.rich_text.settings",
|
|
13332
13258
|
],
|
|
13333
13259
|
},
|
|
13334
13260
|
{
|
|
13335
|
-
"doc": "
|
|
13261
|
+
"doc": "",
|
|
13336
13262
|
"isOptional": false,
|
|
13337
13263
|
"isVararg": false,
|
|
13338
|
-
"name": "
|
|
13264
|
+
"name": "",
|
|
13339
13265
|
"types": [
|
|
13340
|
-
"
|
|
13266
|
+
"druid.rich_text.lines_metrics",
|
|
13341
13267
|
],
|
|
13342
13268
|
},
|
|
13343
13269
|
],
|
|
13344
|
-
"returns": [],
|
|
13345
|
-
},
|
|
13346
|
-
{
|
|
13347
|
-
"brief": "",
|
|
13348
|
-
"generics": [],
|
|
13349
|
-
"name": "ltrim",
|
|
13350
|
-
"params": [],
|
|
13351
|
-
"returns": [],
|
|
13352
13270
|
},
|
|
13353
13271
|
{
|
|
13354
13272
|
"brief": "",
|
|
13355
13273
|
"generics": [],
|
|
13356
|
-
"name": "
|
|
13357
|
-
"params": [],
|
|
13358
|
-
"returns": [],
|
|
13359
|
-
},
|
|
13360
|
-
{
|
|
13361
|
-
"brief":
|
|
13362
|
-
"Get the length of a text ignoring any tags except image tags
|
|
13363
|
-
which are treated as having a length of 1"
|
|
13364
|
-
,
|
|
13365
|
-
"generics": [],
|
|
13366
|
-
"name": "length",
|
|
13274
|
+
"name": "_fill_properties",
|
|
13367
13275
|
"params": [
|
|
13368
13276
|
{
|
|
13369
|
-
"doc": "
|
|
13277
|
+
"doc": "",
|
|
13370
13278
|
"isOptional": false,
|
|
13371
13279
|
"isVararg": false,
|
|
13372
|
-
"name": "
|
|
13280
|
+
"name": "word",
|
|
13373
13281
|
"types": [
|
|
13374
|
-
"
|
|
13282
|
+
"druid.rich_text.word",
|
|
13375
13283
|
],
|
|
13376
13284
|
},
|
|
13377
|
-
],
|
|
13378
|
-
"returns": [
|
|
13379
13285
|
{
|
|
13380
|
-
"doc": "
|
|
13286
|
+
"doc": "",
|
|
13381
13287
|
"isOptional": false,
|
|
13382
13288
|
"isVararg": false,
|
|
13383
|
-
"name": "",
|
|
13289
|
+
"name": "metrics",
|
|
13384
13290
|
"types": [
|
|
13385
|
-
"
|
|
13291
|
+
"druid.rich_text.metrics",
|
|
13386
13292
|
],
|
|
13387
13293
|
},
|
|
13388
|
-
],
|
|
13389
|
-
},
|
|
13390
|
-
{
|
|
13391
|
-
"brief": "",
|
|
13392
|
-
"generics": [],
|
|
13393
|
-
"name": "get_text_metrics",
|
|
13394
|
-
"params": [
|
|
13395
13294
|
{
|
|
13396
13295
|
"doc": "",
|
|
13397
13296
|
"isOptional": false,
|
|
13398
13297
|
"isVararg": false,
|
|
13399
|
-
"name": "
|
|
13298
|
+
"name": "settings",
|
|
13400
13299
|
"types": [
|
|
13401
|
-
"druid.rich_text.
|
|
13300
|
+
"druid.rich_text.settings",
|
|
13402
13301
|
],
|
|
13403
13302
|
},
|
|
13303
|
+
],
|
|
13304
|
+
"returns": [],
|
|
13305
|
+
},
|
|
13306
|
+
{
|
|
13307
|
+
"brief": "",
|
|
13308
|
+
"generics": [],
|
|
13309
|
+
"name": "_split_on_lines",
|
|
13310
|
+
"params": [
|
|
13404
13311
|
{
|
|
13405
13312
|
"doc": "",
|
|
13406
13313
|
"isOptional": false,
|
|
13407
13314
|
"isVararg": false,
|
|
13408
|
-
"name": "
|
|
13315
|
+
"name": "words",
|
|
13409
13316
|
"types": [
|
|
13410
|
-
"druid.rich_text.word
|
|
13317
|
+
"druid.rich_text.word[]",
|
|
13411
13318
|
],
|
|
13412
13319
|
},
|
|
13413
13320
|
{
|
|
@@ -13427,7 +13334,7 @@ which are treated as having a length of 1"
|
|
|
13427
13334
|
"isVararg": false,
|
|
13428
13335
|
"name": "",
|
|
13429
13336
|
"types": [
|
|
13430
|
-
"druid.rich_text.
|
|
13337
|
+
"druid.rich_text.word[][]",
|
|
13431
13338
|
],
|
|
13432
13339
|
},
|
|
13433
13340
|
],
|
|
@@ -13435,15 +13342,15 @@ which are treated as having a length of 1"
|
|
|
13435
13342
|
{
|
|
13436
13343
|
"brief": "",
|
|
13437
13344
|
"generics": [],
|
|
13438
|
-
"name": "
|
|
13345
|
+
"name": "_position_lines",
|
|
13439
13346
|
"params": [
|
|
13440
13347
|
{
|
|
13441
13348
|
"doc": "",
|
|
13442
13349
|
"isOptional": false,
|
|
13443
13350
|
"isVararg": false,
|
|
13444
|
-
"name": "
|
|
13351
|
+
"name": "lines",
|
|
13445
13352
|
"types": [
|
|
13446
|
-
"druid.rich_text.word",
|
|
13353
|
+
"druid.rich_text.word[][]",
|
|
13447
13354
|
],
|
|
13448
13355
|
},
|
|
13449
13356
|
{
|
|
@@ -13463,7 +13370,7 @@ which are treated as having a length of 1"
|
|
|
13463
13370
|
"isVararg": false,
|
|
13464
13371
|
"name": "",
|
|
13465
13372
|
"types": [
|
|
13466
|
-
"druid.rich_text.
|
|
13373
|
+
"druid.rich_text.lines_metrics",
|
|
13467
13374
|
],
|
|
13468
13375
|
},
|
|
13469
13376
|
],
|
|
@@ -13471,15 +13378,15 @@ which are treated as having a length of 1"
|
|
|
13471
13378
|
{
|
|
13472
13379
|
"brief": "",
|
|
13473
13380
|
"generics": [],
|
|
13474
|
-
"name": "
|
|
13381
|
+
"name": "_get_lines_metrics",
|
|
13475
13382
|
"params": [
|
|
13476
13383
|
{
|
|
13477
13384
|
"doc": "",
|
|
13478
13385
|
"isOptional": false,
|
|
13479
13386
|
"isVararg": false,
|
|
13480
|
-
"name": "
|
|
13387
|
+
"name": "lines",
|
|
13481
13388
|
"types": [
|
|
13482
|
-
"druid.rich_text.word",
|
|
13389
|
+
"druid.rich_text.word[][]",
|
|
13483
13390
|
],
|
|
13484
13391
|
},
|
|
13485
13392
|
{
|
|
@@ -13491,15 +13398,6 @@ which are treated as having a length of 1"
|
|
|
13491
13398
|
"druid.rich_text.settings",
|
|
13492
13399
|
],
|
|
13493
13400
|
},
|
|
13494
|
-
{
|
|
13495
|
-
"doc": "",
|
|
13496
|
-
"isOptional": false,
|
|
13497
|
-
"isVararg": false,
|
|
13498
|
-
"name": "previous_word",
|
|
13499
|
-
"types": [
|
|
13500
|
-
"druid.rich_text.word|nil",
|
|
13501
|
-
],
|
|
13502
|
-
},
|
|
13503
13401
|
],
|
|
13504
13402
|
"returns": [
|
|
13505
13403
|
{
|
|
@@ -13508,7 +13406,7 @@ which are treated as having a length of 1"
|
|
|
13508
13406
|
"isVararg": false,
|
|
13509
13407
|
"name": "",
|
|
13510
13408
|
"types": [
|
|
13511
|
-
"druid.rich_text.
|
|
13409
|
+
"druid.rich_text.lines_metrics",
|
|
13512
13410
|
],
|
|
13513
13411
|
},
|
|
13514
13412
|
],
|
|
@@ -13516,55 +13414,63 @@ which are treated as having a length of 1"
|
|
|
13516
13414
|
{
|
|
13517
13415
|
"brief": "",
|
|
13518
13416
|
"generics": [],
|
|
13519
|
-
"name": "
|
|
13417
|
+
"name": "_update_nodes",
|
|
13520
13418
|
"params": [
|
|
13521
13419
|
{
|
|
13522
|
-
"doc": "
|
|
13420
|
+
"doc": "",
|
|
13523
13421
|
"isOptional": false,
|
|
13524
13422
|
"isVararg": false,
|
|
13525
|
-
"name": "
|
|
13423
|
+
"name": "lines",
|
|
13526
13424
|
"types": [
|
|
13527
|
-
"
|
|
13425
|
+
"druid.rich_text.word[][]",
|
|
13528
13426
|
],
|
|
13529
13427
|
},
|
|
13530
13428
|
{
|
|
13531
|
-
"doc": "
|
|
13429
|
+
"doc": "",
|
|
13532
13430
|
"isOptional": false,
|
|
13533
13431
|
"isVararg": false,
|
|
13534
13432
|
"name": "settings",
|
|
13535
13433
|
"types": [
|
|
13536
|
-
"
|
|
13434
|
+
"druid.rich_text.settings",
|
|
13537
13435
|
],
|
|
13538
13436
|
},
|
|
13437
|
+
],
|
|
13438
|
+
"returns": [],
|
|
13439
|
+
},
|
|
13440
|
+
{
|
|
13441
|
+
"brief": "",
|
|
13442
|
+
"generics": [],
|
|
13443
|
+
"name": "set_text_scale",
|
|
13444
|
+
"params": [
|
|
13539
13445
|
{
|
|
13540
13446
|
"doc": "",
|
|
13541
13447
|
"isOptional": false,
|
|
13542
13448
|
"isVararg": false,
|
|
13543
|
-
"name": "
|
|
13449
|
+
"name": "words",
|
|
13544
13450
|
"types": [
|
|
13545
|
-
"druid.rich_text.
|
|
13451
|
+
"druid.rich_text.word[]",
|
|
13546
13452
|
],
|
|
13547
13453
|
},
|
|
13548
|
-
],
|
|
13549
|
-
"returns": [
|
|
13550
13454
|
{
|
|
13551
13455
|
"doc": "",
|
|
13552
13456
|
"isOptional": false,
|
|
13553
13457
|
"isVararg": false,
|
|
13554
|
-
"name": "",
|
|
13458
|
+
"name": "settings",
|
|
13555
13459
|
"types": [
|
|
13556
|
-
"druid.rich_text.
|
|
13460
|
+
"druid.rich_text.settings",
|
|
13557
13461
|
],
|
|
13558
13462
|
},
|
|
13559
13463
|
{
|
|
13560
13464
|
"doc": "",
|
|
13561
13465
|
"isOptional": false,
|
|
13562
13466
|
"isVararg": false,
|
|
13563
|
-
"name": "",
|
|
13467
|
+
"name": "scale",
|
|
13564
13468
|
"types": [
|
|
13565
|
-
"
|
|
13469
|
+
"number",
|
|
13566
13470
|
],
|
|
13567
13471
|
},
|
|
13472
|
+
],
|
|
13473
|
+
"returns": [
|
|
13568
13474
|
{
|
|
13569
13475
|
"doc": "",
|
|
13570
13476
|
"isOptional": false,
|
|
@@ -13579,236 +13485,22 @@ which are treated as having a length of 1"
|
|
|
13579
13485
|
{
|
|
13580
13486
|
"brief": "",
|
|
13581
13487
|
"generics": [],
|
|
13582
|
-
"name": "
|
|
13488
|
+
"name": "adjust_to_area",
|
|
13583
13489
|
"params": [
|
|
13584
13490
|
{
|
|
13585
13491
|
"doc": "",
|
|
13586
13492
|
"isOptional": false,
|
|
13587
13493
|
"isVararg": false,
|
|
13588
|
-
"name": "
|
|
13494
|
+
"name": "words",
|
|
13589
13495
|
"types": [
|
|
13590
|
-
"druid.rich_text.word",
|
|
13496
|
+
"druid.rich_text.word[]",
|
|
13591
13497
|
],
|
|
13592
13498
|
},
|
|
13593
13499
|
{
|
|
13594
13500
|
"doc": "",
|
|
13595
13501
|
"isOptional": false,
|
|
13596
13502
|
"isVararg": false,
|
|
13597
|
-
"name": "
|
|
13598
|
-
"types": [
|
|
13599
|
-
"druid.rich_text.metrics",
|
|
13600
|
-
],
|
|
13601
|
-
},
|
|
13602
|
-
{
|
|
13603
|
-
"doc": "",
|
|
13604
|
-
"isOptional": false,
|
|
13605
|
-
"isVararg": false,
|
|
13606
|
-
"name": "settings",
|
|
13607
|
-
"types": [
|
|
13608
|
-
"druid.rich_text.settings",
|
|
13609
|
-
],
|
|
13610
|
-
},
|
|
13611
|
-
],
|
|
13612
|
-
"returns": [],
|
|
13613
|
-
},
|
|
13614
|
-
{
|
|
13615
|
-
"brief": "",
|
|
13616
|
-
"generics": [],
|
|
13617
|
-
"name": "_split_on_lines",
|
|
13618
|
-
"params": [
|
|
13619
|
-
{
|
|
13620
|
-
"doc": "",
|
|
13621
|
-
"isOptional": false,
|
|
13622
|
-
"isVararg": false,
|
|
13623
|
-
"name": "words",
|
|
13624
|
-
"types": [
|
|
13625
|
-
"druid.rich_text.word[]",
|
|
13626
|
-
],
|
|
13627
|
-
},
|
|
13628
|
-
{
|
|
13629
|
-
"doc": "",
|
|
13630
|
-
"isOptional": false,
|
|
13631
|
-
"isVararg": false,
|
|
13632
|
-
"name": "settings",
|
|
13633
|
-
"types": [
|
|
13634
|
-
"druid.rich_text.settings",
|
|
13635
|
-
],
|
|
13636
|
-
},
|
|
13637
|
-
],
|
|
13638
|
-
"returns": [
|
|
13639
|
-
{
|
|
13640
|
-
"doc": "",
|
|
13641
|
-
"isOptional": false,
|
|
13642
|
-
"isVararg": false,
|
|
13643
|
-
"name": "",
|
|
13644
|
-
"types": [
|
|
13645
|
-
"druid.rich_text.word[][]",
|
|
13646
|
-
],
|
|
13647
|
-
},
|
|
13648
|
-
],
|
|
13649
|
-
},
|
|
13650
|
-
{
|
|
13651
|
-
"brief": "",
|
|
13652
|
-
"generics": [],
|
|
13653
|
-
"name": "_position_lines",
|
|
13654
|
-
"params": [
|
|
13655
|
-
{
|
|
13656
|
-
"doc": "",
|
|
13657
|
-
"isOptional": false,
|
|
13658
|
-
"isVararg": false,
|
|
13659
|
-
"name": "lines",
|
|
13660
|
-
"types": [
|
|
13661
|
-
"druid.rich_text.word[][]",
|
|
13662
|
-
],
|
|
13663
|
-
},
|
|
13664
|
-
{
|
|
13665
|
-
"doc": "",
|
|
13666
|
-
"isOptional": false,
|
|
13667
|
-
"isVararg": false,
|
|
13668
|
-
"name": "settings",
|
|
13669
|
-
"types": [
|
|
13670
|
-
"druid.rich_text.settings",
|
|
13671
|
-
],
|
|
13672
|
-
},
|
|
13673
|
-
],
|
|
13674
|
-
"returns": [
|
|
13675
|
-
{
|
|
13676
|
-
"doc": "",
|
|
13677
|
-
"isOptional": false,
|
|
13678
|
-
"isVararg": false,
|
|
13679
|
-
"name": "",
|
|
13680
|
-
"types": [
|
|
13681
|
-
"druid.rich_text.lines_metrics",
|
|
13682
|
-
],
|
|
13683
|
-
},
|
|
13684
|
-
],
|
|
13685
|
-
},
|
|
13686
|
-
{
|
|
13687
|
-
"brief": "",
|
|
13688
|
-
"generics": [],
|
|
13689
|
-
"name": "_get_lines_metrics",
|
|
13690
|
-
"params": [
|
|
13691
|
-
{
|
|
13692
|
-
"doc": "",
|
|
13693
|
-
"isOptional": false,
|
|
13694
|
-
"isVararg": false,
|
|
13695
|
-
"name": "lines",
|
|
13696
|
-
"types": [
|
|
13697
|
-
"druid.rich_text.word[][]",
|
|
13698
|
-
],
|
|
13699
|
-
},
|
|
13700
|
-
{
|
|
13701
|
-
"doc": "",
|
|
13702
|
-
"isOptional": false,
|
|
13703
|
-
"isVararg": false,
|
|
13704
|
-
"name": "settings",
|
|
13705
|
-
"types": [
|
|
13706
|
-
"druid.rich_text.settings",
|
|
13707
|
-
],
|
|
13708
|
-
},
|
|
13709
|
-
],
|
|
13710
|
-
"returns": [
|
|
13711
|
-
{
|
|
13712
|
-
"doc": "",
|
|
13713
|
-
"isOptional": false,
|
|
13714
|
-
"isVararg": false,
|
|
13715
|
-
"name": "",
|
|
13716
|
-
"types": [
|
|
13717
|
-
"druid.rich_text.lines_metrics",
|
|
13718
|
-
],
|
|
13719
|
-
},
|
|
13720
|
-
],
|
|
13721
|
-
},
|
|
13722
|
-
{
|
|
13723
|
-
"brief": "",
|
|
13724
|
-
"generics": [],
|
|
13725
|
-
"name": "_update_nodes",
|
|
13726
|
-
"params": [
|
|
13727
|
-
{
|
|
13728
|
-
"doc": "",
|
|
13729
|
-
"isOptional": false,
|
|
13730
|
-
"isVararg": false,
|
|
13731
|
-
"name": "lines",
|
|
13732
|
-
"types": [
|
|
13733
|
-
"druid.rich_text.word[][]",
|
|
13734
|
-
],
|
|
13735
|
-
},
|
|
13736
|
-
{
|
|
13737
|
-
"doc": "",
|
|
13738
|
-
"isOptional": false,
|
|
13739
|
-
"isVararg": false,
|
|
13740
|
-
"name": "settings",
|
|
13741
|
-
"types": [
|
|
13742
|
-
"druid.rich_text.settings",
|
|
13743
|
-
],
|
|
13744
|
-
},
|
|
13745
|
-
],
|
|
13746
|
-
"returns": [],
|
|
13747
|
-
},
|
|
13748
|
-
{
|
|
13749
|
-
"brief": "",
|
|
13750
|
-
"generics": [],
|
|
13751
|
-
"name": "set_text_scale",
|
|
13752
|
-
"params": [
|
|
13753
|
-
{
|
|
13754
|
-
"doc": "",
|
|
13755
|
-
"isOptional": false,
|
|
13756
|
-
"isVararg": false,
|
|
13757
|
-
"name": "words",
|
|
13758
|
-
"types": [
|
|
13759
|
-
"druid.rich_text.word[]",
|
|
13760
|
-
],
|
|
13761
|
-
},
|
|
13762
|
-
{
|
|
13763
|
-
"doc": "",
|
|
13764
|
-
"isOptional": false,
|
|
13765
|
-
"isVararg": false,
|
|
13766
|
-
"name": "settings",
|
|
13767
|
-
"types": [
|
|
13768
|
-
"druid.rich_text.settings",
|
|
13769
|
-
],
|
|
13770
|
-
},
|
|
13771
|
-
{
|
|
13772
|
-
"doc": "",
|
|
13773
|
-
"isOptional": false,
|
|
13774
|
-
"isVararg": false,
|
|
13775
|
-
"name": "scale",
|
|
13776
|
-
"types": [
|
|
13777
|
-
"number",
|
|
13778
|
-
],
|
|
13779
|
-
},
|
|
13780
|
-
],
|
|
13781
|
-
"returns": [
|
|
13782
|
-
{
|
|
13783
|
-
"doc": "",
|
|
13784
|
-
"isOptional": false,
|
|
13785
|
-
"isVararg": false,
|
|
13786
|
-
"name": "",
|
|
13787
|
-
"types": [
|
|
13788
|
-
"druid.rich_text.lines_metrics",
|
|
13789
|
-
],
|
|
13790
|
-
},
|
|
13791
|
-
],
|
|
13792
|
-
},
|
|
13793
|
-
{
|
|
13794
|
-
"brief": "",
|
|
13795
|
-
"generics": [],
|
|
13796
|
-
"name": "adjust_to_area",
|
|
13797
|
-
"params": [
|
|
13798
|
-
{
|
|
13799
|
-
"doc": "",
|
|
13800
|
-
"isOptional": false,
|
|
13801
|
-
"isVararg": false,
|
|
13802
|
-
"name": "words",
|
|
13803
|
-
"types": [
|
|
13804
|
-
"druid.rich_text.word[]",
|
|
13805
|
-
],
|
|
13806
|
-
},
|
|
13807
|
-
{
|
|
13808
|
-
"doc": "",
|
|
13809
|
-
"isOptional": false,
|
|
13810
|
-
"isVararg": false,
|
|
13811
|
-
"name": "settings",
|
|
13503
|
+
"name": "settings",
|
|
13812
13504
|
"types": [
|
|
13813
13505
|
"druid.rich_text.settings",
|
|
13814
13506
|
],
|
|
@@ -13941,41 +13633,6 @@ which are treated as having a length of 1"
|
|
|
13941
13633
|
"params": [],
|
|
13942
13634
|
"returns": [],
|
|
13943
13635
|
},
|
|
13944
|
-
{
|
|
13945
|
-
"brief": "",
|
|
13946
|
-
"generics": [],
|
|
13947
|
-
"name": "parse_tag",
|
|
13948
|
-
"params": [],
|
|
13949
|
-
"returns": [],
|
|
13950
|
-
},
|
|
13951
|
-
{
|
|
13952
|
-
"brief": "",
|
|
13953
|
-
"generics": [],
|
|
13954
|
-
"name": "add_word",
|
|
13955
|
-
"params": [],
|
|
13956
|
-
"returns": [],
|
|
13957
|
-
},
|
|
13958
|
-
{
|
|
13959
|
-
"brief": "",
|
|
13960
|
-
"generics": [],
|
|
13961
|
-
"name": "split_line",
|
|
13962
|
-
"params": [],
|
|
13963
|
-
"returns": [],
|
|
13964
|
-
},
|
|
13965
|
-
{
|
|
13966
|
-
"brief": "",
|
|
13967
|
-
"generics": [],
|
|
13968
|
-
"name": "split_text",
|
|
13969
|
-
"params": [],
|
|
13970
|
-
"returns": [],
|
|
13971
|
-
},
|
|
13972
|
-
{
|
|
13973
|
-
"brief": "",
|
|
13974
|
-
"generics": [],
|
|
13975
|
-
"name": "merge_tags",
|
|
13976
|
-
"params": [],
|
|
13977
|
-
"returns": [],
|
|
13978
|
-
},
|
|
13979
13636
|
{
|
|
13980
13637
|
"brief": "Parse the text into individual words",
|
|
13981
13638
|
"generics": [],
|
|
@@ -14062,51 +13719,6 @@ which are treated as having a length of 1"
|
|
|
14062
13719
|
"params": [],
|
|
14063
13720
|
"returns": [],
|
|
14064
13721
|
},
|
|
14065
|
-
{
|
|
14066
|
-
"brief": "Split string at first occurrence of token",
|
|
14067
|
-
"generics": [],
|
|
14068
|
-
"name": "split",
|
|
14069
|
-
"params": [
|
|
14070
|
-
{
|
|
14071
|
-
"doc": "The string to split",
|
|
14072
|
-
"isOptional": false,
|
|
14073
|
-
"isVararg": false,
|
|
14074
|
-
"name": "s",
|
|
14075
|
-
"types": [
|
|
14076
|
-
"string?",
|
|
14077
|
-
],
|
|
14078
|
-
},
|
|
14079
|
-
{
|
|
14080
|
-
"doc": "The token to split string on",
|
|
14081
|
-
"isOptional": false,
|
|
14082
|
-
"isVararg": false,
|
|
14083
|
-
"name": "token",
|
|
14084
|
-
"types": [
|
|
14085
|
-
"string",
|
|
14086
|
-
],
|
|
14087
|
-
},
|
|
14088
|
-
],
|
|
14089
|
-
"returns": [
|
|
14090
|
-
{
|
|
14091
|
-
"doc": "The string before the token or the whole string if token doesn't exist",
|
|
14092
|
-
"isOptional": false,
|
|
14093
|
-
"isVararg": false,
|
|
14094
|
-
"name": "before",
|
|
14095
|
-
"types": [
|
|
14096
|
-
"string?",
|
|
14097
|
-
],
|
|
14098
|
-
},
|
|
14099
|
-
{
|
|
14100
|
-
"doc": "The string after the token or nil",
|
|
14101
|
-
"isOptional": false,
|
|
14102
|
-
"isVararg": false,
|
|
14103
|
-
"name": "after",
|
|
14104
|
-
"types": [
|
|
14105
|
-
"string?",
|
|
14106
|
-
],
|
|
14107
|
-
},
|
|
14108
|
-
],
|
|
14109
|
-
},
|
|
14110
13722
|
{
|
|
14111
13723
|
"brief": "Create a new Druid instance for creating GUI components.",
|
|
14112
13724
|
"generics": [],
|
|
@@ -14198,12 +13810,12 @@ The default way to create component is \`druid_instance:new(component_class, ...
|
|
|
14198
13810
|
"name": "set_text_function",
|
|
14199
13811
|
"params": [
|
|
14200
13812
|
{
|
|
14201
|
-
"doc": "
|
|
13813
|
+
"doc": "Get localized text function",
|
|
14202
13814
|
"isOptional": false,
|
|
14203
13815
|
"isVararg": false,
|
|
14204
13816
|
"name": "callback",
|
|
14205
13817
|
"types": [
|
|
14206
|
-
"fun(text_id: string):",
|
|
13818
|
+
"fun(text_id: string): string",
|
|
14207
13819
|
],
|
|
14208
13820
|
},
|
|
14209
13821
|
],
|
|
@@ -14265,36 +13877,6 @@ It will notify all Druid instances to update the lang text components."
|
|
|
14265
13877
|
},
|
|
14266
13878
|
{
|
|
14267
13879
|
"brief":
|
|
14268
|
-
"Set a widget to the current game object. The game object can acquire the widget by calling \`bindings.get_widget\`
|
|
14269
|
-
It wraps with events only top level functions cross-context, so you will have no access to nested widgets functions"
|
|
14270
|
-
,
|
|
14271
|
-
"generics": [],
|
|
14272
|
-
"name": "wrap_widget",
|
|
14273
|
-
"params": [
|
|
14274
|
-
{
|
|
14275
|
-
"doc": "",
|
|
14276
|
-
"isOptional": false,
|
|
14277
|
-
"isVararg": false,
|
|
14278
|
-
"name": "widget",
|
|
14279
|
-
"types": [
|
|
14280
|
-
"druid.widget",
|
|
14281
|
-
],
|
|
14282
|
-
},
|
|
14283
|
-
],
|
|
14284
|
-
"returns": [
|
|
14285
|
-
{
|
|
14286
|
-
"doc": "",
|
|
14287
|
-
"isOptional": false,
|
|
14288
|
-
"isVararg": false,
|
|
14289
|
-
"name": "",
|
|
14290
|
-
"types": [
|
|
14291
|
-
"druid.widget",
|
|
14292
|
-
],
|
|
14293
|
-
},
|
|
14294
|
-
],
|
|
14295
|
-
},
|
|
14296
|
-
{
|
|
14297
|
-
"brief":
|
|
14298
13880
|
"Create a widget from the bound Druid GUI instance.
|
|
14299
13881
|
The widget will be created and all widget functions can be called from Game Object contexts.
|
|
14300
13882
|
This allows using only \`druid_widget.gui_script\` for GUI files and call this widget functions from Game Object script file.
|
|
@@ -14431,86 +14013,6 @@ Only one widget can be set per game object."
|
|
|
14431
14013
|
},
|
|
14432
14014
|
],
|
|
14433
14015
|
},
|
|
14434
|
-
{
|
|
14435
|
-
"brief": "Create a backup of a file",
|
|
14436
|
-
"generics": [],
|
|
14437
|
-
"name": "create_backup",
|
|
14438
|
-
"params": [
|
|
14439
|
-
{
|
|
14440
|
-
"doc": "- The path of the file to backup",
|
|
14441
|
-
"isOptional": false,
|
|
14442
|
-
"isVararg": false,
|
|
14443
|
-
"name": "file_path",
|
|
14444
|
-
"types": [
|
|
14445
|
-
"string",
|
|
14446
|
-
],
|
|
14447
|
-
},
|
|
14448
|
-
],
|
|
14449
|
-
"returns": [
|
|
14450
|
-
{
|
|
14451
|
-
"doc": "- The backup file path, or nil if backup failed",
|
|
14452
|
-
"isOptional": false,
|
|
14453
|
-
"isVararg": false,
|
|
14454
|
-
"name": "",
|
|
14455
|
-
"types": [
|
|
14456
|
-
"string|nil",
|
|
14457
|
-
],
|
|
14458
|
-
},
|
|
14459
|
-
],
|
|
14460
|
-
},
|
|
14461
|
-
{
|
|
14462
|
-
"brief": "Restore from a backup file",
|
|
14463
|
-
"generics": [],
|
|
14464
|
-
"name": "restore_from_backup",
|
|
14465
|
-
"params": [
|
|
14466
|
-
{
|
|
14467
|
-
"doc": "- The path of the backup file",
|
|
14468
|
-
"isOptional": false,
|
|
14469
|
-
"isVararg": false,
|
|
14470
|
-
"name": "backup_path",
|
|
14471
|
-
"types": [
|
|
14472
|
-
"string",
|
|
14473
|
-
],
|
|
14474
|
-
},
|
|
14475
|
-
{
|
|
14476
|
-
"doc": "- The path to restore to",
|
|
14477
|
-
"isOptional": false,
|
|
14478
|
-
"isVararg": false,
|
|
14479
|
-
"name": "original_path",
|
|
14480
|
-
"types": [
|
|
14481
|
-
"string",
|
|
14482
|
-
],
|
|
14483
|
-
},
|
|
14484
|
-
],
|
|
14485
|
-
"returns": [
|
|
14486
|
-
{
|
|
14487
|
-
"doc": "- True if restore was successful",
|
|
14488
|
-
"isOptional": false,
|
|
14489
|
-
"isVararg": false,
|
|
14490
|
-
"name": "",
|
|
14491
|
-
"types": [
|
|
14492
|
-
"boolean",
|
|
14493
|
-
],
|
|
14494
|
-
},
|
|
14495
|
-
],
|
|
14496
|
-
},
|
|
14497
|
-
{
|
|
14498
|
-
"brief": "Remove a backup file",
|
|
14499
|
-
"generics": [],
|
|
14500
|
-
"name": "remove_backup",
|
|
14501
|
-
"params": [
|
|
14502
|
-
{
|
|
14503
|
-
"doc": "- The path of the backup file to remove",
|
|
14504
|
-
"isOptional": false,
|
|
14505
|
-
"isVararg": false,
|
|
14506
|
-
"name": "backup_path",
|
|
14507
|
-
"types": [
|
|
14508
|
-
"string",
|
|
14509
|
-
],
|
|
14510
|
-
},
|
|
14511
|
-
],
|
|
14512
|
-
"returns": [],
|
|
14513
|
-
},
|
|
14514
14016
|
{
|
|
14515
14017
|
"brief": "Assign layers to GUI nodes based on textures and fonts",
|
|
14516
14018
|
"generics": [],
|
|
@@ -14545,13 +14047,6 @@ Only one widget can be set per game object."
|
|
|
14545
14047
|
"params": [],
|
|
14546
14048
|
"returns": [],
|
|
14547
14049
|
},
|
|
14548
|
-
{
|
|
14549
|
-
"brief": "",
|
|
14550
|
-
"generics": [],
|
|
14551
|
-
"name": "to_camel_case",
|
|
14552
|
-
"params": [],
|
|
14553
|
-
"returns": [],
|
|
14554
|
-
},
|
|
14555
14050
|
{
|
|
14556
14051
|
"brief": "",
|
|
14557
14052
|
"generics": [],
|
|
@@ -14559,13 +14054,6 @@ Only one widget can be set per game object."
|
|
|
14559
14054
|
"params": [],
|
|
14560
14055
|
"returns": [],
|
|
14561
14056
|
},
|
|
14562
|
-
{
|
|
14563
|
-
"brief": "",
|
|
14564
|
-
"generics": [],
|
|
14565
|
-
"name": "to_camel_case",
|
|
14566
|
-
"params": [],
|
|
14567
|
-
"returns": [],
|
|
14568
|
-
},
|
|
14569
14057
|
{
|
|
14570
14058
|
"brief": "",
|
|
14571
14059
|
"generics": [],
|
|
@@ -14624,12 +14112,12 @@ Only one widget can be set per game object."
|
|
|
14624
14112
|
],
|
|
14625
14113
|
"returns": [
|
|
14626
14114
|
{
|
|
14627
|
-
"doc": "
|
|
14115
|
+
"doc": "",
|
|
14628
14116
|
"isOptional": false,
|
|
14629
14117
|
"isVararg": false,
|
|
14630
14118
|
"name": "",
|
|
14631
14119
|
"types": [
|
|
14632
|
-
"table|nil,",
|
|
14120
|
+
"table|nil, string|nil",
|
|
14633
14121
|
],
|
|
14634
14122
|
},
|
|
14635
14123
|
],
|
|
@@ -14663,12 +14151,12 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
14663
14151
|
],
|
|
14664
14152
|
"returns": [
|
|
14665
14153
|
{
|
|
14666
|
-
"doc": "
|
|
14154
|
+
"doc": "",
|
|
14667
14155
|
"isOptional": false,
|
|
14668
14156
|
"isVararg": false,
|
|
14669
14157
|
"name": "",
|
|
14670
14158
|
"types": [
|
|
14671
|
-
"boolean,",
|
|
14159
|
+
"boolean, string|nil",
|
|
14672
14160
|
],
|
|
14673
14161
|
},
|
|
14674
14162
|
],
|
|
@@ -14939,12 +14427,12 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
14939
14427
|
],
|
|
14940
14428
|
"returns": [
|
|
14941
14429
|
{
|
|
14942
|
-
"doc": "
|
|
14430
|
+
"doc": "@success, reason",
|
|
14943
14431
|
"isOptional": false,
|
|
14944
14432
|
"isVararg": false,
|
|
14945
14433
|
"name": "",
|
|
14946
14434
|
"types": [
|
|
14947
|
-
"string|nil,",
|
|
14435
|
+
"string|nil, string|nil",
|
|
14948
14436
|
],
|
|
14949
14437
|
},
|
|
14950
14438
|
],
|
|
@@ -14975,12 +14463,12 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
14975
14463
|
],
|
|
14976
14464
|
"returns": [
|
|
14977
14465
|
{
|
|
14978
|
-
"doc": "
|
|
14466
|
+
"doc": "@success, reason",
|
|
14979
14467
|
"isOptional": false,
|
|
14980
14468
|
"isVararg": false,
|
|
14981
14469
|
"name": "",
|
|
14982
14470
|
"types": [
|
|
14983
|
-
"boolean,",
|
|
14471
|
+
"boolean, string|nil",
|
|
14984
14472
|
],
|
|
14985
14473
|
},
|
|
14986
14474
|
],
|
|
@@ -15019,12 +14507,12 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
15019
14507
|
],
|
|
15020
14508
|
"returns": [
|
|
15021
14509
|
{
|
|
15022
|
-
"doc": "
|
|
14510
|
+
"doc": "@new_object_name, name, value, end_struct_flag",
|
|
15023
14511
|
"isOptional": false,
|
|
15024
14512
|
"isVararg": false,
|
|
15025
14513
|
"name": "",
|
|
15026
14514
|
"types": [
|
|
15027
|
-
"string,",
|
|
14515
|
+
"string, string, string, boolean",
|
|
15028
14516
|
],
|
|
15029
14517
|
},
|
|
15030
14518
|
],
|
|
@@ -15072,23 +14560,6 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
15072
14560
|
"params": [],
|
|
15073
14561
|
"returns": [],
|
|
15074
14562
|
},
|
|
15075
|
-
{
|
|
15076
|
-
"brief": "Read editor port from .internal/editor.port file",
|
|
15077
|
-
"generics": [],
|
|
15078
|
-
"name": "get_editor_port",
|
|
15079
|
-
"params": [],
|
|
15080
|
-
"returns": [
|
|
15081
|
-
{
|
|
15082
|
-
"doc": "Editor port number or nil if not found",
|
|
15083
|
-
"isOptional": false,
|
|
15084
|
-
"isVararg": false,
|
|
15085
|
-
"name": "port",
|
|
15086
|
-
"types": [
|
|
15087
|
-
"number|nil",
|
|
15088
|
-
],
|
|
15089
|
-
},
|
|
15090
|
-
],
|
|
15091
|
-
},
|
|
15092
14563
|
{
|
|
15093
14564
|
"brief": "Call editor HTTP API command",
|
|
15094
14565
|
"generics": [],
|
|
@@ -15105,87 +14576,16 @@ The path file extension will be used to determine the Defold format (*.atlas, *.
|
|
|
15105
14576
|
},
|
|
15106
14577
|
],
|
|
15107
14578
|
"returns": [
|
|
15108
|
-
{
|
|
15109
|
-
"doc": "True if request was sent successfully",
|
|
15110
|
-
"isOptional": false,
|
|
15111
|
-
"isVararg": false,
|
|
15112
|
-
"name": "success",
|
|
15113
|
-
"types": [
|
|
15114
|
-
"boolean",
|
|
15115
|
-
],
|
|
15116
|
-
},
|
|
15117
|
-
],
|
|
15118
|
-
},
|
|
15119
|
-
{
|
|
15120
|
-
"brief": "Mask text by replacing every character with a mask character",
|
|
15121
|
-
"generics": [],
|
|
15122
|
-
"name": "mask_text",
|
|
15123
|
-
"params": [
|
|
15124
|
-
{
|
|
15125
|
-
"doc": "",
|
|
15126
|
-
"isOptional": false,
|
|
15127
|
-
"isVararg": false,
|
|
15128
|
-
"name": "text",
|
|
15129
|
-
"types": [
|
|
15130
|
-
"string",
|
|
15131
|
-
],
|
|
15132
|
-
},
|
|
15133
|
-
{
|
|
15134
|
-
"doc": "",
|
|
15135
|
-
"isOptional": false,
|
|
15136
|
-
"isVararg": false,
|
|
15137
|
-
"name": "mask",
|
|
15138
|
-
"types": [
|
|
15139
|
-
"string",
|
|
15140
|
-
],
|
|
15141
|
-
},
|
|
15142
|
-
],
|
|
15143
|
-
"returns": [
|
|
15144
|
-
{
|
|
15145
|
-
"doc": "Masked text",
|
|
15146
|
-
"isOptional": false,
|
|
15147
|
-
"isVararg": false,
|
|
15148
|
-
"name": "",
|
|
15149
|
-
"types": [
|
|
15150
|
-
"string",
|
|
15151
|
-
],
|
|
15152
|
-
},
|
|
15153
|
-
],
|
|
15154
|
-
},
|
|
15155
|
-
{
|
|
15156
|
-
"brief": "",
|
|
15157
|
-
"generics": [],
|
|
15158
|
-
"name": "clear_and_select",
|
|
15159
|
-
"params": [],
|
|
15160
|
-
"returns": [],
|
|
15161
|
-
},
|
|
15162
|
-
{
|
|
15163
|
-
"brief": "",
|
|
15164
|
-
"generics": [],
|
|
15165
|
-
"name": "get_text_width",
|
|
15166
|
-
"params": [],
|
|
15167
|
-
"returns": [],
|
|
15168
|
-
},
|
|
15169
|
-
{
|
|
15170
|
-
"brief": "",
|
|
15171
|
-
"generics": [],
|
|
15172
|
-
"name": "get_icon_width",
|
|
15173
|
-
"params": [],
|
|
15174
|
-
"returns": [],
|
|
15175
|
-
},
|
|
15176
|
-
{
|
|
15177
|
-
"brief": "",
|
|
15178
|
-
"generics": [],
|
|
15179
|
-
"name": "is_text_node",
|
|
15180
|
-
"params": [],
|
|
15181
|
-
"returns": [],
|
|
15182
|
-
},
|
|
15183
|
-
{
|
|
15184
|
-
"brief": "Text node or icon node can be nil",
|
|
15185
|
-
"generics": [],
|
|
15186
|
-
"name": "get_width",
|
|
15187
|
-
"params": [],
|
|
15188
|
-
"returns": [],
|
|
14579
|
+
{
|
|
14580
|
+
"doc": "True if request was sent successfully",
|
|
14581
|
+
"isOptional": false,
|
|
14582
|
+
"isVararg": false,
|
|
14583
|
+
"name": "success",
|
|
14584
|
+
"types": [
|
|
14585
|
+
"boolean",
|
|
14586
|
+
],
|
|
14587
|
+
},
|
|
14588
|
+
],
|
|
15189
14589
|
},
|
|
15190
14590
|
{
|
|
15191
14591
|
"brief":
|
|
@@ -16049,12 +15449,12 @@ Offset shown in [-0.5 .. 0.5] range, where -0.5 is left or bottom, 0.5 is right
|
|
|
16049
15449
|
],
|
|
16050
15450
|
"returns": [
|
|
16051
15451
|
{
|
|
16052
|
-
"doc": "
|
|
15452
|
+
"doc": "String representation of table, Is max string length reached",
|
|
16053
15453
|
"isOptional": false,
|
|
16054
15454
|
"isVararg": false,
|
|
16055
|
-
"name": "
|
|
15455
|
+
"name": "result",
|
|
16056
15456
|
"types": [
|
|
16057
|
-
"string,",
|
|
15457
|
+
"string, boolean",
|
|
16058
15458
|
],
|
|
16059
15459
|
},
|
|
16060
15460
|
],
|
|
@@ -16289,152 +15689,6 @@ Thanks to Dragosha! ( ・ω・ ) < Hey friend!"
|
|
|
16289
15689
|
},
|
|
16290
15690
|
],
|
|
16291
15691
|
},
|
|
16292
|
-
{
|
|
16293
|
-
"brief": "",
|
|
16294
|
-
"generics": [],
|
|
16295
|
-
"name": "set_input_state",
|
|
16296
|
-
"params": [],
|
|
16297
|
-
"returns": [],
|
|
16298
|
-
},
|
|
16299
|
-
{
|
|
16300
|
-
"brief": "",
|
|
16301
|
-
"generics": [],
|
|
16302
|
-
"name": "sort_input_comparator",
|
|
16303
|
-
"params": [
|
|
16304
|
-
{
|
|
16305
|
-
"doc": "",
|
|
16306
|
-
"isOptional": false,
|
|
16307
|
-
"isVararg": false,
|
|
16308
|
-
"name": "component_a",
|
|
16309
|
-
"types": [
|
|
16310
|
-
"druid.component",
|
|
16311
|
-
],
|
|
16312
|
-
},
|
|
16313
|
-
{
|
|
16314
|
-
"doc": "",
|
|
16315
|
-
"isOptional": false,
|
|
16316
|
-
"isVararg": false,
|
|
16317
|
-
"name": "component_b",
|
|
16318
|
-
"types": [
|
|
16319
|
-
"druid.component",
|
|
16320
|
-
],
|
|
16321
|
-
},
|
|
16322
|
-
],
|
|
16323
|
-
"returns": [
|
|
16324
|
-
{
|
|
16325
|
-
"doc": "",
|
|
16326
|
-
"isOptional": false,
|
|
16327
|
-
"isVararg": false,
|
|
16328
|
-
"name": "",
|
|
16329
|
-
"types": [
|
|
16330
|
-
"boolean",
|
|
16331
|
-
],
|
|
16332
|
-
},
|
|
16333
|
-
],
|
|
16334
|
-
},
|
|
16335
|
-
{
|
|
16336
|
-
"brief": "",
|
|
16337
|
-
"generics": [],
|
|
16338
|
-
"name": "sort_input_stack",
|
|
16339
|
-
"params": [
|
|
16340
|
-
{
|
|
16341
|
-
"doc": "",
|
|
16342
|
-
"isOptional": false,
|
|
16343
|
-
"isVararg": false,
|
|
16344
|
-
"name": "self",
|
|
16345
|
-
"types": [
|
|
16346
|
-
"druid.instance",
|
|
16347
|
-
],
|
|
16348
|
-
},
|
|
16349
|
-
],
|
|
16350
|
-
"returns": [],
|
|
16351
|
-
},
|
|
16352
|
-
{
|
|
16353
|
-
"brief": "Get current component interests",
|
|
16354
|
-
"generics": [],
|
|
16355
|
-
"name": "get_component_interests",
|
|
16356
|
-
"params": [
|
|
16357
|
-
{
|
|
16358
|
-
"doc": "",
|
|
16359
|
-
"isOptional": false,
|
|
16360
|
-
"isVararg": false,
|
|
16361
|
-
"name": "instance",
|
|
16362
|
-
"types": [
|
|
16363
|
-
"druid.component",
|
|
16364
|
-
],
|
|
16365
|
-
},
|
|
16366
|
-
],
|
|
16367
|
-
"returns": [
|
|
16368
|
-
{
|
|
16369
|
-
"doc": "List of component interests",
|
|
16370
|
-
"isOptional": false,
|
|
16371
|
-
"isVararg": false,
|
|
16372
|
-
"name": "interest_list",
|
|
16373
|
-
"types": [
|
|
16374
|
-
"table",
|
|
16375
|
-
],
|
|
16376
|
-
},
|
|
16377
|
-
],
|
|
16378
|
-
},
|
|
16379
|
-
{
|
|
16380
|
-
"brief": "",
|
|
16381
|
-
"generics": [],
|
|
16382
|
-
"name": "register_interests",
|
|
16383
|
-
"params": [
|
|
16384
|
-
{
|
|
16385
|
-
"doc": "",
|
|
16386
|
-
"isOptional": false,
|
|
16387
|
-
"isVararg": false,
|
|
16388
|
-
"name": "self",
|
|
16389
|
-
"types": [
|
|
16390
|
-
"druid.instance",
|
|
16391
|
-
],
|
|
16392
|
-
},
|
|
16393
|
-
{
|
|
16394
|
-
"doc": "",
|
|
16395
|
-
"isOptional": false,
|
|
16396
|
-
"isVararg": false,
|
|
16397
|
-
"name": "instance",
|
|
16398
|
-
"types": [
|
|
16399
|
-
"druid.component",
|
|
16400
|
-
],
|
|
16401
|
-
},
|
|
16402
|
-
],
|
|
16403
|
-
"returns": [],
|
|
16404
|
-
},
|
|
16405
|
-
{
|
|
16406
|
-
"brief": "Before processing any input check if we need to update input stack",
|
|
16407
|
-
"generics": [],
|
|
16408
|
-
"name": "check_sort_input_stack",
|
|
16409
|
-
"params": [
|
|
16410
|
-
{
|
|
16411
|
-
"doc": "",
|
|
16412
|
-
"isOptional": false,
|
|
16413
|
-
"isVararg": false,
|
|
16414
|
-
"name": "self",
|
|
16415
|
-
"types": [
|
|
16416
|
-
"druid.instance",
|
|
16417
|
-
],
|
|
16418
|
-
},
|
|
16419
|
-
{
|
|
16420
|
-
"doc": "",
|
|
16421
|
-
"isOptional": false,
|
|
16422
|
-
"isVararg": false,
|
|
16423
|
-
"name": "components",
|
|
16424
|
-
"types": [
|
|
16425
|
-
"table[]",
|
|
16426
|
-
],
|
|
16427
|
-
},
|
|
16428
|
-
],
|
|
16429
|
-
"returns": [],
|
|
16430
|
-
},
|
|
16431
|
-
{
|
|
16432
|
-
"brief": "",
|
|
16433
|
-
"generics": [],
|
|
16434
|
-
"name": "schedule_late_init",
|
|
16435
|
-
"params": [],
|
|
16436
|
-
"returns": [],
|
|
16437
|
-
},
|
|
16438
15692
|
{
|
|
16439
15693
|
"brief": "Druid class constructor which used to create Druid components",
|
|
16440
15694
|
"generics": [],
|
|
@@ -16521,139 +15775,6 @@ Thanks to Dragosha! ( ・ω・ ) < Hey friend!"
|
|
|
16521
15775
|
"params": [],
|
|
16522
15776
|
"returns": [],
|
|
16523
15777
|
},
|
|
16524
|
-
{
|
|
16525
|
-
"brief": "",
|
|
16526
|
-
"generics": [],
|
|
16527
|
-
"name": "utf8charbytes",
|
|
16528
|
-
"params": [],
|
|
16529
|
-
"returns": [],
|
|
16530
|
-
},
|
|
16531
|
-
{
|
|
16532
|
-
"brief": "",
|
|
16533
|
-
"generics": [],
|
|
16534
|
-
"name": "utf8len",
|
|
16535
|
-
"params": [],
|
|
16536
|
-
"returns": [],
|
|
16537
|
-
},
|
|
16538
|
-
{
|
|
16539
|
-
"brief": "",
|
|
16540
|
-
"generics": [],
|
|
16541
|
-
"name": "utf8sub",
|
|
16542
|
-
"params": [],
|
|
16543
|
-
"returns": [],
|
|
16544
|
-
},
|
|
16545
|
-
{
|
|
16546
|
-
"brief": "",
|
|
16547
|
-
"generics": [],
|
|
16548
|
-
"name": "utf8replace",
|
|
16549
|
-
"params": [],
|
|
16550
|
-
"returns": [],
|
|
16551
|
-
},
|
|
16552
|
-
{
|
|
16553
|
-
"brief": "",
|
|
16554
|
-
"generics": [],
|
|
16555
|
-
"name": "utf8upper",
|
|
16556
|
-
"params": [],
|
|
16557
|
-
"returns": [],
|
|
16558
|
-
},
|
|
16559
|
-
{
|
|
16560
|
-
"brief": "",
|
|
16561
|
-
"generics": [],
|
|
16562
|
-
"name": "utf8lower",
|
|
16563
|
-
"params": [],
|
|
16564
|
-
"returns": [],
|
|
16565
|
-
},
|
|
16566
|
-
{
|
|
16567
|
-
"brief": "",
|
|
16568
|
-
"generics": [],
|
|
16569
|
-
"name": "utf8reverse",
|
|
16570
|
-
"params": [],
|
|
16571
|
-
"returns": [],
|
|
16572
|
-
},
|
|
16573
|
-
{
|
|
16574
|
-
"brief": "",
|
|
16575
|
-
"generics": [],
|
|
16576
|
-
"name": "utf8char",
|
|
16577
|
-
"params": [],
|
|
16578
|
-
"returns": [],
|
|
16579
|
-
},
|
|
16580
|
-
{
|
|
16581
|
-
"brief": "",
|
|
16582
|
-
"generics": [],
|
|
16583
|
-
"name": "utf8unicode",
|
|
16584
|
-
"params": [],
|
|
16585
|
-
"returns": [],
|
|
16586
|
-
},
|
|
16587
|
-
{
|
|
16588
|
-
"brief": "",
|
|
16589
|
-
"generics": [],
|
|
16590
|
-
"name": "utf8gensub",
|
|
16591
|
-
"params": [],
|
|
16592
|
-
"returns": [],
|
|
16593
|
-
},
|
|
16594
|
-
{
|
|
16595
|
-
"brief": "",
|
|
16596
|
-
"generics": [],
|
|
16597
|
-
"name": "binsearch",
|
|
16598
|
-
"params": [],
|
|
16599
|
-
"returns": [],
|
|
16600
|
-
},
|
|
16601
|
-
{
|
|
16602
|
-
"brief": "",
|
|
16603
|
-
"generics": [],
|
|
16604
|
-
"name": "classMatchGenerator",
|
|
16605
|
-
"params": [],
|
|
16606
|
-
"returns": [],
|
|
16607
|
-
},
|
|
16608
|
-
{
|
|
16609
|
-
"brief": "",
|
|
16610
|
-
"generics": [],
|
|
16611
|
-
"name": "utf8subWithBytes",
|
|
16612
|
-
"params": [],
|
|
16613
|
-
"returns": [],
|
|
16614
|
-
},
|
|
16615
|
-
{
|
|
16616
|
-
"brief": "",
|
|
16617
|
-
"generics": [],
|
|
16618
|
-
"name": "matcherGenerator",
|
|
16619
|
-
"params": [],
|
|
16620
|
-
"returns": [],
|
|
16621
|
-
},
|
|
16622
|
-
{
|
|
16623
|
-
"brief": "",
|
|
16624
|
-
"generics": [],
|
|
16625
|
-
"name": "utf8find",
|
|
16626
|
-
"params": [],
|
|
16627
|
-
"returns": [],
|
|
16628
|
-
},
|
|
16629
|
-
{
|
|
16630
|
-
"brief": "",
|
|
16631
|
-
"generics": [],
|
|
16632
|
-
"name": "utf8match",
|
|
16633
|
-
"params": [],
|
|
16634
|
-
"returns": [],
|
|
16635
|
-
},
|
|
16636
|
-
{
|
|
16637
|
-
"brief": "",
|
|
16638
|
-
"generics": [],
|
|
16639
|
-
"name": "utf8gmatch",
|
|
16640
|
-
"params": [],
|
|
16641
|
-
"returns": [],
|
|
16642
|
-
},
|
|
16643
|
-
{
|
|
16644
|
-
"brief": "",
|
|
16645
|
-
"generics": [],
|
|
16646
|
-
"name": "replace",
|
|
16647
|
-
"params": [],
|
|
16648
|
-
"returns": [],
|
|
16649
|
-
},
|
|
16650
|
-
{
|
|
16651
|
-
"brief": "",
|
|
16652
|
-
"generics": [],
|
|
16653
|
-
"name": "utf8gsub",
|
|
16654
|
-
"params": [],
|
|
16655
|
-
"returns": [],
|
|
16656
|
-
},
|
|
16657
15778
|
],
|
|
16658
15779
|
}
|
|
16659
15780
|
`;
|