Download
(6 Kb)
Download
Updated: 09-15-08 08:24 AM
Addon for:
oUF.
Pictures
File Info
Updated:09-15-08 08:24 AM
Created:unknown
Downloads:4,464
Favorites:26
MD5:
oUF DruidMana
Version: 20400.11
by: p3lim [More]
NO UPDATES FOR 3.0
Add this to your layout instead!
Code:
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
30000.12-Beta:
- Removed LibDruidMana
- Reworked for 3.0 changes

20400.11:
- Fixed error

20400.10:
- Fixed load errors

20400.8:
- Fixed so you can use only text

20400.4:
- Fixed folder structure for *nix

20400.3:
- Initial commit
Post A Reply Comment Options
Old 09-21-08, 06:54 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1176
File comments: 1205
Uploads: 24
That was an issue with oUF P3lim, not DruidMana. If you're not using oUF P3lim then I don't know whats your issue
p3lim is offline Report comment to moderator  
Reply With Quote
Old 09-22-08, 12:35 AM  
Shirk
A Defias Bandit
 
Shirk's Avatar

Forum posts: 3
File comments: 37
Uploads: 0
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.
Shirk is offline Report comment to moderator  
Reply With Quote
Old 09-22-08, 08:39 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1176
File comments: 1205
Uploads: 24
Originally posted by Shirk
Your oUF P3lim update fixed it. I just assumed it was from the oUF DruidMana update.
Nope, oUF P3lim had a faulty string.

http://www.wowinterface.com/download...html#changelog
p3lim is offline Report comment to moderator  
Reply With Quote
Old 09-30-08, 07:52 PM  
Aranarth
A Deviate Faerie Dragon
 
Aranarth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 394
Uploads: 7
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.
Aranarth is offline Report comment to moderator  
Reply With Quote
Old 10-01-08, 07:29 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1176
File comments: 1205
Uploads: 24
Originally posted by Aranarth
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
This addon is not updated to 3.0 (yet), but thanks for the heads up
Last edited by p3lim : 10-01-08 at 07:31 AM.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 11-04-09, 06:27 AM  
leizeQ
A Murloc Raider
 
leizeQ's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 8
File comments: 49
Uploads: 1
minor bugs

hi, i was building an ouf layout and found two bugs in the druidmana config in description:

1. there is 'ifi' in place of 'if'
2. UnitPowerType funtion now returns powerType as the first argument so you have to remove the _, in the row where its used

edit: now its updated
Last edited by leizeQ : 11-05-09 at 01:58 AM.
leizeQ is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.