Quantcast

Fixed colors table

p3lim-52096 [12-27-08 - 06:20]
Fixed colors table

git-svn-id: svn://svn.wowinterface.com/oUF_Experience-227/trunk@23 f81be506-7a38-4956-9b9f-d707db2888a5
Filename
oUF_Experience/oUF_Experience.lua
diff --git a/oUF_Experience/oUF_Experience.lua b/oUF_Experience/oUF_Experience.lua
index 5b86525..835b1d0 100644
--- a/oUF_Experience/oUF_Experience.lua
+++ b/oUF_Experience/oUF_Experience.lua
@@ -5,7 +5,7 @@
 	 .Experience.Text [fontstring] (optional)

 	Shared:
-	 - Color [table] - will use oUF.colors.health if not set
+	 - Colors [table] - will use oUF.colors.health if not set
 	 - Tooltip [boolean]
 	 - MouseOver [boolean]

@@ -41,7 +41,7 @@ local function Update(self, event, unit)
 		bar:SetMinMaxValues(0, max)
 		bar:SetValue(min)
 		bar:EnableMouse()
-		bar:SetStatusBarColor(unpack(self.Color or self.colors.health))
+		bar:SetStatusBarColor(unpack(bar.Colors or self.colors.health))

 		if(not bar.MouseOver) then
 			bar:SetAlpha(1)