Download
(5Kb)
Download
Updated: 02-22-22 12:05 PM
Addon for:
oUF.
Compatibility:
Eternity's End (9.2.0)
Updated:02-22-22 12:05 PM
Created:unknown
Downloads:45,565
Favorites:159
MD5:

oUF Experience  Popular! (More than 5000 hits)

Version: 90200.32-Release
by: p3lim [More]

Description

oUF Experience is a element plug-in made for the unitframe framework oUF.
It does nothing by itself, and requires a layout that supports it to function.

It has the following features:

  • Experience/honor bar
  • Rested bar (optional)
  • Tags
  • Automatically hides under certain conditions:
    • Player has reached max level
    • Player has locked their experience gain
    • Player has reached trial account level cap
    • Player is in a vehicle
    • Player has disabled honor-tracking

For details on how to implement this in your own layout, please see the wiki:
https://github.com/p3lim-wow/oUF_Experience/wiki

Feedback

If you have a question, please use the comments section on Curse/WoWInterface.
If you would like to report a bug or contribute to the project, please follow this link to get started.

Legal

Please see the LICENSE file.

Changes in 90200.32-Release:
  • Changed: Update Interface version
Archived Files (2)
File Name
Version
Size
Author
Date
90105.31-Release
5kB
p3lim
11-03-21 12:17 PM
90100.30-Release
5kB
p3lim
07-01-21 12:08 AM


Post A Reply Comment Options
Unread 09-02-09, 11:23 AM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
Originally posted by p3lim
It does, though I changed the tooltip a tid bit in the latest few versions.
Should be on the 3rd line in the tooltip though.
I get the 2 lines but no rested xp I know the toon in the pic has 54% rested xp.



I don't know a huge amount about lua but getting there very slowly,i use the following to get my xp bar hidden and how i want it.

Code:
if(IsAddOnLoaded("oUF_Experience") and (unit == "player" or unit == "pet")) then
		self.Experience = CreateFrame("StatusBar", nil, self)
		self.Experience:SetPoint("BOTTOM", self, "TOP", 0, 5)
		if(unit == "pet") then
			self.Experience:SetPoint("BOTTOM", self, "TOP", 0, -31)
		end
		self.Experience:SetHeight(6)
		self.Experience:SetWidth((unit == "pet") and 110 or width)		
		self.Experience:SetStatusBarTexture(texture2)
		self.Experience:SetBackdrop(backdrop)
		self.Experience:SetBackdropColor(0,0,0)	
		self.Experience.PostUpdate = PostUpdateExperience		
		self:RegisterEvent("UPDATE_EXHAUSTION", PostUpdateExperience)
		
		self.Experience.bg = self.Experience:CreateTexture(nil, "BORDER")
		self.Experience.bg:SetAllPoints(self.Experience)
		self.Experience.bg:SetTexture(0.3, 0.3, 0.3)
		
		self.Experience:SetScript ('OnEnter', function(self) self:SetAlpha(1) end)
		self.Experience:SetScript ('OnLeave', function(self) self:SetAlpha(0) end)
		self.Experience:EnableMouse(true)
		self.Experience.Tooltip = true	
	end
Is the correct way to do it?
Report comment to moderator  
Reply With Quote
Unread 08-30-09, 01:00 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally posted by roguegenius
is there any addons that let you have more than one experiance bar like the one blizzard already give like a mod that can give u the option to do more.
Try searching this website? Stop asking in my comments, its completely off-topic.
Report comment to moderator  
Reply With Quote
Unread 08-30-09, 12:51 PM  
roguegenius
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Originally posted by p3lim
Well, yeah, it requires oUF and a layout that has support for this plug-in
is there any addons that let you have more than one experiance bar like the one blizzard already give like a mod that can give u the option to do more.
Report comment to moderator  
Reply With Quote
Unread 08-30-09, 12:44 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally posted by roguegenius
hey when i downloaded this and installed it i get some weared error on the plugin page saying file depency missing
Well, yeah, it requires oUF and a layout that has support for this plug-in
Report comment to moderator  
Reply With Quote
Unread 08-30-09, 12:42 PM  
roguegenius
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Originally posted by p3lim
It does, though I changed the tooltip a tid bit in the latest few versions.
Should be on the 3rd line in the tooltip though.
hey when i downloaded this and installed it i get some weared error on the plugin page saying file depency missing
Report comment to moderator  
Reply With Quote
Unread 08-30-09, 06:35 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally posted by Icerat
After some messing about i got it to auto hide my experience bar and bring it back when i mouse over it and it now shows a tool tip.

Once thing i have noticed though is that it doesn't show the amount of rested in the tool tip anymore, is this by design?

Keep up the great work
It does, though I changed the tooltip a tid bit in the latest few versions.
Should be on the 3rd line in the tooltip though.
Report comment to moderator  
Reply With Quote
Unread 08-29-09, 04:18 PM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
After some messing about i got it to auto hide my experience bar and bring it back when i mouse over it and it now shows a tool tip.

