Fireicefly

Barre de chargement

Apr 19th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. i=0
  2. started=false
  3.  
  4. function eventNewPlayer(name)
  5.     if started then
  6.     ui.addTextArea(2,"", name, 0, 32, 800, 25,0xEB1224,0x9E0714,1,true)
  7. end
  8. end
  9.  
  10. function eventChatCommand(name,cmd)
  11. if cmd:sub(0,2)=="go" then
  12. started=true
  13. i=0
  14. end
  15. end
  16. function eventLoop(currentTime,timeRemaining)
  17.     if started then
  18.     if i <= 800  then
  19.         ui.addTextArea(2,"", name, 0, 32, 800, 25,0xEB1224,0x9E0714,1,true)
  20.         ui.addTextArea(1,"", nil, 0, 32, i, 25,0x7DE11A,0x53A403,1,true)
  21.         i=i+13.33
  22.     elseif i > 800 then
  23.         ui.addTextArea(2,"<font size='16px' color='#000000'><p align='center'>Chargement terminΓ© !</p></font>", nil, 0, 32, 800, 25,0x7DE11A,0x53A403,1,true)
  24.         i=800
  25.         started=false
  26.     end
  27. end
  28. end
  29.  
  30.  
  31. for name in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end
Advertisement
Add Comment
Please, Sign In to add comment