/Tukui/modules/unitframes/templates/colors.lua

http://github.com/Asphyxia/Tukui · Lua · 55 lines · 49 code · 3 blank · 3 comment · 1 complexity · 830550f022d94d657374d9ba13220988 MD5 · raw file

  1. local ADDON_NAME, ns = ...
  2. local oUF = ns.oUF or oUF
  3. assert(oUF, "Tukui was unable to locate oUF install.")
  4. local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
  5. ------------------------------------------------------------------------
  6. -- Colors
  7. ------------------------------------------------------------------------
  8. T.oUF_colors = setmetatable({
  9. tapped = {0.55, 0.57, 0.61},
  10. disconnected = {0.84, 0.75, 0.65},
  11. power = setmetatable({
  12. ["MANA"] = {0.31, 0.45, 0.63},
  13. ["RAGE"] = {0.69, 0.31, 0.31},
  14. ["FOCUS"] = {0.71, 0.43, 0.27},
  15. ["ENERGY"] = {0.65, 0.63, 0.35},
  16. ["RUNES"] = {0.55, 0.57, 0.61},
  17. ["RUNIC_POWER"] = {0, 0.82, 1},
  18. ["AMMOSLOT"] = {0.8, 0.6, 0},
  19. ["FUEL"] = {0, 0.55, 0.5},
  20. ["POWER_TYPE_STEAM"] = {0.55, 0.57, 0.61},
  21. ["POWER_TYPE_PYRITE"] = {0.60, 0.09, 0.17},
  22. }, {__index = oUF.colors.power}),
  23. runes = setmetatable({
  24. [1] = {.69,.31,.31},
  25. [2] = {.33,.59,.33},
  26. [3] = {.31,.45,.63},
  27. [4] = {.84,.75,.65},
  28. }, {__index = oUF.colors.runes}),
  29. reaction = setmetatable({
  30. [1] = { 222/255, 95/255, 95/255 }, -- Hated
  31. [2] = { 222/255, 95/255, 95/255 }, -- Hostile
  32. [3] = { 222/255, 95/255, 95/255 }, -- Unfriendly
  33. [4] = { 218/255, 197/255, 92/255 }, -- Neutral
  34. [5] = { 75/255, 175/255, 76/255 }, -- Friendly
  35. [6] = { 75/255, 175/255, 76/255 }, -- Honored
  36. [7] = { 75/255, 175/255, 76/255 }, -- Revered
  37. [8] = { 75/255, 175/255, 76/255 }, -- Exalted
  38. }, {__index = oUF.colors.reaction}),
  39. class = setmetatable({
  40. ["DEATHKNIGHT"] = { 196/255, 30/255, 60/255 },
  41. ["DRUID"] = { 255/255, 125/255, 10/255 },
  42. ["HUNTER"] = { 171/255, 214/255, 116/255 },
  43. ["MAGE"] = { 104/255, 205/255, 255/255 },
  44. ["PALADIN"] = { 245/255, 140/255, 186/255 },
  45. ["PRIEST"] = { 212/255, 212/255, 212/255 },
  46. ["ROGUE"] = { 255/255, 243/255, 82/255 },
  47. ["SHAMAN"] = { 41/255, 79/255, 155/255 },
  48. ["WARLOCK"] = { 148/255, 130/255, 201/255 },
  49. ["WARRIOR"] = { 199/255, 156/255, 110/255 },
  50. }, {__index = oUF.colors.class}),
  51. }, {__index = oUF.colors})
  52. T.ColorTemplate = T.oUF_colors