Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dxDrawBorderedText(outlineSize, outlineColor, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI)
- if not text or not left or not top then return end
- if not outlineSize then outlineSize = 2 end
- if not outlineColor then outlineColor = 0x000000FF end
- if not right then right = left end
- if not bottom then bottom = top end
- if not color then color = 0xFFFFFFFF end
- if not scale then scale = 1 end
- if not font then font = "default" end
- if not alignX then alignX = "left" end
- if not alignY then alignY = "right" end
- if clip == nil then clip = false end
- if wordBreak == nil then wordBreak = false end
- if postGUI == nil then postGUI = false end
- for oX = -1*outlineSize, outlineSize do
- for oY = -1*outlineSize, outlineSize do
- dxDrawText(text, left + oX, top + oY, right + oX, bottom + oY, outlineColor, scale, font, alignX, alignY, clip, wordBreak, postGUI)
- end
- end
- dxDrawText(text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement