Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. tatable = tatable or {}
  2. tatable["theme1"] = {
  3. ["background"] = Color(70, 70, 70),
  4. ["blue"] = Color(155, 155, 155),
  5. }
  6.  
  7. function tatable:GetColor(colorname)
  8. local color = tatable[tonthemejesuppose][colorname]
  9. return color
  10. end
  11.  
  12. -- pour utiliser
  13.  
  14. tatable:GetColor("background")
  15.  
  16. -- Output:
  17. -- Color(70, 70, 70)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement