Download
(5Kb)
Download
Updated: 02-22-22 12:05 PM
Addon for:
oUF.
Updated:02-22-22 12:05 PM
Created:unknown
Downloads:45,625
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 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 08-29-08, 08:53 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 78
Uploads: 1
now it works.

wrote in PostUpdateHealth:
Code:
if(GetXPExhaustion()) then
	XPbar:SetStatusBarColor(0.0, 0.39, 0.88, 1.0)
else
	XPbar:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
and in the styleFunc:
self.Experience = CreateFrame("StatusBar", "XPbar", self)

thx
Report comment to moderator  
Reply With Quote
Unread 08-29-08, 08:56 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 coree
now it works.

wrote in PostUpdateHealth:
Code:
if(GetXPExhaustion()) then
	XPbar:SetStatusBarColor(0.0, 0.39, 0.88, 1.0)
else
	XPbar:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
and in the styleFunc:
self.Experience = CreateFrame("StatusBar", "XPbar", self)

thx
No need to create a global namespace
Report comment to moderator  
Reply With Quote
Unread 08-29-08, 08:58 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 78
Uploads: 1
Originally posted by p3lim
No need to create a global namespace
but with
if(GetXPExhaustion()) then
self.Experience:SetStatusBarColor(0.0, 0.39, 0.88, 1.0) <- line 122
else
self.Experience:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
in die updatehealth function i got an error:
Message: ..\AddOns\oUF_coree\layout.lua line 122:
attempt to index field 'Experience' (a nil value)
Last edited by coree : 08-29-08 at 09:05 AM.
Report comment to moderator  
Reply With Quote
Unread 08-29-08, 09:21 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 coree
but with
if(GetXPExhaustion()) then
self.Experience:SetStatusBarColor(0.0, 0.39, 0.88, 1.0) <- line 122
else
self.Experience:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
in die updatehealth function i got an error:
Message: ..\AddOns\oUF_coree\layout.lua line 122:
attempt to index field 'Experience' (a nil value)
And that is why I register the PostUpdates and stuff like that at the bottom of the big function
Report comment to moderator  
Reply With Quote
Unread 08-29-08, 09:29 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 78
Uploads: 1
Originally posted by p3lim
And that is why I register the PostUpdates and stuff like that at the bottom of the big function
i register the updates at the bottom, too :/
Report comment to moderator  
Reply With Quote
Unread 08-30-08, 09: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 coree
i register the updates at the bottom, too :/
Ill add PostUpdateExperience, ok?
Report comment to moderator  
Reply With Quote
Unread 08-30-08, 10:52 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 78
Uploads: 1
tested it with your layout on live server, but it doesn't work.

Message: ..\AddOns\oUF_P3lim\oUF_P3lim.lua line 25:
attempt to call method 'SetStatusBarColor' (a nil value)

local function PostUpdateExperience(self, event, unit, bar, min, max)
if(GetXPExhaustion()) then
bar:SetStatusBarColor(0, 0.39, 0.88, 1) <--- line 25
else
bar:SetStatusBarColor(0.58, 0, 0.55, 1)
end
end
Report comment to moderator  
Reply With Quote
Unread 08-30-08, 10:55 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
I cant test atm, my computer is quite fucked up.

And oUF P3lim aint up to date (sorta)
Report comment to moderator  
Reply With Quote
Unread 08-30-08, 11:57 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 78
Uploads: 1
fixed the problem.
you have to edit line 41 in oUF_Experience.lua to:
if(self.PostUpdateExperience) then self:PostUpdateExperience(event, unit, bar, min, max) end

works great now, thanks
Last edited by coree : 08-30-08 at 11:58 AM.
Report comment to moderator  
Reply With Quote
Unread 08-30-08, 12:01 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 coree
fixed the problem.
you have to edit line 41 in oUF_Experience.lua to:
if(self.PostUpdateExperience) then self:PostUpdateExperience(event, unit, bar, min, max) end

works great now, thanks
Do-h, thanks, will fix it asap
Report comment to moderator  
Reply With Quote
Unread 10-03-08, 04:11 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
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
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
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
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, 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, 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
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.