Addon Info.
Change Log
Comments (45)
  Category: Plug-Ins & Patches
Addon Information
Works with WoTLK
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:
30000.18
Date:
10-15-2008 01:13 PM
Size:
1.86 Kb
Downloads:
2,164
Favorites:
71
MD5:
Pictures
Click to enlarge
pet xp + player rep
oUF Experience   Popular!
Description:
This is a plug-in for oUF, so in order to make this plug-in work, you would need to download that.
You can find a link under the big download button to the right.

This is a plug-in to show a simple xp/rep bar with oUF.


Features:
  • Experience/Reputation bar
  • Text on that bar
  • Informational tooltip
  • Fading option (new!)
  • If player is at max level the bar cluster is hidden
  • If pet is at player level the bar cluster is hidden
  • Tracks watched reputation, xp if not watching.

Note:
Read the documentation inside the lua file for usage.
You need to add this addon to your layout's toc metadata!


Before posting a bug or asking for a feature, please read the main page on my Author Portal first.


Feel free to donate:
  Change Log - oUF Experience
30000.18:
- Update to 30000

20400.17:
- Fixed UNIT_PET argument

20400.16:
- Fixed tooltip issues
- Fixed pet updates

20400.14:
- Added MouseOver feature
- Changed the tooltip anchor

20400.13:
- Changed colorReputation into table
- Fixed pet xp visibility

20400.12:
- Added coloring options
- Added documentation
- Fixed reputation negative text
- Fixed pet experience bar error(s)

20400.11:
- Fixed reputation for max level players

20400.10:
- Added support for pet
- Added support for reputation
- Removed rested bar
- Removed PostUpdateExperience

20400.9:
- Fixed PostUpdateExperience

20400.8:
- Added checks for unit (player)
- Added PostUpdateExperience

20400.7:
- Fixed rested xp not showing properly

20400.6:
- Added support for tooltip

20400.4:
- Added support for rested bar
- Bail out early if at max level

20400.3:
- Initial commit
  Comments - oUF Experience
Post A Reply
Author Comments Comment Options
Old 12-02-2008, 01:00 PM  
Icerat
A Murloc Raider

Forum posts: 5
File comments: 12
Uploads: 0
Quote:
Originally posted by p3lim
Not at the moment, but I could easily add that.
I look forward to seeing it added
Icerat is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-30-2008, 10:17 AM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Quote:
Originally posted by Icerat
how can i get the tooltip to display rested as a percentage also? is it possible?
Not at the moment, but I could easily add that.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-29-2008, 07:26 AM  
Icerat
A Murloc Raider

Forum posts: 5
File comments: 12
Uploads: 0
how can i get the tooltip to display rested as a percentage also? is it possible?
Icerat is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-13-2008, 11:11 AM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Quote:
Originally posted by erica647
Would it be possible to add a feature that would allow a click on the bar to toggle between xp and rep? Thanks for another great mod btw!
Press the U button and there you have your toggle
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-11-2008, 08:59 PM  
erica647
A Cobalt Mageweaver
 
erica647's Avatar
Interface Author - Click to view interfaces

Forum posts: 207
File comments: 249
Uploads: 4
Would it be possible to add a feature that would allow a click on the bar to toggle between xp and rep? Thanks for another great mod btw!
__________________
Lyndi
Level 70 Night Elf Hunter
Silvermoon/The Jesters Guild
erica647 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 12:07 PM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Quote:
Originally posted by Caellian
Got this
Code:
Interface\AddOns\oUF_Experience\oUF_Experience.lua:22: attempt to perform arithmetic on local 'min' (a string value)
Count: 1
Posting as it happened, didn't check if it was a layout error yet.

nvm, my mistake, works fine
Its a copy-paste error, just have to commit changes

Was waiting with the push to fix the pet updates on summon/stables

Last edited by p3lim : 10-10-2008 at 01:15 PM.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 11:42 AM  
Caellian
A Wyrmkin Dreamwalker
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 56
File comments: 301
Uploads: 1
Got this
Code:
Interface\AddOns\oUF_Experience\oUF_Experience.lua:22: attempt to perform arithmetic on local 'min' (a string value)
Count: 1
Posting as it happened, didn't check if it was a layout error yet.

nvm, my mistake, works fine
__________________

Last edited by Caellian : 10-10-2008 at 11:45 AM.
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 11:37 AM  
Caellian
A Wyrmkin Dreamwalker
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 56
File comments: 301
Uploads: 1
Re: Re: Hair pulling mode on

Quote:
Originally posted by p3lim
Ill add it as a feature, its easier for you, me and the rest of the community
Indeed thanks a million, saves me the few hairs i have left
__________________
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 11:33 AM  
ObbleYeah
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 11
File comments: 12
Uploads: 1
Quote:
Ill add it as a feature, its easier for you, me and the rest of the community
Thanks for this p3lim, i've been attempting to do it for about 3 weeks or so now :P
ObbleYeah is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 10:35 AM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Re: Hair pulling mode on

Quote:
Originally posted by Caellian
-- snip --
Ill add it as a feature, its easier for you, me and the rest of the community

Last edited by p3lim : 10-10-2008 at 10:45 AM.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-10-2008, 02:57 AM  
Caellian
A Wyrmkin Dreamwalker
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 56
File comments: 301
Uploads: 1
Hair pulling mode on

Allright, the mouseover thing, i've got 2 half working version

The goal being to have the xp bar to show with a working tooltip when i mouseover it.

1. It works just fine i have the xp bar + tooltip showing when i mouseover the xp bar location. Exept on login or reload, i have to mouseover the player frame just once and then it works like a charm.

Code:
			self:SetScript("OnEnter", function(self)
				local origOnEnter = self.Experience:GetScript("OnEnter")
				self.Experience:SetScript('OnEnter', function(self,...) self:SetAlpha(1) origOnEnter(self, ...) end)
			end)

			self:SetScript("OnLeave", function(self)
				local origOnLeave = self.Experience:GetScript("OnLeave")
				self.Experience:SetScript('OnLeave', function(self, ...) self:SetAlpha(0) origOnLeave(self,...) end)
			end)
2. Different version from Haste, this one will make it show the xp bar + tooltip when i mouseover the player frame, it's not bad but unfortunately it will also show the tooltip when i mouseover the xp bar location without showing the xp bar.

Code:
			self:SetScript("OnEnter", function(self)
				local exp = self.Experience
				exp:SetAlpha(1)
				exp:GetScript"OnEnter"(exp)
			end)

			self:SetScript("OnLeave", function(self)
				local exp = self.Experience
				exp:SetAlpha(0)
				exp:GetScript"OnLeave"(exp)
			end)
The first version works a bit more like i expected, exept that little on login bug but as i've been told, the code isn't good at all.
The second version doesn't do what i want but it's not that bad, still has a small mouseover bug.

Conclusion:

1. Could you make any of those 2 version works correctly ?
2. If not, could you add a mouseover feature in oUF_Experience itself please ?
__________________
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-04-2008, 08:00 PM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Known issue: pet xp bar doesnt update when you pull a pet out from stables, looking for a fix for this.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-04-2008, 07:58 PM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Quote:
Originally posted by Caellian
One last question, according to wowwiki, which isn't very clear unfortunately, i should do something like this:
Code:
function self.Experience_OnEnter()
	self.Experience:Show()
end

function self.Experience_OnLeave()
  self.Experience:Hide()
end
To have my xp bar only show on mouseover, but it does nothing.
You should really stop editing posts, cause it doesnt leave anything in my mailbox.

You need to set a script for those functions, that example was from XML, not lua
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-04-2008, 12:58 PM  
Caellian
A Wyrmkin Dreamwalker
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 56
File comments: 301
Uploads: 1
Quote:
Originally posted by p3lim
Explain better
- Example
Code:
self.Experience.bg:SetVertexColor(.31,.45,.63,.50)
Also affect the reputation background, and i can't set it independently.

One last question, according to wowwiki, which isn't very clear unfortunately, i should do something like this:
Code:
function self.Experience_OnEnter()
	self.Experience:Show()
end

function self.Experience_OnLeave()
  self.Experience:Hide()
end
To have my xp bar only show on mouseover, but it does nothing. (actually i should probably ask this in the oUF topic)
__________________

Last edited by Caellian : 10-04-2008 at 08:31 PM.
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-04-2008, 07:22 AM  
p3lim
A Chromatic Dragonspawn
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 187
File comments: 495
Uploads: 16
Quote:
Originally posted by Caellian
Yes yes working just fine

a few things with the latest release

- i was playing with reputation/experience settings and tried to color the xp with my hp gradient.
self.colorExperience = self.colors.smooth
it was kinda working exept it was red (first color of the gradient) all the way from 0% to 100%, i guess gradients won't work ?

- when it switch to reputation it doesn't seems to have its own background, it takes its color from the experience one instead.

- Lastly, i wasn't able to setup a custom color for reputation without commenting line 54 from oUF_Experience, not a big deal though.

Code:
if(self.colorReputation) then bar:SetStatusBarColor(FACTION_BAR_COLORS[id].r, FACTION_BAR_COLORS[id].g, FACTION_BAR_COLORS[id].b) end
Gradients wont work without a function

Explain better

There was no intention (yet) to have custom reputation colors
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



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


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.