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,428
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 03-13-11, 09:32 PM  
Meebsy
A Murloc Raider
 
Meebsy's Avatar

Forum posts: 6
File comments: 53
Uploads: 0
Temporary Fix

I just used the ideal posted by nitewarlord posted on http://www.wowinterface.com/download....html#comments

Open stExperienceBar.toc and remove the stMedia Dependancy

Open Config.lua

Replace line 6,7,8 with
Code:
local font,fontsize,flags = [[Interface\Addons\stExperienceBar\Media\homespun.ttf]], 10, "MONOCHROMEOUTLINE"
Replace line 13 with
Code:
local barTex = [[Interface\Addons\stExperienceBar\Media\Flat.tga]]
Open Player.lua

Replace line 7,8 with
Code:
local font,fontsize,flags = [[Interface\Addons\stExperienceBar\Media\homespun.ttf]], 10, "MONOCHROMEOUTLINE"
local barTex = [[Interface\Addons\stExperienceBar\Media\Flat.tga]]
Open Guild.lua

Replace line 5 with
Code:
local barTex = [[Interface\Addons\stExperienceBar\Media\Flat.tga]]
Save the 3 files and load up WoW.
Hopefully it should work without a hitch and thanks to nitewarlord for the tips over on the stArchaeologist page.
__________________
Report comment to moderator  
Reply With Quote
Unread 03-13-11, 08:17 PM  
skiddroww
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: stMedia missing from package...

Originally posted by nekrossa
this package (just like the latest stArchaeologist) seems to be missing an stMedia addon/lib. Any chance you could respin the release with that package, or release it independently?

Love the look of your addons, but without this other piece they are unusable...



ps. searched for stMedia but couldn't find it released anywhere else, i'm guessing it's something new you've put together...
Yeah, this is a huge letdown, I really love this addon, and I was so thrilled to see it updated with tukui13 support, but it's broken completely now I just hope it's not another month before we get the fix
Report comment to moderator  
Reply With Quote
Unread 03-12-11, 10:11 AM  
nekrossa
A Kobold Labourer
 
nekrossa's Avatar

Forum posts: 0
File comments: 11
Uploads: 0
stMedia missing from package...

this package (just like the latest stArchaeologist) seems to be missing an stMedia addon/lib. Any chance you could respin the release with that package, or release it independently?

Love the look of your addons, but without this other piece they are unusable...



ps. searched for stMedia but couldn't find it released anywhere else, i'm guessing it's something new you've put together...
Report comment to moderator  
Reply With Quote
Unread 03-11-11, 09:14 AM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Re: Default TukUI?

Originally posted by skiddroww
I can't seem to find a version skinned for the default version of TukUI. While this is very similar, it's different enough that it drives me crazy. I managed to edit the font, but I'm a complete nub when it comes to LUA editing. If you could just tell me what to replace the border code with (which I found, but it uses image files, and i didnt see any image files referenced in the default tukUI?)

I would *VERY* much appreciate this, thanks again for the wonderful mod!
Just updated, 3.1 now has Tukui v13 integration.
Sorry it took so long, I've been so busy lately that I forgot about some of my addons. :P
Report comment to moderator  
Reply With Quote
Unread 02-21-11, 11:56 PM  
skiddroww
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Default TukUI?

I can't seem to find a version skinned for the default version of TukUI. While this is very similar, it's different enough that it drives me crazy. I managed to edit the font, but I'm a complete nub when it comes to LUA editing. If you could just tell me what to replace the border code with (which I found, but it uses image files, and i didnt see any image files referenced in the default tukUI?)

I would *VERY* much appreciate this, thanks again for the wonderful mod!
Report comment to moderator  
Reply With Quote
Unread 02-14-11, 10:35 PM  
Cowt
A Kobold Labourer

Forum posts: 0
File comments: 37
Uploads: 0
Appreciated.
Report comment to moderator  
Reply With Quote
Unread 02-14-11, 03:17 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Cowt
I can't for the life of me figure out what colours the reputation bar.

I am trying to have it coloured, in the same manner as the XP bar, by class. Two pages back you helped me colour the XP bar this way, using:

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)
I do not care for any backdrop colour, or border, or for it to shift in different shades depending on the reputation status - I just want it Druidic Orange on my Moonkin, and Pink on my Paladin.

Think you could give me any pointers?
in the player.lua file, look for this code:
Code:
if GetWatchedFactionInfo() then
		local name, rank, minRep, maxRep, value = GetWatchedFactionInfo()
		repBar:SetMinMaxValues(minRep, maxRep)
		repBar:SetValue(value)
		repBar:SetStatusBarColor(unpack(st.FactionInfo[rank][1]))
	end
replace it with this:
Code:
if GetWatchedFactionInfo() then
		local name, rank, minRep, maxRep, value = GetWatchedFactionInfo()
		repBar:SetMinMaxValues(minRep, maxRep)
		repBar:SetValue(value)
		local _, class = UnitClass("player")
		local color = RAID_CLASS_COLORS[class]
		local r,g,b = color.r, color.g, color.b
		repBar:SetStatusBarColor(r,g,b)
	end
Report comment to moderator  
Reply With Quote
Unread 02-13-11, 10:57 AM  
Cowt
A Kobold Labourer

Forum posts: 0
File comments: 37
Uploads: 0
I can't for the life of me figure out what colours the reputation bar.

I am trying to have it coloured, in the same manner as the XP bar, by class. Two pages back you helped me colour the XP bar this way, using:

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)
I do not care for any backdrop colour, or border, or for it to shift in different shades depending on the reputation status - I just want it Druidic Orange on my Moonkin, and Pink on my Paladin.

Think you could give me any pointers?
Report comment to moderator  
Reply With Quote
Unread 02-02-11, 04:07 AM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
How would I go about disabling the entire guild exp part?

Never mind figured it out.
If anyone want to do it too, just remove the guild.lua file.
__________________
55 89 144 233 377 610 987 1597 2584 4181 6765
Last edited by karmamuscle : 02-02-11 at 08:54 AM.
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 06:41 PM  
MagsInfin
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 16
Uploads: 1
Thanks. I'm rather new to the coding department of LUA. about the best I can do is edit current files to suit my needs, but i haven't added full code (though I understand it from taking C++ and C# courses).
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 05:24 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by MagsInfin
Awesome, thanks. Now I can finally get my UI to look how I want it (btw, it's in the Wowhead thread if you wanna see it)

Now, i just need to put it in code...I've seen something similar, so I haven't tested this, but would this work?

Code:
local hiddenAddon = "stExperienceBar"
local frame1_hide = "stExperienceBar_Frame"
local frame2_hide = "stExperienceBar_Guild_Frame'

local function hookFrame(frame)
  frame:RegisterEvent("PLAYER_REGEN_ENABLED")
  frame:RegisterEvent("PLAYER_REGEN_DISABLED")
  frame:HookScript("OnEvent", function(self, event, ...)
    if event == "PLAYER_REGEN_ENABLED" then
      self:Show()
    else
      self:Hide()
    end
  end)
end

local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, addon)
  if addon == hiddenAddon
    hookFrame(frame1_hide)
    hookFrame(frame2_hide)
  end
end)
That looks like a bunch of unnecessary code, try this:
Code:
local hideXP = CreateFrame("frame")
hideXP:RegisterEvent("PLAYER_REGEN_ENABLED")
hideXP:RegisterEvent("PLAYER_REGEN_DISABLED")
hideXP:SetScript("OnEvent", function()
	if event == "PLAYER_REGEN_DISABLED" then
		stExperienceBar_Frame:Hide()
		stExperienceBar_Guild_Frame:Hide()
	elseif event == "PLAYER_REGEN_ENABLED" then
		stExperienceBar_Frame:Show
		stExperienceBar_Guild_Frame:Show()
	end
end)
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 04:39 PM  
MagsInfin
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 16
Uploads: 1
Awesome, thanks. Now I can finally get my UI to look how I want it (btw, it's in the Wowhead thread if you wanna see it)

Now, i just need to put it in code...I've seen something similar, so I haven't tested this, but would this work?

Code:
local hiddenAddon = "stExperienceBar"
local frame1_hide = "stExperienceBar_Frame"
local frame2_hide = "stExperienceBar_Guild_Frame'

local function hookFrame(frame)
  frame:RegisterEvent("PLAYER_REGEN_ENABLED")
  frame:RegisterEvent("PLAYER_REGEN_DISABLED")
  frame:HookScript("OnEvent", function(self, event, ...)
    if event == "PLAYER_REGEN_ENABLED" then
      self:Show()
    else
      self:Hide()
    end
  end)
end

local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, addon)
  if addon == hiddenAddon
    hookFrame(frame1_hide)
    hookFrame(frame2_hide)
  end
end)
Last edited by MagsInfin : 01-06-11 at 04:59 PM.
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 03:15 PM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by MagsInfin
Great addon. Keep putting it in my comps (none release, but if I ever do, you'll get credit :P), but I'm trying to do something with it this time, and I can't figure it out.

I'm trying to get it to hide in combat with my minimap, but I can only get the rep bar, exp bar, and text to disappear. Anytime I try to /framestack or use /run print(GetMouseFocus():GetName()) on the background/border, I get World Frame, and so when it hides, I still have the background.

Any help on that?
'stExperienceBar_Frame' and 'stExperienceBar_Guild_Frame' are the names of the two frames that when toggled will toggle everything else.
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 02:17 PM  
MagsInfin
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 16
Uploads: 1
Great addon. Keep putting it in my comps (none release, but if I ever do, you'll get credit :P), but I'm trying to do something with it this time, and I can't figure it out.

I'm trying to get it to hide in combat with my minimap, but I can only get the rep bar, exp bar, and text to disappear. Anytime I try to /framestack or use /run print(GetMouseFocus():GetName()) on the background/border, I get World Frame, and so when it hides, I still have the background.

Any help on that?
Report comment to moderator  
Reply With Quote
Unread 12-28-10, 11:16 AM  
Safturento
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 64
Uploads: 5
Originally posted by Elaryn
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.
Are you getting any lua errors? (Make sure you have Display Lua Errors enabled)
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.