Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 30/04/2016
- --Last update: 26/05/2016
- --[[ Notes:
- Does:
- Cria um listador de textos de timer já determinado.
- ]]--
- local texts = {
- [1] = "text 1",
- [2] = "text 2",
- }
- p,q = 0,0
- local timer = coroutine.wrap(function()
- for i = 1,#texts do
- _G.p = i
- ui.addTextArea(0,texts[i],nil,nil,nil,nil,nil,1,1,1,true) -- Opções da textarea
- coroutine.yield()
- end
- end)
- eventLoop=function(currentTime)
- q = q + .5
- if q == 25 --[[ Mude o 25 para a quantidade de segundos que você desejar ]] then
- q = 0
- if p < #texts then timer() else ui.removeTextArea(0,nil) end
- end
- end
- timer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement