| Updated: | 09-15-08 08:24 AM |
| Created: | unknown |
| Downloads: | 3,643 |
| Favorites: | 26 |
| MD5: |
local function PreUpdatePower(self, event, unit)
if(self.unit ~= 'player') then return end
local powertype = UnitPowerType('player')
local min = UnitPower('player', SPELL_POWER_MANA)
local max = UnitPowerMax('player', SPELL_POWER_MANA)
self.DruidMana:SetMinMaxValues(0, max)
self.DruidMana:SetValue(min)
if(min ~= max) then
self.DruidMana.Text:SetFormattedText('%d%%', math.floor(min / max * 100))
else
self.DruidMana.Text:SetText()
end
self.DruidMana:SetAlpha((powertype ~= 0) and 1 or 0)
self.DruidMana.Text:SetAlpha((powertype ~= 0) and 1 or 0)
end
![]() |
Comment Options |
|
|
|
|
You can now call UnitPower("player", SPELL_POWER_MANA) and UnitPowerMax("player", SPELL_POWER_MANA) inside the UNIT_MANA event when in cat/bear form. No need for LibDruidMana-1.0 anymore. Enjoy
![]() EDIT: sorry i thought it was a WotLK addon :P
Last edited by Aranarth : 09-30-08 at 07:56 PM.
|
|
|
|
|
|
||
http://www.wowinterface.com/download...html#changelog |
||
|
|
|
|
|
|
Your oUF P3lim update fixed it. I just assumed it was from the oUF DruidMana update.
![]()
Last edited by Shirk : 09-22-08 at 12:36 AM.
|
|
|
|
|
|
|
|
That was an issue with oUF P3lim, not DruidMana. If you're not using oUF P3lim then I don't know whats your issue
|
|
|
|
|
|
|
|
Hey p3lim, ever since r11 my mana percentage text has been blacked out.
|
|
|
|
|
|
||
|
||
|
|
|
|
|
|
there is a error in r10
Interface\AddOns\oUF_DruidMana\oUF_DruidMana.lua:5: Attempt to find 'this' in non-table object (used '.' instead of ':' ?) [C]: ? [C]: in function `?' Interface\AddOns\oUF_DruidMana\oUF_DruidMana.lua:5: in function <Interface\AddOns\oUF_DruidMana\oUF_DruidMana.lua:4> Interface\AddOns\oUF_DruidMana\oUF_DruidMana.lua:11: in function `?' Interface\AddOns\oUF\ouf.lua:82: in function <Interface\AddOns\oUF\ouf.lua:80> |
|
|
|
|
|
||
|
||
|
|
|
|
|
|
Just one thing - If you wonder why the hell the druid mana bar is not showing, then you have to set some texture at that line:
Code:
self.DruidMana:SetStatusBarTexture(texture) |
|
|
|
|
|
||
|
||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
Could you upload an older release please?
|
|
|
|
|
||
__________________
IF HOME IS WHERE THE HEART IS... WHERE DO YOU GO WHEN YOU DON'T HAVE A HEART? ALSO KNOWN AS: LYN |
||
|
|
|
|
||
|
||
|
|
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.