Download
(358Kb)
Download
Updated: 03-17-11 08:41 AM
Pictures
File Info
Updated:03-17-11 08:41 AM
Created:08-08-10 05:00 PM
Downloads:11,434
Favorites:66
MD5:

stExperienceBar  Popular! (More than 5000 hits)

Version: 3.2
by: Safturento [More]

NOTICE: If your updating to 3.0 from a previous version, make sure to delete your current version from your AddOns' folder first.

This is just a simple experience bar addon I wrote, all of the configuration is done through the Config.lua file. There you can change the font, texture, anchor, and size of the bar.

When your not level 80 and your tracking a reputation, it will show the reputation info on the tooltip, and will push the xp bar up 2 pixels to show a reputation bar.

When you right click on the bar, it will open a menu to report reputation/experience information into chat.

That's it, hope you enjoy the addon!

-- v3.2
Renamed global variable "st" to "stExp" to prevent it from conflicting with a variable in Tukui.
Removed Monochrome from the outline when not using my edit of Tukui.

-- v3.1b
re-added stMedia to download.

-- v3.1
Redesigned configuration a little, and added Tukui v13 compatibility.

-- v3.0
Rewrote the entire addon again, and also added a new bar for guild exp and rep.

-- v2.2
Fixed a stupid mistake with text

-- v2.1
Fixed issue with rested exp bar
Code cleanup

-- v2.0
I rewrote the entire addon from scratch. The code is much more organized, and much easier to edit

-- v1.6
Rewrote the report module to be a menu, works with Guild, Raid, Party, and Whisper target

-- v1.5
Updated for patch 4.0.1

-- v1.4
Fixed minor bug with text on bar

-- v1.3
Added reputation bar when not 80

-- v1.2
Fixed issue with rested status bar's background

-- v1.1
Added status bar for rested experience

-- v1.0
Release
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1
13kB
07-04-11 04:36 PM
Patch


