×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Tutorial] TextArea e Callback
« ‹ 2 / 2
[Tutorial] TextArea e Callback
Bigbryanbig
« Citoyen »
1481376900000
    • Bigbryanbig#0000
    • Profil
    • Derniers messages
    • Tribu
#21
  0
nao entendi brenower manda cochicho bigbryanbig e explica
Contistente
« Citoyen »
1481383680000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Bigbryanbig a dit :
So uma pergunta: como faz 2 butões sem bugar?

Você pode usar mais de uma textarea apenas troque a id, as ids não podem ser iguais se não buga
Contistente
« Citoyen »
1481383740000
    • Contistente#0000
    • Profil
    • Derniers messages
    • Tribu
#23
  0
Bigbryanbig a dit :
nao entendi brenower manda cochicho bigbryanbig e explica

Sobre o evento ele quis dizer que você pode usar mais de uma vez o <a href='event:'> em uma textarea
Bigbryanbig
« Citoyen »
1482111780000
    • Bigbryanbig#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Nao consigo fazer o botão de fechar com outro botão
:V
Bigbryanbig
« Citoyen »
1482111840000
    • Bigbryanbig#0000
    • Profil
    • Derniers messages
    • Tribu
#25
  0
oque a de errado?[spoiler][/ui.addTextArea(3,"<a href='event:texto2'>Comprar</a>", NIL,20,60,50,20,1,1,0.8,true)


function eventTextAreaCallback(id, player, callback)
if callback == "texto1" then
ui.removeTextArea(3, player)
ui.addTextArea(3,"<br><br>",player,20,60,200,300,1,1,0.8,true)
print("<j>".. player .." <bl>abriu a <vp>Lista "..id..".")
end
end

function eventNewPlayer(player)
ui.addTextArea(3,"<a href='event:texto1'>Comprar</a>", NIL,20,60,200,300,1,1,0.8,true)
end

ui.addTextArea(1, "<font size='16'> <a href='event:text'>neste minigame vc deve colocar bolas dentro do canhão e tirar todo o hp do inimigos e desviar das bolas do inimigo", p, 248.5, 97, 173, 202, 0x1c1c1c)
ui.addTextArea(0, "<font size='16'> Help", p,248 , 59, 173, 30, 0x3cff)
ui.addTextArea(2, "<font size='16'> <a href='event:close'>Fechar</a>", p, 290.5, 269, 96, 30, 0xff0000)

function eventTextAreaCallback(id,p,link)
if link == "close" then
ui.removeTextArea(0,p)
ui.removeTextArea(1,p)
ui.removeTextArea(2,p)
end
end



]
Peanutbutter
1482112380000
    • Peanutbutter#7887
    • Profil
    • Derniers messages
    • Tribu
#26
[Modéré par Kiwrimai, raison : Comentário sem relação com o tópico.]
Globo
« Citoyen »
1483979640000
    • Globo#6445
    • Profil
    • Derniers messages
    • Tribu
#27
  0
como faço um pra clica e tirar a text area -.-

aprendi ja

Dernière modification le 1483983360000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Tutorial] TextArea e Callback
« ‹ 2 / 2
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27