Download
(2 Kb)
Download
Updated: 08-30-12 06:11 AM
Addon for:
oUF.
Compatibility:
Mists of Pandaria (5.0.4)
Updated:08-30-12 06:11 AM
Created:unknown
Downloads:33,835
Favorites:167
MD5:
oUF Experience  Popular! (More than 5000 hits)
Version: 50001.12-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 is required that you have this addon updated at all times to make everything work as it should.
You can download oUF by clicking on the link located under the "Download" button on the right.


Features:
- Experience bar
- Optional rested element
- Basic tags included
- Hides if the player is at max level


Note:
Wiki found on my GitHub page for basic implementation:
http://github.com/p3lim-wow/oUF_Experience/wiki
You need to add this addon to your layout's toc metadata!


Issues & Requests
To submit a bug report or feature request, please visit the Issue Tracker on my GitHub page.
Changes in 50001.12-Release
  • Use double underscores to avoid tainting blizzard
  • Remove support for oUF 1.5.x
  • Bump Interface version
Changes in 40300.11-Release
  • Add support for 1.6
  • Update game version
  • Let the packager(s) set the version number automaticly
Changes in 40200.10-Release
  • Pet experience isn't as big a deal any more
  • Update version
  • Return earlier if in a vehicle.
Changes in 40000.9-Release
  • Register the tags outside of the Enable function
  • Update version
Changes in 40000.8-Release
  • Add some basic tags
  • Update version
Changes in 40000.7-Release
  • Add a fallback texture to the Rested bar
  • Update version
Changes in 40000.6-Release
  • Clean up and update to 1.4 standard
  • Remove comments
  • Remove tooltip option
  • Update to the new override method
  • Add :ForceUpdate()
  • Back to basics
  • Sneak in a :PreUpdate()
  • Update TOC to 4.0
  • Fix some typos
  • End things early
  • Update version
Changes in 30300.5-Release
  • Clean up the act and make everything work with vehicles and other pets
  • Add embedding support
  • Stupid copy/paste
  • Update TOC version
  • Update version
Changes in 30200.4-Release
  • Let rested values go through, independant of the rested bar
  • Update version
Changes in 30200.3-Release
  • Added default texture properly
  • Pass unit for disabling
  • Add some comments
  • Update version
Changes in 30200.2-Release
  • Set version back to normal, learning by doing :/
  • Fix pet issues if layout has Rested bar enabled
  • Let the element handle the uncommon settings
  • Rename some functions
  • Pet xp bar should also replicate backdrop, if there is any
  • Just set the parent of the bg
  • Update version
Archived Files (23)
File Name
Version
Size
Author
Date
40300.11-Releas
2kB
p3lim
02-06-12 05: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 11:53 AM
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 01:36 PM
30000.26
2kB
p3lim
01-14-09 01:38 PM
30000.25
2kB
p3lim
01-13-09 01:41 PM


Post A Reply Comment Options
Old 12-09-10, 11:39 AM  
Solarin
A Murloc Raider

Forum posts: 9
File comments: 14
Uploads: 0
Here is the section with the experience text code.

Code:
if(IsAddOnLoaded('oUF_Experience')) then
            self.Experience = createStatusbar(self, texture, nil, 4, nil, 0, .7, 1, 1)
            self.Experience:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -2)
            self.Experience:SetPoint('TOPRIGHT', self, 'BOTTOMRIGHT', 0, -2)

            self.Experience.Rested = createStatusbar(self.Experience, texture, nil, nil, nil, 0, .4, 1, .6)
            self.Experience.Rested:SetAllPoints(self.Experience)
            self.Experience.Rested:SetBackdrop(backdrop)
            self.Experience.Rested:SetBackdropColor(0, 0, 0)

            self.Experience.bg = self.Experience.Rested:CreateTexture(nil, 'BORDER')
            self.Experience.bg:SetAllPoints(self.Experience)
            self.Experience.bg:SetTexture(texture)
            self.Experience.bg:SetVertexColor(.1, .1, .1)

            self.Experience.bd = createBackdrop(self.Experience, self.Experience)

            self.Experience.text = createFont(self.Experience, "OVERLAY", font, fontsize, fontflag, 1, 1, 1)
            self.Experience.text:SetPoint("CENTER")
            self.Experience.text:Hide()
            self:Tag(self.Experience.text, '[freeb:curxp] / [freeb:maxxp] - [freeb:perxp]%')

            self:SetScript("OnEnter", OnEnter)
            self:SetScript("OnLeave", OnLeave)
        end
Solarin is offline Report comment to moderator  
Reply With Quote
Old 12-09-10, 08:40 AM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by Solarin
I looked through the comments and didn't see anyone with a similar issue.

For some odd reason, my experience bar's text component doesn't update unless I am moused over the bar as I gain experience. The bar itself works fine. Any ideas about what could be causing this?
How do you add this text?
p3lim is offline Report comment to moderator  
Reply With Quote
Old 12-07-10, 01:23 PM  
Solarin
A Murloc Raider

Forum posts: 9
File comments: 14
Uploads: 0
I looked through the comments and didn't see anyone with a similar issue.

For some odd reason, my experience bar's text component doesn't update unless I am moused over the bar as I gain experience. The bar itself works fine. Any ideas about what could be causing this?
Solarin is offline Report comment to moderator  
Reply With Quote
Old 10-20-10, 02:07 PM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by neverg
[b]No worries P3lim, isn't that much important or anything.

I thought of the parenting too, but i don't see anything wrong with it. You said in the Wiki to anchor the bg or backdrop to the Rested Bar, yet it's not hidding even if I anchor it to the Experience Bar nor the Rested ofc.

This is what I use.

Like I said nothing important, but might be a bug, or something stupid I'm making.
I'll take a look at it later and see if I can find the issue if it exists.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 10-20-10, 09:04 AM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
Originally posted by p3lim
It doesn't think its a pet, as the Vehicle support is based on oUF's (which works), though I am guessing you've parented the backdrop wrong.

Anyways, I can't test this as I don't have an active account.
No worries P3lim, isn't that much important or anything.

I thought of the parenting too, but i don't see anything wrong with it. You said in the Wiki to anchor the bg or backdrop to the Rested Bar, yet it's not hidding even if I anchor it to the Experience Bar nor the Rested ofc.

This is what I use.

Like I said nothing important, but might be a bug, or something stupid I'm making.

Code:
	-- oUF_Experience
	local function ExperienceBar(self, unit) 
	
		if(IsAddOnLoaded('oUF_Experience')) then
			
			local Experience = CreateFrame('StatusBar', nil, self)
			Experience:SetStatusBarTexture(fill_texture)
			Experience:SetStatusBarColor(178/255, 53/255, 240/255,1)
			Experience:SetPoint('BOTTOM', self.InfoBar,'TOP', 0, 6)
			Experience:SetHeight(cfg.expbar_height)
			Experience:SetWidth(cfg.mainframe_width)
					
			local Rested = CreateFrame('StatusBar', nil, Experience)
			Rested:SetStatusBarTexture(fill_texture)
			Rested:SetStatusBarColor(35/255, 127/255, 255/255,1)
			Rested:SetAllPoints(Experience)
			SetBackdrop(Experience, 2, 2, 2, 2)
			
			self.Experience = Experience
			self.Experience.Rested = Rested
			self.Experience.PostUpdate = ExperiencePostUpdate
				
			-- Tooltip
			self.Experience:EnableMouse()
			self.Experience:HookScript('OnLeave', GameTooltip_Hide)
			self.Experience:HookScript('OnEnter', XPTooltip)			
		end
	end
My SetBackDrop is simply this:

-- Create the Backdrop
local function SetBackdrop(self, inset_l, inset_r, inset_t, inset_b)

self:SetBackdrop {bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = false, tileSize = 0, insets = {left = -inset_l, right = -inset_r, top = -inset_t, bottom = -inset_b},}
self:SetBackdropColor(0,0,0,1)
end
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 10-20-10 at 09:05 AM.
neverg is offline Report comment to moderator  
Reply With Quote
Old 10-20-10, 08:25 AM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by neverg
Oh, ok. Going to try to figure it out (EDIT - Done).

Another thing, I've noticed on 80 Chars it shows when entering a vehicle? We at least this vehicle.



It's the black bar at the top of the frame (it's the Backdrop that). At least it's not hiding the backdrop. Do I need to handle this in the layout with a PostUpdate? Or this appears because it "thinks" it's a Pet?

Using it on live with the latest version of oUF_Experience.
It doesn't think its a pet, as the Vehicle support is based on oUF's (which works), though I am guessing you've parented the backdrop wrong.

Anyways, I can't test this as I don't have an active account.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 10-20-10, 05:08 AM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
Originally posted by p3lim
That can easily be implemented by the layout
Oh, ok. Going to try to figure it out (EDIT - Done).

Another thing, I've noticed on 80 Chars it shows when entering a vehicle? We at least this vehicle.



It's the black bar at the top of the frame (it's the Backdrop that). At least it's not hiding the backdrop. Do I need to handle this in the layout with a PostUpdate? Or this appears because it "thinks" it's a Pet?

Using it on live with the latest version of oUF_Experience.
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 10-20-10 at 06:32 AM.
neverg is offline Report comment to moderator  
Reply With Quote
Old 10-18-10, 08:37 AM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by neverg
p3lim, me "dear"...

Is it possible when hovering the tooltip it will show Blizzards tooltip with the experience, rested, etc? I think this would be a bit complicated, but well, just asking.
That can easily be implemented by the layout
p3lim is offline Report comment to moderator  
Reply With Quote
Old 10-17-10, 05:40 PM  
neverg
A Cobalt Mageweaver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 334
Uploads: 8
p3lim, me "dear"...

Is it possible when hovering the tooltip it will show Blizzards tooltip with the experience, rested, etc? I think this would be a bit complicated, but well, just asking.
__________________
My oUF Layout: oUF Lumen
neverg is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 08:47 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Originally posted by p3lim
Something is wrong with your layout atleast, the FrameLevel of your status bars are way too low.
Checking with Freebaser. I use his layout as a base, so will see what he says. Happens both with my modified layout and with his original.
Toran is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 08:23 PM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by Toran
Thanks for your patience with this, p3lim, but it's still spawning that error. Even with the changes quoted above.
Something is wrong with your layout atleast, the FrameLevel of your status bars are way too low.
p3lim is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 05:31 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Originally posted by p3lim
Change line 120 to this
Code:
local bar = CreateFrame('StatusBar', nil, parent)
And remove line 121
Thanks for your patience with this, p3lim, but it's still spawning that error. Even with the changes quoted above.
Toran is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 04:12 PM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by Toran
http://pastey.net/141717
Change line 120 to this
Code:
local bar = CreateFrame('StatusBar', nil, parent)
And remove line 121
p3lim is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 04:04 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Originally posted by p3lim
Give me a pastey of your layout please.
http://pastey.net/141717
Toran is offline Report comment to moderator  
Reply With Quote
Old 10-16-10, 03:39 PM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Originally posted by Toran
Sorry, sometimes I'm unable to, but understood. Anyway received this error when using the below..

Code:
1x oUF_Experience-40000.9-Release\oUF_Experience.lua:112: <unnamed>:SetFrameLevel(): Passed negative frame level: -1
oUF_Experience-40000.9-Release\oUF_Experience.lua:112: in function `enable'
oUF-1.5.2\ouf.lua:260: in function `EnableElement'
oUF-1.5.2\ouf.lua:439: in function <oUF\ouf.lua:391>
(tail call): ?:
oUF-1.5.2\ouf.lua:702: in function `Spawn'
oUF_Freeb-4.1\freeb.lua:1005: in function `func'
oUF-1.5.2\ouf.lua:723: in function <oUF\ouf.lua:719>
(tail call): ?:
Give me a pastey of your layout please.
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.