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,477
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
Unread 11-04-09, 07: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 02:58 AM.
leizeQ is offline Report comment to moderator  
Reply With Quote
Unread 10-01-08, 07:29 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
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
Unread 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
Unread 09-22-08, 08:39 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
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
Unread 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
Unread 09-21-08, 06:54 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
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
Unread 09-21-08, 03:26 AM  
Shirk
A Defias Bandit
 
Shirk's Avatar

Forum posts: 3
File comments: 37
Uploads: 0
Hey p3lim, ever since r11 my mana percentage text has been blacked out.
Shirk is offline Report comment to moderator  
Reply With Quote
Unread 09-15-08, 08:01 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
Originally posted by Quokka
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>
Incoming update
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 09-15-08, 02:02 AM  
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view AddOns

Forum posts: 196
File comments: 248
Uploads: 16
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>
Quokka is offline Report comment to moderator  
Reply With Quote
Unread 09-14-08, 05:10 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
Originally posted by manix
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)
Its kinda obvious, and its only used as an example.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 09-13-08, 09:31 AM  
manix
A Murloc Raider
 
manix's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 13
Uploads: 2
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)
manix is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 03:44 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
Originally posted by yoyoo
Could you upload an older release please?
No, I dont have local backups of older files, try going back in the SVN changelog files to find the code you wish.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 03:11 PM  
yoyoo
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Could you upload an older release please?
yoyoo is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 01:31 PM  
eiszeit
A Flamescale Wyrmkin
 
eiszeit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 140
File comments: 161
Uploads: 9
Originally posted by p3lim
Keep in mind that this addon is optimized for oUF v1.1, not the current stable release
okay, then I know why it doesnt work for me and yooyoo (or how he is called)
__________________
Lyn I'm a mess of unfinished thoughts
eiszeit is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 01:06 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1226
File comments: 1182
Uploads: 25
Originally posted by eiszeit
Tested it with:

oUF_Lyn - newest from wowi
oUF_DruidMana - newest from wowi
and oUF - newest from wowi

It just doesn't show anything. When I use the code you provide in the description of this plugin, it throws out an error

Code:
layout.lua:614 attempt to index field 'DruidMana' (nil value)
Dunno why it doesn't shows up anything.

Bad thing is: I am away whole saturday.. so can't fix it myself. :/
Keep in mind that this addon is optimized for oUF v1.1, not the current stable release
p3lim 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.