Advertisement
Tectoon

[TFM] TextArea com Limite de Clique

Aug 18th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. i=10
  2. ui.addTextArea(1,"<a href='event:c'><font size='24px'><p align='center'>Clique aqui!</p></font></a>", nil, 200, 100, 300, 30,0x768189,0x768189,0.9,true)
  3.  
  4. function eventTextAreaCallback(id, name, callback)
  5. if callback=="c" and i>0 then
  6. ui.addTextArea(1,"<a href='event:c'><font size='20px'><p align='center'>Clique novamente <R>"..i.."<N> Go !</p></font></a>", nil, 200, 100, 300, 30,0x768189,0x768189,0.9,true)
  7. i=i-1
  8. elseif callback=="c" and i==0 then
  9. ui.addTextArea(1,"<font size='14px'><p align='center'>Limite de Clique esgotado!</p></font>", nil, 200, 100, 300, 30,0x768189,0x768189,0.9,true)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement