From af7d029644d2c31a7dda3c10b1d59bd729ad19a0 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 25 Apr 2007 23:12:27 +0000 Subject: [PATCH] * Only mana bars will be shown by default instead of showing energy/rage/etc. * You can adjust this by changing /script PerfectRaid.db.profile.showmanaonly = false --- PerfectRaid.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PerfectRaid.lua b/PerfectRaid.lua index b0f61b3..d142fc1 100644 --- a/PerfectRaid.lua +++ b/PerfectRaid.lua @@ -55,6 +55,7 @@ function PerfectRaid:Initialize() }, positions = {}, hideparty = true, + showmanaonly = true, }, } @@ -522,6 +523,13 @@ function OnAttributeChanged(frame, name, value) frame.manabar:SetMinMaxValues(0, UnitManaMax(unit)) frame.manabar:SetValue(UnitMana(unit)) + -- Show/Hide the mana bar depending on unit power type + if UnitPowerType(unit) == 0 and frame.options.manaheight > 0 then + frame.manabar:Show() + elseif self.db.profile.showmanaonly then + frame.manabar:Hide() + end + frame.status:SetText(nil) frames[unit] = frames[unit] or {} -- 1.7.9.5