posso ta errado mas ja vi alguns scripts usarem tpw..
icon.onAlgumaCoisa = function() ... end
pq n tenta...
icon.onClick = function () ... end
n tenhu muita certeza mas, n custa tentar ^^
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

posso ta errado mas ja vi alguns scripts usarem tpw..
icon.onAlgumaCoisa = function() ... end
pq n tenta...
icon.onClick = function () ... end
n tenhu muita certeza mas, n custa tentar ^^
info
Group: Visconde
Joined: 12/09/10
Posts: 416
Reputation: +160
Tibia Character: Draky Lucas

deu certinho, valew
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

kkk chute owna '--'
info
Group: Conde
Joined: 14/02/13
Posts: 702
Reputation: +196
Gender: Masculino

Duvida Sanada, Tópico movido.
info
Group: Visconde
Joined: 12/09/10
Posts: 416
Reputation: +160
Tibia Character: Draky Lucas
como faço um botão criado em LUA (icon = g_ui.createWidget('SpellButton',spellBarWindow)) executar uma função ao ser clicado??
tipo assim, no OTUI:
no LUA
for i = 1,10 do icon = g_ui.createWidget('SpellButton',spellBarWindow) --icon: icon:setId('spell'..i) enddae quero q o botao com id spell1 , por exemplo, execute uma função ao ser clicado... alguem?