Download
(2 Kb)
Download
Updated: 06-14-14 10:29 PM
Addon for:
oUF.
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:06-14-14 10:29 PM
Created:unknown
Downloads:34,054
Favorites:170
MD5:
5.4
oUF Experience  Popular! (More than 5000 hits)
Version: 50400.14-Release
by: p3lim [More]
Supported oUF Version: 1.6.x

Description:
oUF Experience is a element plug-in made for the UnitFrame framework oUF.
It is required that you have this addon updated at all times to make everything work as it should.
You can download oUF by clicking on the link located under the "Download" button on the right.


Features:
- Experience bar
- Optional rested element
- Basic tags included
- Hides if the player is at max level


Note:
Wiki found on my GitHub page for basic implementation:
http://github.com/p3lim-wow/oUF_Experience/wiki
You need to add this addon to your layout's toc metadata!


Issues & Requests
To submit a bug report or feature request, please visit the Issue Tracker on my GitHub page.
Changes in 50400.14-Release:
  • Trial accounts have a different level cap
  • Revert e3851f3404abb6a636f893c5d528667b767acfdd
  • Update interface version
Changes in 50001.13-Release:
  • Don't bail for PostUpdates
Changes in 50001.12-Release:
  • Use double underscore to avoid tainting blizzard
  • Remove support for 1.5.x
  • Bump Interface version
Changes in 40300.11-Release:
  • Add support for 1.6
  • Update game version
  • Let the packager(s) set the version number automaticly
Changes in 40200.10-Release:
  • Pet experience isn't as big a deal any more
  • Update version
  • Return earlier if in a vehicle. Fixes issue #2
Changes in 40000.9-Release:
  • Register the tags outside of the Enable function
  • Update version
Changes in 40000.8-Release:
  • Add some basic tags
  • Update version
Changes in 40000.7-Release:
  • Add a fallback texture to the Rested bar
  • Update version
Changes in 40000.6-Release:
  • Clean up and update to 1.4 standard - Also updated to work with the new vehicle element
  • Remove comments
  • Remove tooltip option - The layout should be in charge of this
  • Update to the new override method
  • Add :ForceUpdate()
  • Back to basics
  • Sneak in a :PreUpdate()
  • Update TOC to 4.0
  • Fix some typos
  • End things early
  • Update version
Changes in 30300.5-Release:
  • Clean up the act and make everything work with vehicles and other pets
  • Add embedding support
  • Stupid copy/paste
  • Update TOC version
  • Update version
Changes in 30200.4-Release:
  • Let rested values go through, independant of the rested bar
  • Update version
Changes in 30200.3-Release:
  • Added default texture properly
  • Pass unit for disabling
  • Add some comments
  • Update version
Changes in 30200.2-Release:
  • Set version back to normal, learning by doing :/
  • Fix pet issues if layout has Rested bar enabled
  • Let the element handle the uncommon settings
  • Rename some functions
  • Pet xp bar should also replicate backdrop, if there is any
  • Just set the parent of the bg - Should be anchored to the main bar anyways
  • Update version
Archived Files (24)
File Name
Version
Size
Author
Date
50001.12-Releas
2kB
p3lim
08-30-12 06:11 AM
40300.11-Releas
2kB
p3lim
02-06-12 05:58 PM
40200.10-Releas
1kB
p3lim
10-03-11 07:24 PM
40000.9-Release
2kB
p3lim
10-14-10 11:56 AM
40000.8-Release
2kB
p3lim
10-13-10 12:39 PM
30300.5-Release
2kB
p3lim
12-28-09 11:53 AM
30200.4-Release
2kB
p3lim
09-07-09 04:24 PM
30200.3-Release
2kB
p3lim
08-22-09 03:20 PM
30200.2-Release
2kB
p3lim
08-17-09 03:58 PM
30200.1-Beta
2kB
p3lim
08-08-09 10:06 AM
30200.39
2kB
p3lim
08-04-09 04:22 PM
30200.38
2kB
p3lim
08-04-09 01:28 PM
30000.37
2kB
p3lim
07-15-09 12:51 PM
30000.36
2kB
p3lim
06-13-09 12:31 PM
30000.35
2kB
p3lim
06-11-09 02:27 PM
30000.34
2kB
p3lim
06-01-09 10:45 AM
30000.33
2kB
p3lim
06-01-09 03:55 AM
30000.32
2kB
p3lim
05-26-09 02:36 PM
30000.31
2kB
p3lim
05-24-09 07:28 PM
30000.30
2kB
p3lim
05-20-09 10:52 AM
30000.29
2kB
p3lim
04-17-09 09:34 AM
30000.28
2kB
p3lim
02-07-09 01:36 PM
30000.26
2kB
p3lim
01-14-09 01:38 PM
30000.25
2kB
p3lim
01-13-09 01:41 PM


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

Forum posts: 28
File comments: 47
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?
Icerat is offline Report comment to moderator  
Reply With Quote
Old 08-30-09, 01:00 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
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.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 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.
roguegenius is offline Report comment to moderator  
Reply With Quote
Old 08-30-09, 12:44 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
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
p3lim is offline Report comment to moderator  
Reply With Quote
Old 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
roguegenius is offline Report comment to moderator  
Reply With Quote
Old 08-30-09, 06:35 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
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.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 08-29-09, 04:18 PM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 47
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
Icerat is offline Report comment to moderator  
Reply With Quote
Old 08-22-09, 02:56 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
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.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 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.
Subere is offline Report comment to moderator  
Reply With Quote
Old 08-08-09, 06:42 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
Havent updated anything to wowi yet, just some untested versions so far.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 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: 8
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
saulhudson is offline Report comment to moderator  
Reply With Quote
Old 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: 8
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.
saulhudson is offline Report comment to moderator  
Reply With Quote
Old 08-06-09, 10:12 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
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.
Gotai is offline Report comment to moderator  
Reply With Quote
Old 08-06-09, 10:06 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1177
File comments: 1205
Uploads: 25
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
p3lim is offline Report comment to moderator  
Reply With Quote
Old 08-06-09, 08:17 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
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.
Gotai 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.