Thetroz

Ejemplo de Callback

Dec 3rd, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. ui.addTextArea(1, "<a href='event:soytros'>Clickeame</a> y mira la magia *-*", nil, 100, 100)
  2.  
  3. function eventTextAreaCallback(id, name, event)
  4.     if event == "soytros" then
  5.         --aqui escribes lo que pasa
  6.         ui.addTextArea(2, "<p align='center'><j>Hola soy intas</p>", nil, 200, 200, 100, 100)
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment