Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1.  
  2. function _M:TextSizeCategory()
  3.     local sizecat = "medium"
  4.     if self.size_category <= 1 then sizecat = "tiny"
  5.     elseif self.size_category == 2 then sizecat = "small"
  6.     elseif self.size_category == 3 then sizecat = "medium"
  7.     elseif self.size_category == 4 then sizecat = "big"
  8.     elseif self.size_category == 5 then sizecat = "huge"
  9.     elseif self.size_category >= 6 then sizecat = "gargantuan"
  10.     end
  11.     return sizecat
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement