Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------
- -- textXAPI --
- -- by Xkonti --
- -----------------
- function offsetToCenter(text, length)
- local offset
- offset = math.floor( (length - string.len(text) ) / 2)
- return offset
- end
- function offsetToRight(text, length)
- local offset = math.floor( length - string.len(text) )
- return offset
- end
Add Comment
Please, Sign In to add comment