Once thing i have noticed though is that it doesn't show the amount of rested in the tool tip anymore, is this by design?

Keep up the great work
Report comment to moderator  
Reply With Quote
Unread 08-22-09, 02:56 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally posted by Subere
Not sure if you've fixed this yet or not but I think it's not disabling properly because of your enable / disable functions.

I'm not sure but I don't think the enable / disable functions actually pass a unit argument.

Changing both of the enable / disable functions to:
Code:
local function enable (self)
instead of:
Code:
local function enable (self, unit)
and either changing all the references to unit to self.unit or just adding a local unit = self.unit seemed to fix the problem.
You are right, I'll bring it up with haste.
Last edited by p3lim : 08-22-09 at 02:59 PM.
Report comment to moderator  
Reply With Quote
Unread 08-22-09, 01:36 PM  
Subere
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 22
Uploads: 1
Not sure if you've fixed this yet or not but I think it's not disabling properly because of your enable / disable functions.

I'm not sure but I don't think the enable / disable functions actually pass a unit argument.

Changing both of the enable / disable functions to:
Code:
local function enable (self)
instead of:
Code:
local function enable (self, unit)
and either changing all the references to unit to self.unit or just adding a local unit = self.unit seemed to fix the problem.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 06:42 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Havent updated anything to wowi yet, just some untested versions so far.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 03:30 AM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Sorry P3lim ... just for the record I downloaded the beta version from your github site and it has fixed my problems. I hope that helps in some way
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 03:17 AM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Please advise oUF Experience is broken for me atm. I get this error when mousing over the bar. Using the EnableMouseOver(tue) fixes but no tooltip as described below. HookScript not really playing ball either. Often the bar also just displays a full bar or empty bar and doesn't show values etc so its pretty broken for me atm.

All I require is for the bar to display the values as normal and the tooltip to give a little extra information as it did before.

Thanks

Code:
Message: Interface\AddOns\oUF_Experience\oUF_Experience.lua:21: bad argument #5 to 'format' (number expected, got no value)
Time: 08/08/09 10:15:05
Count: 3
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: ?
[C]: in function `format'
Interface\AddOns\oUF_Experience\oUF_Experience.lua:21: in function <Interface\AddOns\oUF_Experience\oUF_Experience.lua:17>
Interface\AddOns\oUF_Experience\oUF_Experience.lua:69: in function <Interface\AddOns\oUF_Experience\oUF_Experience.lua:68>

Locals:
__________________
The Jack bauer of all trades
Last edited by saulhudson : 08-08-09 at 03:27 AM.
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 10:12 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 26
Uploads: 8
Re: Re: Here's a fix.

Originally posted by p3lim
Ive changed it to set the tooltip once, but using hookscript is not a solution, as It will set the tooltip before the layout, and hooktip will be nil
HookScript behaves as SetScript if no script is found, so that's no problem at all. Has been that way for a while.

Edit: Note that the element not disabling properly is something should be looked into.

Edit 2: Also, style is run before the elements are enabled, how else would the if self.Experience check work? As a matter of fact, that is exactly why layouts were unable to add things to the OnEnter function.
Last edited by Gotai : 08-06-09 at 10:25 AM.
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 10:06 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Re: Here's a fix.

Originally posted by Gotai
I took the liberty of fixing the format along with some other changes. You can find my changes here: http://www.pastey.net/120079

p3lim: You were creating the tooltip function on every update, since this runs quite often you were creating a lot of unnecessary functions. Another change I've made is changing the SetScripts to HookScripts, allowing other people to set the OnEnter/OnLeave scripts to allow layouts to use these scripts as well. Do with it as you wish.

Edit: Apparently I broke hiding for 80s, not quite sure how I managed that.

Edit 2: Also, that bar:GetParent() on 129 should be self. I blame this heat. -.-
Ive changed it to set the tooltip once, but using hookscript is not a solution, as It will set the tooltip before the layout, and hooktip will be nil
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 08:17 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 26
Uploads: 8
Here's a fix.

I took the liberty of fixing the format along with some other changes. You can find my changes here: http://www.pastey.net/120079

p3lim: You were creating the tooltip function on every update, since this runs quite often you were creating a lot of unnecessary functions. Another change I've made is changing the SetScripts to HookScripts, allowing other people to set the OnEnter/OnLeave scripts to allow layouts to use these scripts as well. Do with it as you wish.

Edit: Apparently I broke hiding for 80s, not quite sure how I managed that.

Edit 2: Also, that bar:GetParent() on 129 should be self. I blame this heat. -.-

Edit 3: I believe this is not caused by my changes. I redownloaded a copy which also seems reluctant to disable itself. Dunno why, and it's too hot to figure that out now.
Last edited by Gotai : 08-06-09 at 09:15 AM.
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.