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,357
Favorites:168
MD5:
Categories:oUF: Plugins, Warlords of Draenor Beta
6.0.2
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 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-10-08, 10:07 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
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-10-08, 09:42 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
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, 09:37 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
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:33 AM  
ObbleYeah
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 28
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, 08:35 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
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, 12:57 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
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-04-08, 06:00 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
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-04-08, 05:58 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
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, 10:58 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
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:22 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
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-03-08, 11:27 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
Uploads: 5
Originally posted by p3lim
So I guess it worked for you now?

Ill see if I can add that option too
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
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 10-03-08 at 07:30 PM.
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-03-08, 11:19 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
Originally posted by Caellian
Oh yes, Tooltip not tooltip

Oh and, as you removed the PostUpdateExperience, i guess there is only one color possible now, no matter if it's normal or rested xp, no difference will be visible (other than maybe the text which i don't display)
Is it possible to have a different color for reputation and xp ?
So I guess it worked for you now?

Ill see if I can add that option too
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 10-03-08, 10:18 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
Uploads: 5
Oh yes, Tooltip not tooltip

Oh and, as you removed the PostUpdateExperience, i guess there is only one color possible now, no matter if it's normal or rested xp, no difference will be visible (other than maybe the text which i don't display)
Is it possible to have a different color for reputation and xp ?
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 10-03-08 at 10:46 AM.
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-03-08, 07:04 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1295
File comments: 1181
Uploads: 25
Originally posted by Caellian
Latest release of oUF_Experience doesn't seems to work, or maybe i'm just missing something.

Code used, was working with previous release, just ditched the rested part.

Conditions: lvl 19 rogue with a truckload of rested xp. Nothing is being displayed.

Code:
		if(IsAddOnLoaded('oUF_Experience')) then
			self.Experience = CreateFrame('StatusBar', nil, self)
			self.Experience:SetPoint('BOTTOMLEFT', self.Health, 'TOPLEFT', 0, 2.5)
			self.Experience:SetPoint('BOTTOMRIGHT', self.Health, 'TOPRIGHT', 0, 2.5)
			self.Experience:SetStatusBarTexture(texturebar)
			self.Experience:SetHeight(5)
			self.Experience:SetWidth(230)
			self.Experience:SetBackdrop({bgFile = 'Interface\\Tooltips\\UI-Tooltip-Background', insets = {top = -1, left = -1, bottom = -1, right = -1}})
			self.Experience:SetBackdropColor(.15,.15,.15)
			self.Experience.tooltip = true

			self.Experience.bg = self.Experience:CreateTexture(nil, 'BORDER')
			self.Experience.bg:SetAllPoints(self.Experience)
			self.Experience.bg:SetTexture(texturebar)
			self.Experience.bg:SetVertexColor(.15,.15,.15)
		end
Its atleast .Tooltip now, not .tooltip

Also, try to update
Last edited by p3lim : 10-03-08 at 07:47 AM.
p3lim 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.