Post A Reply Comment Options
Unread 11-30-10, 04:22 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Dokee
Would love to have the text on the bars only visible on mouse over, but I have no knowledge in lua so I wouldn't know how to go about this. Any chance for help? I'll try looking it up a bit more, but any help would be greatly appreciated!
Look for the line that begins with "Text:SetPoint(" and add this under it:
Code:
Text:SetAlpha(0)
Then find this line:
Code:
mouseFrame:SetScript("OnEnter", function()
and add this directly under it:
Code:
Text:SetAlpha(1)
Then find this line:
Code:
mouseFrame:SetScript("OnLeave", function() GameTooltip:Hide() end)
and replace it with this:
Code:
mouseFrame:SetScript("OnLeave", function() GameTooltip:Hide() Text:SetAlpha(0) end)
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 05:48 PM  
Dokee
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 13
Uploads: 1
Thanks, it works like a charm! Also great addon, helped me finally have a sexy looking EXP bar!
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 06:55 AM  
Cowt
A Kobold Labourer

Forum posts: 0
File comments: 37
Uploads: 0
Seeing as addon is not saved on a per-character basis, is there any call I could use to colour the purple XP colour by class colour?

If so, I'd also use the same for any and all reputation colours.

Thanks for uploading the addon.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 12:56 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Cowt
Seeing as addon is not saved on a per-character basis, is there any call I could use to colour the purple XP colour by class colour?

If so, I'd also use the same for any and all reputation colours.

Thanks for uploading the addon.
Look for this line:
Code:
xpBar:SetStatusBarColor(.5, 0, .75)
and replace it with this code:
Code:
local _, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local r,g,b = color.r, color.g, color.b
xpBar:SetStatusBarColor(r,g,b)
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 02:07 PM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
Hey, not sure if you're aware of it, but at the bottom, you make a new function just to execute an existing function. Instead you can do:

Code:
frame:SetScript("OnEvent", updateStatus)
Just thought I'd point that out.
Last edited by Haleth : 12-01-10 at 02:08 PM.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 03:52 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Haleth
Hey, not sure if you're aware of it, but at the bottom, you make a new function just to execute an existing function. Instead you can do:

Code:
frame:SetScript("OnEvent", updateStatus)
Just thought I'd point that out.
v_v note to self: Don't code until 5 am..I'll have a new version up in a sec that fixes that and also fixes an issue with the rested exp bar.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 07:46 PM  
Raynesis
A Kobold Labourer

Forum posts: 0
File comments: 37
Uploads: 0
Hi, the latest version isn't showing XP text unless on mouse over.

It seems like you forgot to change the code when showing the poster a few posts down, on how to show XP text on mouse over.

Apologies if I'm wrong.
Report comment to moderator  
Reply With Quote
Unread 12-02-10, 10:04 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Raynesis
Hi, the latest version isn't showing XP text unless on mouse over.

It seems like you forgot to change the code when showing the poster a few posts down, on how to show XP text on mouse over.

Apologies if I'm wrong.
haha oops, v2.2 fixes that. I added it in as an option in the config for those who want it still.
Last edited by Safturento : 12-02-10 at 10:21 PM.
Report comment to moderator  
Reply With Quote
Unread 12-04-10, 07:47 PM  
willgk
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 147
Uploads: 1
Saft, is there anyway you can convert this to a zip instead of rar so that MMOUI Minion (the WowInterface UI Updater) doesn't fail with an Internal Error when it tries to install it?

I'm sure a lot of us would totally appreciate it! Also, great addon!!!!
Report comment to moderator  
Reply With Quote
Unread 12-16-10, 09:03 AM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
So far I love this experience bar.
The only thing I'm trying to change is the font since I'm not using pixel font on the rest of my UI and in fact for whatever reason pixel font is completely unreadable on my screen (probably cause of low resolution). Anyway,
just going into .lua and changing the font to one of my own (and adding it to the media folder obviously), makes it so I can't see anything on the xpbar at all. Haven't figured out yet why but is there anything particular about this font you're using? Special characters wise or something? Size?
Report comment to moderator  
Reply With Quote
Unread 12-17-10, 01:53 PM  
IceShadow
A Deviate Faerie Dragon
 
IceShadow's Avatar

Forum posts: 15
File comments: 93
Uploads: 0
Originally posted by zohar101
So far I love this experience bar.
The only thing I'm trying to change is the font since I'm not using pixel font on the rest of my UI and in fact for whatever reason pixel font is completely unreadable on my screen (probably cause of low resolution). Anyway,
just going into .lua and changing the font to one of my own (and adding it to the media folder obviously), makes it so I can't see anything on the xpbar at all. Haven't figured out yet why but is there anything particular about this font you're using? Special characters wise or something? Size?
I'm experiencing the same issue myself. Been trying different sizes for my font and removed the monochrome type but it refuses to show. Can't seem to figure it out.

Also noticing that I'm level 84 on my warrior and it is only showing reputation.
Last edited by IceShadow : 12-17-10 at 01:58 PM.
Report comment to moderator  
Reply With Quote
Unread 12-22-10, 05:24 PM  
Elaryn
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Sorry if this has been posted before, but is there any way to change the border of the XP bar? I looked in the LUA and can't seem to find anything. o_o

Thanks
Report comment to moderator  
Reply With Quote
Unread 12-24-10, 11:08 AM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by zohar101
So far I love this experience bar.
The only thing I'm trying to change is the font since I'm not using pixel font on the rest of my UI and in fact for whatever reason pixel font is completely unreadable on my screen (probably cause of low resolution). Anyway,
just going into .lua and changing the font to one of my own (and adding it to the media folder obviously), makes it so I can't see anything on the xpbar at all. Haven't figured out yet why but is there anything particular about this font you're using? Special characters wise or something? Size?
Hmm, I just tested this using ARIALN.ttf and it changed the font without issues. Here's what my new font line looks like:
Code:
local font,fontsize,flags = [[Fonts\ARIALN.ttf]], 10, "MONOCHROMEOUTLINE"
Originally posted by Elaryn
Sorry if this has been posted before, but is there any way to change the border of the XP bar? I looked in the LUA and can't seem to find anything. o_o

Thanks
The lines you'll need to edit for the border are here:
Code:
backdrop:SetBackdrop({
	bgFile = barTex, 
	edgeFile = barTex, 
	tile = false, tileSize = 0, edgeSize = 1, 
	insets = { left = -1, right = -1, top = -1, bottom = -1}
})
backdrop:SetBackdropColor(0, 0, 0)
backdrop:SetBackdropBorderColor(.2, .2, .2, 1)
Last edited by Safturento : 12-24-10 at 11:10 AM.
Report comment to moderator  
Reply With Quote
Unread 12-28-10, 06:38 AM  
Elaryn
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
I absolutely love this addon but I can't get it to show up on my level 80 warlock. It shows up on every single one of my toons (even other 80s, I haven't leveled any past 80 yet) but no matter what I do, it won't show up on my lock.
Report comment to moderator  
Reply With Quote
Unread 12-28-10, 10:00 AM  
zohar101
A Cyclonian
 
zohar101's Avatar

Forum posts: 43
File comments: 188
Uploads: 0
Hmm, I just tested this using ARIALN.ttf and it changed the font without issues. Here's what my new font line looks like:
Code:

local font,fontsize,flags = [[Fonts\ARIALN.ttf]], 10, "MONOCHROMEOUTLINE"
Ty, that helped
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.