Category: oUF: Plugins
Addon Information
Works with 3.2
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:
30200.4-Release
Date:
09-07-2009 06:24 PM
Size:
1.83 Kb
Downloads:
15,075
Favorites:
160
MD5:
oUF Experience   Popular! (More than 5000 hits)
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 (with rested (optional))
  • Informational text on bar
  • Informational tooltip
  • If player is at max level the bar cluster is hidden
  • If pet is at player level the bar cluster is hidden
  • If player has disabled xp gain its put on standby

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


Click here and follow steps how to submit a bug
  Change Log - oUF Experience
Full changelog can be found on GitHub:
http://github.com/p3lim/oUF_Experience/commits/master/
  Archived Versions - oUF Experience
File Name
Version
Size
Author
Date
30200.3-Release
2kB
p3lim
08-22-2009 05:20 PM
30200.2-Release
2kB
p3lim
08-17-2009 05:58 PM
30200.1-Beta
2kB
p3lim
08-08-2009 12:06 PM
30200.39
2kB
p3lim
08-04-2009 06:22 PM
30200.38
2kB
p3lim
08-04-2009 03:28 PM
30000.37
2kB
p3lim
07-15-2009 02:51 PM
30000.36
2kB
p3lim
06-13-2009 02:31 PM
30000.35
2kB
p3lim
06-11-2009 04:27 PM
30000.34
2kB
p3lim
06-01-2009 12:45 PM
30000.33
2kB
p3lim
06-01-2009 05:55 AM
30000.32
2kB
p3lim
05-26-2009 04:36 PM
30000.31
2kB
p3lim
05-24-2009 09:28 PM
30000.30
2kB
p3lim
05-20-2009 12:52 PM
30000.29
2kB
p3lim
04-17-2009 11:34 AM
30000.28
2kB
p3lim
02-07-2009 03:36 PM
30000.26
2kB
p3lim
01-14-2009 03:38 PM
30000.25
2kB
p3lim
01-13-2009 03:41 PM
  Comments - oUF Experience
Post A Reply Comment Options
Old 08-08-2009, 05:30 AM  
saulhudson
A Murloc Raider
 
saulhudson's Avatar
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 28
Uploads: 3
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   Edit/Delete Message Reply With Quote
Old 08-08-2009, 05:17 AM  
saulhudson
A Murloc Raider
 
saulhudson's Avatar
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 28
Uploads: 3
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-2009 at 05:27 AM.
saulhudson is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 12:12 PM  
Gotai
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 22
Uploads: 7
Re: Re: Here's a fix.

Quote:
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-2009 at 12:25 PM.
Gotai is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 12:06 PM  
p3lim
A Molten Giant
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 558
File comments: 838
Uploads: 19
Re: Here's a fix.

Quote:
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   Edit/Delete Message Reply With Quote
Old 08-06-2009, 10:17 AM  
Gotai
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 22
Uploads: 7
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-2009 at 11:15 AM.
Gotai is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 08:05 AM  
Icerat
A Fallenroot Satyr

Forum posts: 23
File comments: 41
Uploads: 0
Thank you so much worked a treat, just wish the tool tips showed up

Quote:
Originally posted by Caellian
You must enable the mouseover with

Code:
self.Experience:EnableMouse(true)
As for the tooltip, that's another story.
Icerat is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2009, 11:46 PM  
Reolin
A Deviate Faerie Dragon
 
Reolin's Avatar

Forum posts: 10
File comments: 37
Uploads: 0
Error: bad argument #5 to 'format' (number expected, got no value)
AddOn: oUF_Experience
File: oUF_Experience.lua
Line: 21
Count: 1
Reolin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2009, 07:36 PM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 663
Uploads: 4
Quote:
Originally posted by Icerat
Ive added:

Code:
self.Experience:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
self.Experience:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
to my layout but the bars are still there they dont seem to hide, any idea how i can get it to hide?
You must enable the mouseover with

Code:
self.Experience:EnableMouse(true)
As for the tooltip, that's another story.
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2009, 01:04 PM  
Icerat
A Fallenroot Satyr

Forum posts: 23
File comments: 41
Uploads: 0
Ive added:

Code:
self.Experience:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
self.Experience:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
to my layout but the bars are still there they dont seem to hide, any idea how i can get it to hide?
Icerat is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 06:41 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 dr_AllCOM3
I don't have it either, but it sounded like a typo
It was
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 06:25 PM  
dr_AllCOM3
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 37
Uploads: 3
I don't have it either, but it sounded like a typo
dr_AllCOM3 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 06:17 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 dr_AllCOM3
Interface\AddOns\oUF_Experience\oUF_Experience.lua:136: 'then' expected near 'self'
Interface\AddOns\oUF_RuneBar\oUF_RuneBar.lua:121: unexpected symbol near ','
Thanks for the quick response, I don't have 3.2 yet.
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 06:07 PM  
dr_AllCOM3
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 37
Uploads: 3
Interface\AddOns\oUF_Experience\oUF_Experience.lua:136: 'then' expected near 'self'
Interface\AddOns\oUF_RuneBar\oUF_RuneBar.lua:121: unexpected symbol near ','
dr_AllCOM3 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-04-2009, 03:33 PM  
p3lim
A Molten Giant
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 558
File comments: 838
Uploads: 19
Ive had it with updating the mouseover mess that was requested, so i removed it from my code.

If you want to add it to your layout, follow this:
Mouseover + tooltip
Code:
self.Experience:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
self.Experience:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
Just mouseover:
Follow the above code, but use :SetScript instead of :HookScript

Want to customize your tooltip?
Use API's like normal people!
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-01-2009, 04:19 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 SpartaKickk
Alright well, this addon seems like it would be a big help as I'm using Metzerott layout, but it has no exp bar. Now I understand I have to do something with the TOC file, but what I don't know, TOC metadata is pretty vague. What do I put and where?
Somewhere in your .toc file, add this:
Code:
## OptionalDeps: oUF_Experience
p3lim is offline 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.