PageRenderTime 203ms CodeModel.GetById 101ms app.highlight 4ms RepoModel.GetById 97ms app.codeStats 0ms

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

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