Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 02-26-15 05:26 PM
Addon for:
oUF.
Compatibility:
The Adventure Continues (6.1)
Warlords of Draenor (6.0.3)
Updated:02-26-15 05:26 PM
Created:unknown
Downloads:35,173
Favorites:166
MD5:
6.1

oUF Experience  Popular! (More than 5000 hits)

Version: 60100.18-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 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.

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 60100.18-Release:
  • Fixed: Element showing for restricted accounts (trial/veteran)

Changes in 60000.17-Release:
  • Added: Support for the new Veteran account type

Changes in 60000.16-Release:
  • Added: Support for users disabling the experience gain
  • Fixed: Element showing when it was not supposed to

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 (28)
File Name
Version
Size
Author
Date
60000.17-Releas
3kB
p3lim
01-18-15 11:09 PM
60000.16-Releas
3kB
p3lim
01-11-15 02:29 PM
60000.15-Releas
3kB
p3lim
10-15-14 11:46 AM
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 10-04-08, 05:22 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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  
Reply With Quote
Unread 10-04-08, 10:58 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 270
File comments: 252
Uploads: 5
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)
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 10-04-08 at 06:31 PM.
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-04-08, 05:58 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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  
Reply With Quote
Unread 10-04-08, 06:00 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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  
Reply With Quote
Unread 10-10-08, 12:57 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 270
File comments: 252
Uploads: 5
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 ?
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-10-08, 08:35 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
Re: Hair pulling mode on

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-08 at 08:45 AM.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:33 AM  
ObbleYeah
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 52
Uploads: 8
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  
Reply With Quote
Unread 10-10-08, 09:37 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 270
File comments: 252
Uploads: 5
Re: Re: Hair pulling mode on

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
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:42 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 270
File comments: 252
Uploads: 5
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
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 10-10-08 at 09:45 AM.
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-10-08, 10:07 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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-08 at 11:15 AM.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 10-11-08, 06:59 PM  
erica647
A Cobalt Mageweaver
 
erica647's Avatar
AddOn Author - Click to view AddOns

Forum posts: 209
File comments: 192
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!
__________________
Karadra
Level 80 Human Deathknight
Silvermoon/Nerfed Guild
erica647 is offline Report comment to moderator  
Reply With Quote
Unread 10-13-08, 09:11 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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  
Reply With Quote
Unread 11-29-08, 06:26 AM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
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  
Reply With Quote
Unread 11-30-08, 09:17 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 1189
Uploads: 27
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  
Reply With Quote
Unread 12-02-08, 12:00 PM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
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  
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.