-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
4322 lines (4322 loc) · 208 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
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
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"language":{
"documentationLabels":{
"title":{
"EN":"{{APP_NAME}} JSON descriptor files quick reference",
"IT":"Guida rapida ai file descrittore JSON di {{APP_NAME}}"
},
"description":{
"EN":"{{APP_NAME}} uses JSON descriptors to describe a table, whether it is a table template or a table save file.\n\n```\n{\n\t\"meta\": {\n\t\t(Table metadata)\n\t},\n\t\"data\": [\n\t\t(Table elements)\n\t]\n}\n```\n\nIn this guide some attribute names are described as `attribute.subAttribute`: these should be coded as `{ \"attribute\": { \"subAttribute\": ... } }`.",
"IT":"{{APP_NAME}} usa dei descrittori JSON per descrivere un tavolo, sia se si tratti di un template che di un file di salvataggio.\n\n```\n{\n\t\"meta\": {\n\t\t(Metadati del tavolo)\n\t},\n\t\"data\": [\n\t\t(Elementi da aggiungere al tavolo)\n\t]\n}\n```\n\nIn questa guida, per brevità, alcuni nomi di attributi sono descritti con la formula `attributo.sottoAttributo`: questi vanno codificati come `{ \"attributo\": { \"sottoAttributo\": ... } }`."
},
"elements":{
"EN":"Elements",
"IT":"Elementi"
},
"structures":{
"EN":"Structures",
"IT":"Strutture"
},
"elementsSample":{
"EN":"Each element is defined by the same JSON structure:\n\n```\n{\n\t\"type\": (Element type identifier),\n\t\"data\": {\n\t\t(Element attributes)\n\t}\n}\n```\n\nThe same element can offer multiple identifiers, each representing its variant.\n\n_Unlike save files, templates can specify an extra `zIndex` attribute in addition to `type` and `data`: elements will be reordered based on their `zIndex` when the table is generated, allowing you to break the sequence specified in the JSON descriptor `data` attribute. This technique gives greater control over the elements positioning to the sub-templates, allowing them to be mixed with others in a fixed position._",
"IT":"Ogni elemento è definito dalla stessa struttura JSON:\n\n```\n{\n\t\"type\": (Identificativo del tipo dello elemento),\n\t\"data\": {\n\t\t(Attributi dello elemento)\n\t}\n}\n```\n\nUno stesso elemento può offrire più identificativi, ognuno rappresentante una sua variante.\n\n_A differenza dei file di salvataggio, i template possono specificare un attributo extra `zIndex` oltre a `type` e `data`: gli elementi verranno riordinati in base al loro `zIndex` alla generazione del tavolo, permettendo di non rispettare la sequenza specificata nell'attributo `data` del descrittore JSON. Questa tecnica concede maggior controllo sul posizionamento degli elementi ai sotto-template, permettendogli di mescolarli con altri in posizione fissa._"
},
"elementId":{
"EN":"Type identifiers",
"IT":"Identificativi del tipo"
},
"elementTags":{
"EN":"Tags assigned by default",
"IT":"Tag assegnati di default"
},
"elementMacroEvents":{
"EN":"Supported macro events",
"IT":"Eventi disponibili per le macro"
},
"elementAttributes":{
"EN":"Attributes",
"IT":"Attributi"
},
"structureSample":{
"EN":"Some elements use complex, shared structures to describe their attributes. In {{APP_NAME}} JSON descriptors, they are represented as simple JSON sub-structures:\n\n```\n{\n\t(Attribute name): (Attribute value),\n\t...\n}\n```\n",
"IT":"Alcuni elementi possono fare uso di strutture complesse e condivise per descrivere i propri attributi. Nei descrittori JSON di {{APP_NAME}} sono rappresentate come semplici sotto-strutture JSON:\n\n```\n{\n\t(Nome dell'attributo): (Valore dell'attributo),\n\t...\n}\n```\n"
},
"structureAttributes":{
"EN":"Attributes",
"IT":"Attributi"
}
},
"attributeColumns":{
"EN":[ "Name", "Type", "Description"],
"IT":[ "Nome", "Tipo", "Descrizione"]
},
"metadata":{
"title":{
"EN":"Medata structure",
"IT":"Struttura dei metadati"
},
"description":{
"EN":"The `meta` attribute of a {{APP_NAME}} JSON file is an object that collects some general attributes of the table, such as its name, the expected number of players, or some links to help the user find useful information.",
"IT":"L'attributo `meta` di un file JSON {{APP_NAME}} è un oggetto che raccoglie alcuni attributi generali del tavolo, come il suo nome, il numero di giocatori previsti, o link per permettere all'utente di ottenere informazioni utili."
},
"section":{
"attributes":[
{
"name":"title",
"type":"text",
"title":{
"EN":"Table name.",
"IT":"Nome del tavolo."
}
},{
"name":"author",
"type":"text",
"title":{
"EN":"Table author. {{language.options.tableFromPdf.tableAuthor.description}}",
"IT":"Autore del tavolo. {{language.options.tableFromPdf.tableAuthor.description}}"
}
},{
"name":"license",
"type":"text",
"title":{
"EN":"Table license. {{language.options.tableFromPdf.tableLicense.description}}",
"IT":"Licenza del tavolo. {{language.options.tableFromPdf.tableLicense.description}}"
}
},{
"name":"licenseUrl",
"type":"translatedUrl",
"title":{
"EN":"License URL. {{language.options.tableFromPdf.tableLicenseUrl.description}}",
"IT":"URL della licenza. {{language.options.tableFromPdf.tableLicenseUrl.description}}"
}
},{
"name":"players",
"type":"text",
"title":{
"EN":"Players count. {{language.options.tableFromPdf.tablePlayers.description}}",
"IT":"Numero di giocatori. {{language.options.tableFromPdf.tablePlayers.description}}"
}
},{
"name":"description",
"type":"text",
"title":{
"EN":"Short table description.",
"IT":"Breve descrizione del tavolo."
}
},{
"name":"url",
"type":"translatedUrl",
"title":{
"EN":"{{language.options.tableFromPdf.tableUrl.description}}"
}
},{
"name":"manualUrl",
"type":"translatedUrl",
"title":{
"EN":"{{language.options.tableFromPdf.tableManualUrl.description}}"
}
}
]
}
},
"generators":{
"title":{
"EN":"Procedural generators",
"IT":"Generatori procedurali"
},
"description":{
"EN":"Notoner allows templates to procedurally generate a table via JavaScript. To do this you need to add the `generator` attribute to the root of the JSON descriptor indicating the JavaScript file to use. It is also possible to specify a basic configuration, which will be passed to the generator upon invocation via the `settings` attribute.\n\n```\n{\n\t\"meta\": {\n\t\t(Table metadata)\n\t},\n\t\"data\": [\n\t\t(Table elements)\n\t]\n\t\"generator\": \"generator.js\",\n\t\"settings\": {\n\t\t\"attribute1\": \"value1\",\n\t\t\"attribute2\": \"value2\",\n\t\t(More attributes)\n\t}\n}\n```\n\nThe `generator.js` file is structured like this:\n\n```\nGENERATOR=(function(){\n\treturn {\n\t\trun:(self, json, sub, cb)=>{\n\t\t\t// json: contains the selected table structure.\n\t\t\t// sub: contains the selected sub-template details.\n\t\t\t// sub.settings: contains JSON descriptor settings attribute value.\n\n\t\t\t// Once you've manipulated the json object:\n\t\t\tcb(json);\n\t\t}\n\t}\n})();\n```",
"IT":"Notoner permette ai template di generare proceduralmente un tavolo tramite JavaScript. Per farlo è necessario aggiungere l'attributo `generator` alla radice del descrittore JSON indicando il file JavaScript da utilizzare. È anche possibile specificare una configurazione base, che verrà passata al generatore al momento dell'invocazione tramite l'attributo `settings`.\n\n```\n{\n\t\"meta\": {\n\t\t(Metadati del tavolo)\n\t},\n\t\"data\": [\n\t\t(Elementi da aggiungere al tavolo)\n\t]\n\t\"generator\": \"generator.js\",\n\t\"settings\": {\n\t\t\"attribute1\": \"value1\",\n\t\t\"attribute2\": \"value2\",\n\t\t(Altri attributi)\n\t}\n}\n```\n\nIl file `generator.js` è così strutturato:\n\n```\nGENERATOR=(function(){\n\treturn {\n\t\trun:(self, json, sub, cb)=>{\n\t\t\t// json: contiene la struttura del tavolo selezionato.\n\t\t\t// sub: contiene i dettagli del sotto-template selezionato.\n\t\t\t// sub.settings: contiene il valore dell'attributo settings del descrittore JSON.\n\n\t\t\t// Una volta modificato l'oggetto JSON:\n\t\t\tcb(json);\n\t\t}\n\t}\n})();\n```"
}
},
"subtemplates":{
"title":{
"EN":"Sub-templates",
"IT":"Sotto-template"
},
"description":{
"EN":"Notoner allows templates to offer _variants_ called _sub-templates_, which the user can select by navigating the template selector. A sub-template is defined by two object hierarchies: one in the `meta` section which defines its description and one which starts from the root of the JSON descriptor which defines the elements to be added to the `data` and `settings` sections when selected.\n\n```\n{\n\t\"meta\": {\n\t\t(Table metadata)\n\t\t\"subtemplates\": [\n\t\t\t{\n\t\t\t\t\"id\": \"subtemplate1\",\n\t\t\t\t\"meta\": [ ... ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"id\": \"subtemplate2\",\n\t\t\t\t\"meta\": [ ... ],\n\t\t\t\t\"subtemplates\": [ ... ]\n\t\t\t},\n\t\t\t(More sub-template descriptions)\n\t\t]\n\t},\n\t\"data\": [\n\t\t(Table elements)\n\t],\n\t\"subtemplates\": [\n\t\t{\n\t\t\t\"id\": \"subtemplate1\",\n\t\t\t\"data\": [ ... ],\n\t\t\t\"settings\": { ... }\n\t\t},\n\t\t{\n\t\t\t\"id\": \"subtemplate2\",\n\t\t\t\"data\": [ ... ],\n\t\t\t\"settings\": { ... },\n\t\t\t\"subtemplates\":{ ... }\n\t\t}\n\t\t(More sub-templates)\n\t}\n}\n```\n\nThe details of these sub-templates will need to be described by the `subtemplates` attribute to be added to the `meta` attribute at the root of the JSON descriptor:",
"IT":"Notoner permette ai template di offrire delle _varianti_ chiamate _sotto-template_, che l'utente potrà selezionare navigando il selettore dei template. Un sotto-template è definito da due gerarchie di oggetti: una nella sezione `meta` che ne definisce la descrizione e una che parte dalla radice del descrittore JSON che ne definisce gli elementi da aggiungere alla sezione `data` e `settings` quando selezionati.\n\n```\n{\n\t\"meta\": {\n\t\t(Metadati del tavolo)\n\t\t\"subtemplates\": [\n\t\t\t{\n\t\t\t\t\"id\": \"subtemplate1\",\n\t\t\t\t\"meta\": [ ... ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"id\": \"subtemplate2\",\n\t\t\t\t\"meta\": [ ... ],\n\t\t\t\t\"subtemplates\": [ ... ]\n\t\t\t},\n\t\t\t(Descrizione ulteriori sotto-template)\n\t\t]\n\t},\n\t\"data\": [\n\t\t(Elementi da aggiungere al tavolo)\n\t],\n\t\"subtemplates\": [\n\t\t{\n\t\t\t\"id\": \"subtemplate1\",\n\t\t\t\"data\": [ ... ],\n\t\t\t\"settings\": { ... }\n\t\t},\n\t\t{\n\t\t\t\"id\": \"subtemplate2\",\n\t\t\t\"data\": [ ... ],\n\t\t\t\"settings\": { ... },\n\t\t\t\"subtemplates\":{ ... }\n\t\t}\n\t\t(Ulteriori sotto-template)\n\t}\n}\n```\n\nI dettagli di questi sotto-template dovranno essere descritti dall'attributo `subtemplates` da aggiungere all'attributo `meta` alla radice del descrittore JSON:"
},
"section":{
"attributes":[
{
"name":"subtemplates",
"title":{
"EN":"(For templates only) Sub-templates list.",
"IT":"(Solo per template) Elenco dei sotto-template supportati."
},
"section":{
"isArray":true,
"attributes":[
{
"name":"id",
"type":"string",
"title":{
"EN":"Sub-template identifier.",
"IT":"Identificativo del sotto-template."
}
},{
"name":"isDefault",
"type":"boolean",
"title":{
"EN":"If `TRUE`, select this sub-templated if not specified by the user.",
"IT":"Se `TRUE`, seleziona questo sotto-template se non specificato dall'utente."
}
},{
"name":"meta",
"title":{
"EN":"Sub-template information.",
"IT":"Informazioni sul sotto-template."
},
"section":{
"attributes":[
{
"name":"title",
"type":"string",
"title":{
"EN":"Sub-template name.",
"IT":"Nome del sotto-template."
}
},{
"name":"description",
"type":"string",
"title":{
"EN":"Sub-template description.",
"IT":"Descrizione del sotto-template."
}
},{
"name":"subtemplates",
"type":{
"title":{
"EN":"Sub-template",
"IT":"Sotto-template"
}
},
"title":{
"EN":"Further sub-templates. Follows the `subtemplates` structure.",
"IT":"Ulteriori sotto-template. Segue la struttura di `subtemplates`."
}
}
]
}
}
]
}
}
]
}
},
"attributeTypes":{
"any":{
"title":{
"EN":"Any",
"IT":"Qualsiasi"
}
},
"private":{
"title":{
"EN":""
}
},
"float":{
"title":{
"EN":"`float`"
}
},
"string":{
"title":{
"EN":"`string`"
}
},
"float01":{
"title":{
"EN":"`float` (0-1)"
}
},
"angle":{
"title":{
"EN":"`float` (in radians)",
"IT":"`float` (in radianti)"
}
},
"measure":{
"title":{
"EN":"`float` (in mm)",
"IT":"`float` (in mm)"
}
},
"boolean":{
"title":{
"EN":"`boolean`"
}
},
"true":{
"title":{
"EN":"`TRUE`"
}
},
"byte":{
"title":{
"EN":"`integer` (0-255)"
}
},
"integer":{
"title":{
"EN":"`integer`"
}
},
"seconds":{
"title":{
"EN":"`integer` (seconds)",
"IT":"`integer` (secondi)"
}
},
"array(string)":{
"title":{
"EN":"`[` {{attributeType.string}} `,` {{attributeType.string}} `,` ... `]`"
}
},
"array(measure)":{
"title":{
"EN":"`[` {{attributeType.measure}} `,` {{attributeType.measure}} `,` ... `]`"
}
},
"array(areaOption)":{
"title":{
"EN":"`[` {{attributeType.areaOption}} `,` {{attributeType.areaOption}} `,` ... `]`"
}
},
"array(counterButton)":{
"title":{
"EN":"`[` {{attributeType.counterButton}} `,` {{attributeType.counterButton}} `,` ... `]`"
}
},
"array(counterMenuButton)":{
"title":{
"EN":"`[` {{attributeType.counterMenuButton}} `,` {{attributeType.counterMenuButton}} `,` ... `]`"
}
},
"array(any)":{
"title":{
"EN":"`[` Any `,` Any `,` ... `]`",
"IT":"`[` Qualsiasi `,` Qualsiasi `,` ... `]`"
}
},
"counterButton":{
"section":{
"id":"counterButton",
"shortTitle":{
"EN":"Counter button",
"IT":"Bottone contatore"
},
"title":{
"EN":"Counter button structure",
"IT":"Struttura bottone contatore"
},
"attributes":[
{
"name":"frame",
"type":"frameLabel",
"title":{
"EN":"Button appearance.",
"IT":"Aspetto del bottone."
}
},{
"name":"frameText",
"type":"text",
"title":{
"EN":"Button text.",
"IT":"Testo del bottone."
}
},{
"name":"onSelect",
"type":"counterButtonAction",
"title":{
"EN":"Button action.",
"IT":"Azione del bottone."
}
}
]
}
},
"counterMenuButton":{
"section":{
"id":"counterMenuButton",
"shortTitle":{
"EN":"Menu button",
"IT":"Bottone menu"
},
"title":{
"EN":"Counter menu button structure",
"IT":"Struttura bottone nel menù del contatore"
},
"attributes":[
{
"name":"title",
"type":"text",
"title":{
"EN":"Option label.",
"IT":"Etichetta dell'opzione."
}
},{
"name":"icon",
"type":"resource",
"title":{
"EN":"Option icon.",
"IT":"Icona dell'opzione."
}
},{
"name":"onSelect",
"type":"counterButtonAction",
"title":{
"EN":"Button action.",
"IT":"Azione del bottone."
}
}
]
}
},
"counterButtonAction":{
"section":{
"id":"buttonAction",
"shortTitle":{
"EN":"Action",
"IT":"Azione"
},
"title":{
"EN":"Counter button action structure",
"IT":"Struttura azione bottone contatore"
},
"attributes":[
{
"name":"sumValue",
"type":"float",
"title":{
"EN":"Adds the specified value to the counter value.",
"IT":"Somma il valore specificato al valore del contatore."
}
},{
"name":"subtractValue",
"type":"float",
"title":{
"EN":"Subtracts the specified value to the counter value.",
"IT":"Sottrae il valore specificato al valore del contatore."
}
},{
"name":"setValue",
"type":"float",
"title":{
"EN":"Sets the counter value.",
"IT":"Imposta il valore del contatore."
}
},{
"name":"macro",
"type":"macro",
"title":{
"EN":"Macro to execute when selected.",
"IT":"Macro da eseguire alla selezione."
}
}
]
}
},
"areaStack":{
"section":{
"id":"areaStack",
"shortTitle":{
"EN":"Stack",
"IT":"Pila"
},
"title":{
"EN":"Stack structure",
"IT":"Struttura pila"
},
"attributes":[
{ "name":"x" },
{ "name":"y" },
{
"name":"gapX",
"type":"measure",
"title":{
"EN":"Specifies the horizontal distance between an element and the next one.",
"IT":"Specifica la distanza orizzontale tra un elemento e il successivo."
}
},
{
"name":"gapY",
"type":"measure",
"title":{
"EN":"Specifies the vertical distance between an element and the next one.",
"IT":"Specifica la distanza verticale tra un elemento e il successivo."
}
}
]
}
},
"area":{
"section":{
"id":"area",
"shortTitle":{
"EN":"Area",
"IT":"Area"
},
"title":{
"EN":"Area structure",
"IT":"Struttura area"
},
"attributes":[
{ "name":"x" },
{ "name":"y" },
{ "name":"width" },
{ "name":"height" }
]
}
},
"macrosOptions":{
"title":{
"EN":"`[` {{attributeType.macroOption}} `,` {{attributeType.macroOption}} `,` ... `]`"
}
},
"areaOption":{
"section":{
"id":"areaOption",
"shortTitle":{
"EN":"Area option",
"IT":"Opzione area"
},
"title":{
"EN":"Area option structure",
"IT":"Struttura opzione area"
},
"attributes":[
{
"name":"title",
"type":"text",
"title":{
"EN":"Option label.",
"IT":"Etichetta dell'opzione."
}
},{
"name":"icon",
"type":"resource",
"title":{
"EN":"Option icon.",
"IT":"Icona dell'opzione."
}
},
{ "name":"x" },
{ "name":"y" },
{ "name":"width" },
{ "name":"height" }
]
}
},
"macroOption":{
"section":{
"id":"macroOption",
"shortTitle":{
"EN":"Macro option",
"IT":"Opzione macro"
},
"title":{
"EN":"Macro option structure",
"IT":"Struttura opzione macro"
},
"attributes":[
{
"name":"if",
"type":"macroCondition",
"title":{
"EN":"Determines whether the option should be shown.",
"IT":"Stabilisce se l'opzione deve essere mostrata."
}
},{
"name":"title",
"type":"text",
"title":{
"EN":"Option label.",
"IT":"Etichetta dell'opzione."
}
},{
"name":"icon",
"type":"resource",
"title":{
"EN":"Option icon.",
"IT":"Icona dell'opzione."
}
},{
"name":"macro",
"type":"macro",
"title":{
"EN":"Macro to execute when selected.",
"IT":"Macro da eseguire alla selezione."
}
}
]
}
},
"macroGetter":{
"section":{
"id":"macroGetter",
"shortTitle":{
"EN":"Macro getter",
"IT":"Getter macro"
},
"title":{
"EN":"Macro getter structure",
"IT":"Struttura getter macro"
},
"description":{
"EN":"Most values that can be specified in a macro, such as boolean, numbers, or elements, can be replaced by a _macro getter_.\n\nA macro getter is an object that describes a procedure for obtaining the value it replaces. For example, you can use the macro getter `{ \"get\": \"element.x\" }` to get the horizontal position value of the current element.",
"IT":"Larga parte dei valori specificabili in una macro, come quelli booleani, numerici o elementi, possono essere sostituiti da un _getter macro_.\n\nUn getter macro è un oggetto che descrive una procedura per ottenere il valore che sostituisce. Ad esempio, è possibile usare il macro getter `{ \"get\": \"element.x\" }` per ottenere il valore di posizione orizzontale dell'elemento corrente."
},
"attributes":[
{
"name":"get",
"type":"array(any)",
"title":{
"EN":"Executes an operations chain separated by `.` to get a value.",
"IT":"Esegue una catena di operazioni separati da `.` per ottenere un valore."
},
"section":{
"isValuesList":true,
"attributes":[
{
"type":{
"title":{
"EN":"`\"elementsByTag\"`, {{attributeType.string}} or {{attributeType.array(string)}}",
"IT":"`\"elementsByTag\"`, {{attributeType.string}} o {{attributeType.array(string)}}"
}
},
"title":{
"EN":"Returns the element with the specified tag or tags.",
"IT":"Restituisce gli elementi aventi il tag o i tag specificati."
}
},{
"type":{
"title":{
"EN":"`\"elementByTag\"`, {{attributeType.string}} or {{attributeType.array(string)}}",
"IT":"`\"elementByTag\"`, {{attributeType.string}} o {{attributeType.array(string)}}"
}
},
"title":{
"EN":"Returns a single element with the specified tag or tags.",
"IT":"Restituisce un singolo elemento avente il tag o i tag specificati."
}
},{
"type":{
"title":{
"EN":"`\"variable\"`, {{attributeType.string}}",
"IT":"`\"variable\"`, {{attributeType.string}}"
}
},
"title":{
"EN":"Returns a variable value. The `self` variable refers to the element that launched the macro.",
"IT":"Restituisce il valore di una variabile. La variabile `self` si riferisce all'elemento che ha lanciato la macro."
}
},{
"type":{
"title":{
"EN":"`\"rest\"`"
}
},
"title":{
"EN":"Returns all elements discarded by the `on` statement of the macro previous line.",
"IT":"Restituisce tutti gli elementi scartati dalla clausola `on` della riga precedente della macro."
}
},{
"type":{
"title":{
"EN":"`\"elements\"`"
}
},
"title":{
"EN":"Returns all elements considered by the current macro line.",
"IT":"Restituisce gli elementi considerati dalla riga corrente della macro."
}
},{
"type":{
"title":{
"EN":"`\"element\"`"
}
},
"title":{
"EN":"Returns the current element.",
"IT":"Restituisce l'elemento corrente."
}
},{
"type":{
"title":{
"EN":"`\"count\"`"
}
},
"title":{
"EN":"Returns the selected elements count.",
"IT":"Restituisce il numero di elementi attualmente selezionati."
}
},{
"type":{
"title":{
"EN":"`\"first\"`"
}
},
"title":{
"EN":"Returns the first of the selected elements.",
"IT":"Restituisce il primo elemento tra quelli selezionati."
}
},{
"type":{
"title":{
"EN":"`\"last\"`"
}
},
"title":{
"EN":"Returns the last of the selected elements.",
"IT":"Restituisce l'ultimo elemento tra quelli selezionati."
}
},{
"type":"string",
"title":{
"EN":"Returns the selected element attribute value.",
"IT":"Restituisce il valore dell'attributo specificato dell'elemento selezionato."
}
}
]
}
},{
"name":"variable",
"type":"string",
"title":{
"EN":"Returns a variable value. The `self` variable refers to the element that launched the macro.",
"IT":"Restituisce il valore di una variabile. La variabile `self` si riferisce all'elemento che ha lanciato la macro."
}
},{
"name":"self",
"type":"boolean",
"title":{
"EN":"Returns the element that launched the macro.",
"IT":"Restituisce l'elemento che ha lanciato la macro."
}
},{
"name":"random",
"title":{
"EN":"Returns a random value.",
"IT":"Restituisce un valore casuale."
},
"section":{
"attributes":[
{
"name":"value",
"type":"array(any)",
"title":{
"EN":"Returns a random value from the specified list.",
"IT":"Restituisce un valore casuale tra quelli specificati."
}
},
{
"name":"number",
"title":{
"EN":"Returns a random number.",
"IT":"Restituisce un numero casuale."
},
"section":{
"attributes":[
{
"name":"from",
"type":"float",
"title":{
"EN":"Sets the lowest number. (included) If not specified, `0`.",
"IT":"Stabilisce il numero più basso. (incluso) Se non specificato, `0`."
}
},{
"name":"to",
"type":"float",
"title":{
"EN":"Sets the highest number. (excluded) If not specified, `0`.",
"IT":"Stabilisce il numero più alto. (escluso) Se non specificato, `0`."
}
},{
"name":"step",
"type":"float",
"title":{
"EN":"Sets the step to be used. If not specified, `1`.",
"IT":"Stabilisce il passo da usare. Se non specificato, `1`."
}
}
]
}
}
]
}
},{
"name":"sum",
"type":"array(any)",
"title":{
"EN":"Returns the sum of the specified values.",
"IT":"Restituisce la somma dei valori specificati."
}
},{
"name":"subtract",
"type":"array(any)",
"title":{
"EN":"Returns the subtraction of the specified values.",
"IT":"Restituisce la sottrazione dei valori specificati."
}
},{
"name":"multiply",
"type":"array(any)",
"title":{
"EN":"Returns the multiplication between the specified values.",
"IT":"Restituisce la moltiplicazione tra i valori specificati."
}
},{
"name":"divide",
"type":"array(any)",
"title":{
"EN":"Returns the division between the specified values.",
"IT":"Restituisce la divisione tra i valori specificati."
}
}
]
}
},
"macroCondition":{
"section":{
"id":"macroCondition",
"shortTitle":{
"EN":"Macro condition",
"IT":"Condizione macro"
},
"title":{
"EN":"Macro condition structure",
"IT":"Struttura condizione macro"
},
"description":{
"EN":"A macro condition is described by an array of objects. Each object describes one or multiple sub-conditions.\n\nIf a macro condition has just one line you can omit the array and describe the condition object only. I.e., the `[ { \"isCollidingWith\": { \"get\": [ \"elementByTag\", \"deck\" ] } } ]` macro condition contains a single condition, so it can be shortened with `{ \"isCollidingWith\": { \"get\": [ \"elementByTag\", \"deck\" ] } }`.",
"IT":"Una condizione macro è descritta da un array di oggetti, dove ogni oggetto descrive una o più sotto-condizioni. La condizione macro risulterà vera se tutte le condizioni e sotto-condizioni sono verificate.\n\nSe una condizione macro è composta da una sola riga è possibile omettere l'array e specificare il singolo oggetto che descrive la condizione. Ad esempio, la condizione macro `[ { \"isCollidingWith\": { \"get\": [ \"elementByTag\", \"deck\" ] } } ]` contiene una sola condizione, per cui può essere abbreviata con `{ \"isCollidingWith\": { \"get\": [ \"elementByTag\", \"deck\" ] } }`."
},
"isArray":true,
"attributes":[
{
"name":"value",
"type":"macroGetter",
"title":{
"EN":"Determines the value to be verified. If not specified, consider the current element.",
"IT":"Stabilisce il valore da verificare. Se non specificato considera l'elemento corrente."
}
},{
"name":"isValued",
"type":"boolean",
"title":{
"EN":"If `TRUE`, test if the value to verify is _true-ish_.",
"IT":"Se `TRUE`, valuta se il valore da verificare è _true-ish_."
}
},{
"name":"isNotValued",
"type":"boolean",
"title":{
"EN":"If `TRUE`, test if the value to verify is _false-ish_.",
"IT":"Se `TRUE`, valuta se il valore da verificare è _false-ish_."
}
},{
"name":"isEqualTo",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is equal to the specified value.",
"IT":"Valuta se il valore da verificare è uguale al valore specificato."
}
},{
"name":"isNotEqualTo",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is not equal to the specified value.",
"IT":"Valuta se il valore da verificare non è uguale al valore specificato."
}
},{
"name":"isSameTo",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is identical to the specified value. It's useful to check an element's identity.",
"IT":"Valuta se il valore da verificare è identico al valore specificato. Utile per verificare l'identità di un elemento."
}
},{
"name":"isNotSameTo",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is not identical to the specified value. It's useful to check an element's identity.",
"IT":"Valuta se il valore da verificare non è identico al valore specificato. Utile per verificare l'identità di un elemento."
}
},{
"name":"isGreaterThan",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is greater than the specified value.",
"IT":"Valuta se il valore da verificare è più grande al valore specificato."
}
},{
"name":"isGreaterEqualThan",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is greater than or equal to the specified value.",
"IT":"Valuta se il valore da verificare è più grande o uguale al valore specificato."
}
},{
"name":"isLessThan",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is lower than the specified value.",
"IT":"Valuta se il valore da verificare è più piccolo al valore specificato."
}
},{
"name":"isLessEqualThan",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is lower than or equal to the specified value.",
"IT":"Valuta se il valore da verificare è più piccolo o uguale al valore specificato."
}
},{
"name":"isCollidingWith",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element colliding with the specified element.",
"IT":"Valuta se il valore da verificare è un elemento che collide con l'elemento specificato."
}
},{
"name":"isNotCollidingWith",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element not colliding with the specified element.",
"IT":"Valuta se il valore da verificare è un elemento che non collide con l'elemento specificato."
}
},{
"name":"isOver",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element with a higher z-index than the specified element.",
"IT":"Valuta se il valore da verificare è un elemento che si trova più in primo piano rispetto all'elemento specificato."
}
},{
"name":"isNotOver",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element with a lower z-index than the specified element.",
"IT":"Valuta se il valore da verificare è un elemento che si trova meno in primo piano rispetto all'elemento specificato."
}
},{
"name":"isCovering",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element that does fully or partially cover the specified element.",
"IT":"Valuta se il valore da verificare è un elemento copre parzialmente o completamente l'elemento specificato."
}
},{
"name":"isNotCovering",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element that does not fully or partially cover the specified element.",
"IT":"Valuta se il valore da verificare è un elemento non copre parzialmente o completamente l'elemento specificato."
}
},{
"name":"isCoveredBy",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element that is fully or partially covered by the specified element.",
"IT":"Valuta se il valore da verificare è un elemento è coperto parzialmente o completamente dall'elemento specificato."
}
},{
"name":"isNotCoveredBy",
"type":"any",
"title":{
"EN":"Tests whether the value to be tested is an element that is not fully or partially covered by the specified element.",
"IT":"Valuta se il valore da verificare è un elemento non è coperto parzialmente o completamente dall'elemento specificato."
}
},{
"name":"hasTag",
"type":"array(string)",
"title":{
"EN":"Tests whether the value to be tested is an element having one of the specified tags.",
"IT":"Valuta se il valore da verificare è un elemento con uno dei tag specificati."
}
},{
"name":"hasNotTag",
"type":"array(string)",
"title":{
"EN":"Tests whether the value to be tested is an element having none of the specified tags.",
"IT":"Valuta se il valore da verificare è un elemento con nessuno dei tag specificati."
}
},{
"name":"isSelected",
"type":"boolean",
"title":{
"EN":"If `TRUE`, test if the value is a highlighted element.",
"IT":"Se `TRUE`, valuta se il valore da verificare è un elemento evidenziato."
}
},{
"name":"isNotSelected",
"type":"boolean",
"title":{
"EN":"If `TRUE`, test if the value is not a highlighted element.",
"IT":"Se `TRUE`, valuta se il valore da verificare non è un elemento evidenziato."
}
},{
"name":"not",
"type":"boolean",
"title":{
"EN":"If `TRUE`, returns the evaluated conditions' opposite value.",
"IT":"Se `TRUE`, restituisce il risultato opposto alle condizioni valutate."
}
}
]
}
},
"macro":{
"section":{
"id":"macro",
"shortTitle":{
"EN":"Macro",
"IT":"Macro"
},
"title":{
"EN":"Macro structure",
"IT":"Struttura macro"
},
"description":{
"EN":"A macro is described by an array of objects. Each object describes one or multiple actions to perform on a set of elements.\n\nIf a macro has just one line you can omit the array and describe the action object only. I.e., the `[ { \"forEach\": { \"setSide\": true } } ]` macro contains a single action, so it can be shortened with `{ \"forEach\": { \"setSide\": true } }`. Most values that can be specified in a macro, such as boolean, numbers, or elements, can be replaced by a [macro getter](#macro-getter-structure).",
"IT":"Una macro è descritta da un array di oggetti, dove ogni oggetto descrive una o più azioni da compiere su un set di elementi.\n\nSe una macro è composta da una sola riga è possibile omettere l'array e specificare il singolo oggetto che descrive l'azione. Ad esempio, la macro `[ { \"forEach\": { \"setSide\": true } } ]` contiene una sola operazione, per cui può essere abbreviata con `{ \"forEach\": { \"setSide\": true } }`.\n\nLarga parte dei valori specificabili in una macro, come quelli booleani, numerici o elementi, possono essere sostituiti invece da un [getter macro](#struttura-getter-macro)."
},
"isArray":true,
"attributes":[
{
"name":"getElementsByTag",
"type":"array(string)",
"title":{
"EN":"Select all the table elements with the specified tags. If not specified it uses the current element or the elements selected in the previous line.",
"IT":"Seleziona tutti gli elementi sul tavolo con i tag specificati. Se non specificato, usa l'elemento corrente o la selezione di elementi della riga precedente."
}
},{
"name":"getRest",
"type":"boolean",
"title":{