Take two
p3lim-52096 [08-13-08 - 02:11]
Take two
git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@7 8c7459ed-49dc-4bc8-85d7-b6381a8f5413
diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua
index dac7157..741165a 100644
--- a/oUF_P3lim/oUF_P3lim.lua
+++ b/oUF_P3lim/oUF_P3lim.lua
@@ -199,6 +199,20 @@ local function style(settings, self, unit)
self.Spark.manatick = true
self.Name:Hide()
+
+ if(select(2, UnitClass(unit)) == 'DRUID') then
+ self.DruidManaBar = CreateFrame('StatusBar', nil, self)
+ self.DruidManaBar:SetHeight(1)
+ self.DruidManaBar:SetStatusBarTexture('Interface\\AddOns\\oUF_P3lim\\minimalist')
+ self.DruidManaBar:SetPoint('BOTTOMRIGHT", self.Power, 'TOPRIGHT')
+ self.DruidManaBar:SetPoint('BOTTOMLEFT", self.Power, 'TOPLEFT')
+
+ self.DruidManaText = self.DruidManaBar:CreateFontString(nil, 'OVERLAY')
+ self.DruidManaText:SetFont('Interface\\AddOns\\oUF_P3lim\\font.ttf', 10)
+ self.DruidManaText:SetShadowColor(0, 0, 0)
+ self.DruidManaText:SetShadowOffset(0.8, 0.8)
+ self.DruidManaText:SetPoint('CENTER')
+ end
end
if(unit == 'target') then