Advertisement
dcomicboy

color

Mar 30th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. var attribColor: params
  2. if (_attrib == "damage")
  3. attribColor.r := 225
  4. attribColor.g := 64
  5. attribColor.b := 108
  6. else if (_attrib == "accuracy")
  7. attribColor.r := 139
  8. attribColor.g := 255
  9. attribColor.b := 90
  10. else if (_attrib == "rof")
  11. attribColor.r := 223
  12. attribColor.g := 146
  13. attribColor.b := 40
  14. else if (_attrib == "ammo")
  15. attribColor.r := 85
  16. attribColor.g := 177
  17. attribColor.b := 250
  18. else if (_attrib == "range")
  19. attribColor.r := 213
  20. attribColor.g := 126
  21. attribColor.b := 255
  22. else if (_attrib == "power")
  23. attribColor.r := 255
  24. attribColor.g := 255
  25. attribColor.b := 21
  26. else
  27. attribColor.r := 81 //128
  28. attribColor.g := 156 //128
  29. attribColor.b := 221 //128
  30. end
  31. attribColor.a := 255
  32. attribColor.v := 255
  33. return attribColor
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement