View Single Post
02-25-09, 03:15 AM   #802
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
.colorReaction // UnitSelectionColor

I really need some help with this please:

I'm trying to modify the color table that's going to be used by .colorReaction // UnitSelectionColor, i've tried all the way i knew but none worked.
I can't even find anything about UnitSelectionColor on wowwiki, or anywhere else for that matter, and that's what i get from wowprogramming
This function has not yet been documented. You could document this function by logging in, and clicking the 'Edit' tab.
Here's what i've tried anyway:

Code:
local colors = setmetatable({
	reaction = setmetatable({
		['civilian'] = { 0.2, 0.2, 1.0 },
		['friendly'] = { 0.2, 1.0, 0.2 },
		['hostile'] = { 1.0, 0.2, 0.2 },
		['neutral'] = { 1.0, 1.0, 0.2 },
	}, {__index = oUF.colors.reaction}),
}, {__index = oUF.colors})
And also
Code:
local	reaction = {
	civilian = {.55, .57, .61},
	friendly = {.33,.59,.33},
	hostile = {.69,.31,.31},
	neutral = {.65,.63,.35},
}
And finally
Code:
oUF.colors.reaction = {...chain all the colors in here...}
None of these works, so, does anyone know exactly how i could override the color used by .colorReaction // UnitSelectionColor and show me an example ?
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }