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
@@ -127,6 +127,14 @@ static bool variables_init(TinyBlocks* rt, TinyBlocks_LibraryBlock* lib) {
|
||||
};
|
||||
tb_library_set_category(lib, &cat);
|
||||
|
||||
/* Metadados dos blocos (tooltip do editor: Alt + hover). */
|
||||
TB_BLOCK_META("Variables.Set", "eval_var_set",
|
||||
"Define o valor de uma variavel");
|
||||
TB_BLOCK_META("Variables.Change", "eval_var_change",
|
||||
"Altera (incrementa) o valor de uma variavel");
|
||||
TB_BLOCK_META("Variables.Get", "eval_var_get",
|
||||
"Le o valor de uma variavel");
|
||||
|
||||
static const TinyBlocks_SlotDesc var_in[] = {{"variável", TB_VALUE_TEXT}};
|
||||
static const TinyBlocks_SlotDesc var_set[] = {{"variável", TB_VALUE_TEXT}, {"valor", TB_VALUE_NONE}};
|
||||
static const TinyBlocks_SlotDesc any_out[] = {{"valor", TB_VALUE_NONE}};
|
||||
|
||||
Reference in new issue
Block a user