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,599
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-16-10, 08:23 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 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.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 08:47 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member

Forum posts: 143
File comments: 433
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.
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 05:40 PM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 268
File comments: 498
Uploads: 2
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
Report comment to moderator  
Reply With Quote
Unread 10-18-10, 08:37 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 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
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 05:08 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 268
File comments: 498
Uploads: 2
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.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 08:25 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 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.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 09:04 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 268
File comments: 498
Uploads: 2
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.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 02:07 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 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.
Report comment to moderator  
Reply With Quote
Unread 12-07-10, 02:23 PM  
Solarin
A Deviate Faerie Dragon

Forum posts: 13
File comments: 15
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?
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 09:40 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 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?
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 12:39 PM  
Solarin
A Deviate Faerie Dragon

Forum posts: 13
File comments: 15
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
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 03:17 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 Solarin
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
No wonder, its hidden and only shown on an OnEnter script.
Report comment to moderator  
Reply With Quote
Unread 02-05-12, 08:10 AM  
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 150
Uploads: 3
I have an issue, the xp value won't update on my chars - the xpbar looks like full, tooltip doesn't appear and is just stays there.

Only thing i've done is to create the frame and put it on mouseover.

If you need, i can post the code.
Report comment to moderator  
Reply With Quote
Unread 02-05-12, 09: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 Coldkil
I have an issue, the xp value won't update on my chars - the xpbar looks like full, tooltip doesn't appear and is just stays there.

Only thing i've done is to create the frame and put it on mouseover.

If you need, i can post the code.
Paste the code please.
Do you have the latest version?
Report comment to moderator  
Reply With Quote
Unread 02-06-12, 09:45 AM  
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 150
Uploads: 3
Yes, downloaded latest version yesterday, but nothing changed.

Going to post code as soon as i return from work.
Code's here:
Code:
-- XP Bar
		if UnitLevel("player") ~= MAX_PLAYER_LEVEL  then
			local Experience = CreateFrame("StatusBar", "ColdExperience", self)
			Experience:SetStatusBarTexture(_TEXTURE)
			Experience:SetStatusBarColor(.9, .2, 1)
			Experience:SetPoint("TOPLEFT", Power, "TOPLEFT")
			Experience:SetPoint("BOTTOMRIGHT", Power, "BOTTOMRIGHT")
			Experience:SetFrameLevel(8)
			Experience:SetAlpha(0)
			Experience.Tooltip = true						
			Experience.Rested = CreateFrame('StatusBar', nil, self)
			Experience.Rested:SetParent(Experience)
			Experience.Rested:SetAllPoints(Experience)
			Experience.Rested:SetStatusBarTexture(_TEXTURE)
			Experience.Rested:SetStatusBarColor(0, .4, 1)
			Experience.Rested:SetFrameLevel(7)
			
			local Resting = lib.SetFontString(Experience, font, smalls, "OUTLINE, MONOCHROME")
			Resting:SetText"Resting"
			Resting:SetTextColor(1, 1, 0)
			Resting:SetPoint"CENTER"
			
			self.Resting = Resting
			self.Experience = Experience
			
			Experience:SetScript("OnEnter",function()
				Experience:SetAlpha(1)
			end)
			Experience:SetScript("OnLeave",function()
				Experience:SetAlpha(0)
			end)
		end
Last edited by Coldkil : 02-06-12 at 11:00 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.