Tectoon

[TFM] Letras 3D

Jun 25th, 2015
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. ---
  2. -- 3D Text Effect
  3. --
  4. --[[
  5. Params:
  6.     text, x, y, target, startID, textAreaCount, color, colorAdd, textSize,
  7.     factorX, factorY, width, height, backgroundColor, borderColor, opacity, isFixed
  8. ]]
  9.  
  10. function create3DText(t, x, y, n, si, c, cl, cla, sz, fX, fY, w, h, bg, br, o, f)
  11.     local fX,fY,bg,br,o,f = fX or 1,fY or 1,bg or 1,br or 0,o or 0,f or 1
  12.     local si,c,cl,cla,sz = si or 1,c or 10,cl or 0,cla or 0x101010,sz or 50
  13.     local t = '<font size="'..sz..'" color="#%x">' .. t
  14.     for i=si,si+c do
  15.         ui.addTextArea(i,t:format(cl+(i*cla)),n,x+(fX*i),y+(fX*i),w,h,bg,br,o,f)
  16.     end
  17. end
  18.  
  19. --# Example
  20. create3DText('Test', 200, 75)
Advertisement
Add Comment
Please, Sign In to add comment