From affd4eedd171cc5a64e9de7d359048731764c4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Wed, 6 Dec 2023 19:43:54 -0300 Subject: [PATCH] feat (heart): new know more button --- health/heart/integrated/lively-talk-oid-custom.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/health/heart/integrated/lively-talk-oid-custom.js b/health/heart/integrated/lively-talk-oid-custom.js index d11e9f9..498df73 100644 --- a/health/heart/integrated/lively-talk-oid-custom.js +++ b/health/heart/integrated/lively-talk-oid-custom.js @@ -228,13 +228,13 @@ Oid.customize('foid:lively-talk', { }*/ if(existe =='X'){ - oid.txt += 'Não existe coração' + oid.txt += 'Não existe coração' }else{ if(instrucoes =='X'){ oid.txt += 'Blocos soltos' }else{ if(ciclo =='X'){ - oid.txt += 'Quantidade de ciclos incorreta' + oid.txt += 'Quantidade de ciclos incorreta' } if(vazio =='X'){ oid.txt += 'Campo vazio' @@ -264,6 +264,12 @@ Oid.customize('foid:lively-talk', { else if (parameters.value == 'saiba') { oid.handleSend('display', {value: (oid.know == null || oid.know.length == 0) ? '-> Não há nova informações...' : oid.know}) + } else if (parameters.value == 'sem-coracao') { + oid.handleSend('display', + {value: 'Não existe um coração. Arraste um bloco coração para começar!'}) + } else if (parameters.value == 'ciclos-incorreta') { + oid.handleSend('display', + {value: oid.smciclo}) } else if (parameters.value.length == 0) oid.statements = null else if (parameters.value != null) {