Download
(5Kb)
Download
Updated: 02-22-22 12:05 PM
Addon for:
oUF.
Compatibility:
Eternity's End (9.2.0)
Updated:02-22-22 12:05 PM
Created:unknown
Downloads:45,590
Favorites:159
MD5:

oUF Experience  Popular! (More than 5000 hits)

Version: 90200.32-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/honor 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
    • Player has disabled honor-tracking

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 90200.32-Release:
  • Changed: Update Interface version
Archived Files (2)
File Name
Version
Size
Author
Date
90105.31-Release
5kB
p3lim
11-03-21 12:17 PM
90100.30-Release
5kB
p3lim
07-01-21 12:08 AM


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: 2
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
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: 1710
File comments: 1222
Uploads: 43
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.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:42 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
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.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:37 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
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'); }
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 09:33 AM  
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 210
File comments: 122
Uploads: 3
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
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: 1710
File comments: 1222
Uploads: 43
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.
Report comment to moderator  
Reply With Quote
Unread 10-10-08, 12:57 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
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'); }
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: 1710
File comments: 1222
Uploads: 43
Known issue: pet xp bar doesnt update when you pull a pet out from stables, looking for a fix for this.
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: 1710
File comments: 1222
Uploads: 43
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
Report comment to moderator  
Reply With Quote
Unread 10-04-08, 10:58 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
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.
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: 1710
File comments: 1222
Uploads: 43
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
Report comment to moderator  
Reply With Quote
Unread 10-03-08, 11:27 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
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.
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: 1710
File comments: 1222
Uploads: 43
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
Report comment to moderator  
Reply With Quote
Unread 10-03-08, 10:18 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
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.
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: 1710
File comments: 1222
Uploads: 43
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.
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.