Advertisement
qaisjp

dxDrawBorderedText

Jan 18th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. function dxDrawBorderedText(outlineSize, outlineColor, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI)
  2.     if not text or not left or not top then return end
  3.     if not outlineSize then outlineSize = 2 end
  4.     if not outlineColor then outlineColor = 0x000000FF end
  5.     if not right then right = left end
  6.     if not bottom then bottom = top end
  7.     if not color then color = 0xFFFFFFFF end
  8.     if not scale then scale = 1 end
  9.     if not font then font = "default" end
  10.     if not alignX then alignX = "left" end
  11.     if not alignY then alignY = "right" end
  12.     if clip == nil then clip = false end
  13.     if wordBreak == nil then wordBreak = false end
  14.     if postGUI == nil then postGUI = false end
  15.     for oX = -1*outlineSize, outlineSize do
  16.         for oY = -1*outlineSize, outlineSize do
  17.             dxDrawText(text, left + oX, top + oY, right + oX, bottom + oY, outlineColor, scale, font, alignX, alignY, clip, wordBreak, postGUI)
  18.         end
  19.     end
  20.     dxDrawText(text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement