Advertisement
xerpi

Lua print vertical

Apr 22nd, 2011
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. function print_vert(scroll,dir,x,y,texto,tamaño,colore,colorsombra)
  2. if not colore then colore = color.new(255,255,255) end
  3. if not colorsombra then colorsombra = 0x0 end
  4. if not tamaño then tamaño = 0.77 end
  5. for i = 1, #texto do
  6.     if dir == "up" then
  7.         screen.print(x,y-(i-1)*scroll,string.sub(texto,i,i),tamaño,colore,colorsombra)
  8.     elseif dir == "down" then
  9.         screen.print(x,y+(i-1)*scroll,string.sub(texto,i,i),tamaño,colore,colorsombra)
  10.     end
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement