Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 10-15-14 11:46 AM
Addon for:
oUF.
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-15-14 11:46 AM
Created:unknown
Downloads:34,581
Favorites:168
MD5:
Categories:oUF: Plugins, Warlords of Draenor Beta

oUF Experience  Popular! (More than 5000 hits)

Version: 60000.15-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 does nothing by itself, and requires a layout that supports it to function.

Features:

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

Note:
For details on how to implement this in your own layout, please see this wiki:
http://github.com/p3lim-wow/oUF_Experience/wiki
Don't forget to add this addon to your OptionalDeps!

Issues & Requests
To submit a bug report or feature request, please visit the Issue Tracker.

Changes in 60000.15-Release:
  • Added: License
  • Added: Changelog
  • Changed: Update Interface version
  • Changed: Only show on player frame
  • Changed: Internal performance tweaks
Changes in 50400.14-Release:
  • Added: Support for trial account level cap
  • Changed: Update Interface version
Changes in 50001.13-Release:
  • Fixed: PostUpdate not firing for players in vehicle or at max level
Changes in 50001.12-Release:
  • Changed: Update Interface version
  • Fixed: Taints caused by Blizzard leaking a global variable
  • Removed: Support for oUF 1.5
Changes in 40300.11-Release:
  • Changed: Update Interface version
  • Changed: Update support for oUF 1.6
  • Changed: Added support for packagers to set the version automatically
Changes in 40200.10-Release:
  • Changed: Update Interface version
  • Changed: Stop updating early if player is in a vehicle
  • Removed: Experience bar for pets
Changes in 40000.9-Release:
  • Changed: Register tags regardless of element being added or not
Changes in 40000.8-Release:
  • Added: Tags
Changes in 40000.7-Release:
  • Added: Default texture to rested bar
Changes in 40000.6-Release:
  • Added: Override method
  • Added: ForceUpdate method
  • Added: PreUpdate method
  • Changed: Update Interface version
  • Changed: Update support for oUF 1.4
  • Removed: Tooltip options
Changes in 30300.5-Release:
  • Added: Embedding support
  • Changed: Update Interface version
  • Fixed: Hide while in a vehicle regardless of layout properties
  • Fixed: Hunter pet support
Changes in 30200.4-Release:
  • Fixed: Pass the rested xp regardless of unit
Changes in 30200.3-Release:
  • Fixed: Set the default texture properly
  • Fixed: Use the interal unitID for unit checks
Changes in 30200.2-Release:
  • Fixed: Hide the rested bar on pets
  • Fixed: Replicate the backdrop for pets
  • Fixed: Framelevel on the rested bar
Changes in 30200.1-Beta:
  • First public release
Archived Files (25)
File Name
Version
Size
Author
Date
50400.14-Releas
2kB
p3lim
06-14-14 10:29 PM
50001.12-Releas
2kB
p3lim
08-30-12 06:11 AM
40300.11-Releas
2kB
p3lim
02-06-12 06: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 12:53 PM
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 02:36 PM
30000.26
2kB
p3lim
01-14-09 02:38 PM
30000.25
2kB
p3lim
01-13-09 02:41 PM


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?
Icerat is offline 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: 1313
File comments: 1183
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
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.
roguegenius is offline 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: 1313
File comments: 1183
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
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
roguegenius is offline 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: 1313
File comments: 1183
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
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
Icerat is offline 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: 1313
File comments: 1183
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
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.
Subere is offline 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: 1313
File comments: 1183
Uploads: 25
Havent updated anything to wowi yet, just some untested versions so far.
p3lim is offline 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: 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
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: 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
Unread 08-06-09, 10:12 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 26
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
Unread 08-06-09, 10:06 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1313
File comments: 1183
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
Unread 08-06-09, 08:17 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 26
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.