Category: Outdated Mods
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
p3lim's Portal Bug Reports Feature Requests

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
20400.11
Date:
09-15-2008 10:24 AM
Size:
5.99 Kb
Downloads:
2,685
Favorites:
32
MD5:
Pictures
oUF DruidMana
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
  Change Log - oUF DruidMana
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
  Comments - oUF DruidMana
Post A Reply Comment Options
Old 08-29-2008, 01:28 PM  
eiszeit
A Fallenroot Satyr
 
eiszeit's Avatar
Interface Author - Click to view interfaces

Forum posts: 29
File comments: 200
Uploads: 9
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. :/
__________________
IF HOME IS WHERE THE HEART IS... WHERE DO YOU GO WHEN YOU DON'T HAVE A HEART?
ALSO KNOWN AS: LYN

Last edited by eiszeit : 08-29-2008 at 01:37 PM.
eiszeit is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-29-2008, 12:28 PM  
yoyoo
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
somehow it is not working with lyn's stuffs
yoyoo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-22-2008, 07:49 PM  
p3lim
A Molten Giant
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 558
File comments: 838
Uploads: 19
Quote:
Originally posted by Pusikas
I am using the latest versions of oUF and p3lim found on wowi. 1.0.4 and r10. Druidmana simply does nothing at all for me. No error, no Manabar in bear or cat... mebbe I disabled something by accident. Will recheck this evening.

Edit: Checked it again right now. Installed latest versions of oUF_DruidMana, oUF and oUF_p3lim from this site. OptionHouse shows them all as running, BugSack shows no error. But no manabar at all in cat or bear...

Edit2: found it, I think.
changed
Code:
if(class == 'DRUID') then
to
Code:
if(pClass == 'DRUID') then
(note that I have next to now clue what the Lua code does, but I saw pClass being used a few lines farther down. the above line didn't set my computer afire, tho)
Yep, slight mistake from my side, but what you did should be a fine fix for it, I cba updating it right now, waiting for oUF 1.1 to be released as stable.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-22-2008, 11:56 AM  
Pusikas
A Kobold Labourer

Forum posts: 1
File comments: 99
Uploads: 0
Quote:
Originally posted by p3lim
oUF DruidMana works with oUF 1.0.4 and oUF P3lim r10, It will not work with oUF 1.1

I have a version ready for oUF 1.1, but im holding release until 1.1 is stable.
I am using the latest versions of oUF and p3lim found on wowi. 1.0.4 and r10. Druidmana simply does nothing at all for me. No error, no Manabar in bear or cat... mebbe I disabled something by accident. Will recheck this evening.

Edit: Checked it again right now. Installed latest versions of oUF_DruidMana, oUF and oUF_p3lim from this site. OptionHouse shows them all as running, BugSack shows no error. But no manabar at all in cat or bear...

Edit2: found it, I think.
changed
Code:
if(class == 'DRUID') then
to
Code:
if(pClass == 'DRUID') then
(note that I have next to now clue what the Lua code does, but I saw pClass being used a few lines farther down. the above line didn't set my computer afire, tho)

Last edited by Pusikas : 08-22-2008 at 07:30 PM.
Pusikas is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-22-2008, 05:21 AM  
p3lim
A Molten Giant
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 558
File comments: 838
Uploads: 19
Quote:
Originally posted by Pusikas
Is this working with oUF_p3lim from this site? Does not seem to do anything for me...
oUF DruidMana works with oUF 1.0.4 and oUF P3lim r10, It will not work with oUF 1.1

I have a version ready for oUF 1.1, but im holding release until 1.1 is stable.

Last edited by p3lim : 08-22-2008 at 05:21 AM.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-21-2008, 08:04 PM  
Pusikas
A Kobold Labourer

Forum posts: 1
File comments: 99
Uploads: 0
Is this working with oUF_p3lim from this site? Does not seem to do anything for me...
Pusikas is online now Report comment to moderator   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.