Core: registro de metadados de blocos (tb_meta) + testes; metadados declarados nas libraries
This commit is contained in:
1 parent
22ae18f508
commit
036162280d
14 files changed
+397
-2
No files matched your search
@@ -36,6 +36,12 @@ static bool appearance_init(TinyBlocks* rt, TinyBlocks_LibraryBlock* lib) {
|
||||
};
|
||||
tb_library_set_category(lib, &cat);
|
||||
|
||||
/* Metadados dos blocos (tooltip do editor: Alt + hover). */
|
||||
TB_BLOCK_META("IO.Print", "eval_print",
|
||||
"Mostra um texto e um valor na saida");
|
||||
TB_BLOCK_META("IO.PrintInt", "eval_print_int",
|
||||
"Mostra um numero inteiro na saida");
|
||||
|
||||
static const TinyBlocks_SlotDesc print_in[] = {{"label", TB_VALUE_TEXT}, {"value", TB_VALUE_NONE}};
|
||||
static const TinyBlocks_SlotDesc one_int[] = {{"n", TB_VALUE_INTEGER}};
|
||||
|
||||
|
||||
Reference in new issue
Block a user