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,594
Favorites:167
MD5:
Categories:oUF: Plugins, Warlords of Draenor Beta

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-03-08, 04:11 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
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'); }
Caellian is offline 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: 1313
File comments: 1184
Uploads: 25
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
p3lim is offline 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: 27
File comments: 78
Uploads: 3
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.
coree is offline 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: 1313
File comments: 1184
Uploads: 25
I cant test atm, my computer is quite fucked up.

And oUF P3lim aint up to date (sorta)
p3lim is offline 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: 27
File comments: 78
Uploads: 3
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
coree is offline 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: 1313
File comments: 1184
Uploads: 25
Originally posted by coree
i register the updates at the bottom, too :/
Ill add PostUpdateExperience, ok?
p3lim is offline 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: 27
File comments: 78
Uploads: 3
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 :/
coree is offline 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: 1313
File comments: 1184
Uploads: 25
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
p3lim is offline 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: 27
File comments: 78
Uploads: 3
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.
coree is offline 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: 1313
File comments: 1184
Uploads: 25
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
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 08:53 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 78
Uploads: 3
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
coree is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 08:28 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1313
File comments: 1184
Uploads: 25
Originally posted by coree
thats what i have now
Code:
self.Experience = CreateFrame("StatusBar", nil, self)
self.Experience:SetPoint("TOP", self, "BOTTOM", 0, -5)
self.Experience:SetStatusBarTexture([[Interface\AddOns\oUF_coree\textures\tex]])
if(GetXPExhaustion()) then
	self.Experience:SetStatusBarColor(0.0, 0.39, 0.88, 1.0)
else
	self.Experience:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
self.Experience:SetHeight(8)
self.Experience:SetWidth(210)
but the colorupdate is only after a reloadui
Originally posted by p3lim
The coloring can be set within PostUpdateHealth, PostUpdatePower or an UpdateName function. Test it out and let me know.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 08:20 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 78
Uploads: 3
thats what i have now
Code:
self.Experience = CreateFrame("StatusBar", nil, self)
self.Experience:SetPoint("TOP", self, "BOTTOM", 0, -5)
self.Experience:SetStatusBarTexture([[Interface\AddOns\oUF_coree\textures\tex]])
if(GetXPExhaustion()) then
	self.Experience:SetStatusBarColor(0.0, 0.39, 0.88, 1.0)
else
	self.Experience:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
self.Experience:SetHeight(8)
self.Experience:SetWidth(210)
but the colorupdate is only after a reloadui
coree is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 07:50 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1313
File comments: 1184
Uploads: 25
Originally posted by coree
i tried to change the barcolor to the restedcolor (blizzard used) if i am rested and to the "normal" barcolor if i am not rested. but i think i did a mistake.
Code:
local exhaustionStateID = GetRestState();
if (exhaustionStateID == 1) then
	self.Experience:SetStatusBarColor(0.0, 0.39, 0.88, 1.0)
elseif (exhaustionStateID == 2) then
	self.Experience:SetStatusBarColor(0.58, 0.0, 0.55, 1.0)
end
and i had to add
Code:
if(UnitLevel("player") == MAX_PLAYER_LEVEL) then
	self.Experience:Hide()
elseif(not IsAddOnLoaded("oUF_Experience")) then
	self.Experience:Hide()			
end
otherwise the xpbar wont hide.
The coloring can be set within PostUpdateHealth, PostUpdatePower or an UpdateName function. Test it out and let me know.

The other issue I added information about in the addon info page.
Last edited by p3lim : 08-29-08 at 07:59 AM.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 08-29-08, 07:27 AM  
coree
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 78
Uploads: 3
i had to add
Code:
if(UnitLevel("player") == MAX_PLAYER_LEVEL) then
	self.Experience:Hide()
elseif(not IsAddOnLoaded("oUF_Experience")) then
	self.Experience:Hide()			
end
otherwise the xpbar wont hide.
Last edited by coree : 08-29-08 at 07:50 AM.
coree 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.