Download
(6Kb)
Download
Updated: 01-15-11 10:46 AM
Pictures
File Info
Updated:01-15-11 10:46 AM
Created:12-27-10 04:19 AM
Downloads:4,570
Favorites:33
MD5:

MicroExperience

Version: 40000.6
by: saulhudson [More]

MicroExperience

A simple, clean and lite experience bar. Now with rep tracking!

Tracks rep if you have a "Watched Faction" selected or are at max level. Unselecting the watched faction will return to tracking experience.

Features

  • Tracks experience and reputation
  • Displays current, max and percentage exp / rep
  • Displays last gained exp
  • Tooltip offer more detailed exp information on rested and session gained exp
  • Tooltip displays total completed quest experience and adjusted remaining experience
  • Tooltip displays session gained reputation
  • Tooltip doesn't display in combat
  • Exp bar is class coloured to fit in with many minimalist UI designs
  • Rep bar colours based on your standing with that faction
  • Rested exp bar also class coloured with a low alpha
  • Small lua configuration
  • Only uses under 15 Kb of memory

To Do
  • Track guild rep
  • Open to suggestions ...

40000.06
  • Added tracking of reputation via the tooltip when there is a watched faction
  • Added tracking of completed quest experience displayed on the tooltip
  • Cleaned the logic that switched exp / rep tracking
  • Added a small amount of configuration at the top of lua file
  • Adjusted the truncate() function to only truncate values above 9999
  • Re-order much of the file to make is more readable
  • Added comments

40000.05
  • Fixed issue with session gained xp being calculated incorrectly when levelling up
  • Cleaned code with value() function

40000.04
  • Fixed logic issue with rep / exp tracking at max level

40000.03
  • Minor bug fix regarding setting variables at run time

40000.02
  • Added reputation tracking
  • Several minor bugs fixed
  • Slight size adjustments

40000.01
  • Initial release
Post A Reply Comment Options
Unread 01-13-11, 10:41 PM  
Shadowlycaon
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 36
Uploads: 4
pre-update if you want to change the location of the bar you can in the lua file.

do this:
1. open MicroExperience.lua in notepad (or notepad 2 with lua if you have it)
2. ctrl+f -> xpbar:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 7)
3. the "0" relates to the x-position of the frame and the "7" relates to the y-position of the frame
4. change the values with the game open. Saving each time you change a value and doing a "/console reloadui" command till you find the right spot.
5. Just above the line you found you will see "CreatePanel(xpbarp, 436, 15, "Bottom", 0, 5)"
6. Change the "5" into your y-value from before minus 2

Example(what mine is):
Code:
local xpbarp = CreateFrame("Frame", nil, UIParent)
CreatePanel(xpbarp, 436, 15, "Bottom", 0, 173)
CreateShadow(xpbarp)

local xpbar = CreateFrame("statusbar", nil, UIParent)
xpbar:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 175)
Nifty addon though. Keep it up.
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 10:16 PM  
Shadowlycaon
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 36
Uploads: 4
Just played around a bit, this works fine but you'll need an overall parent frame to move it all at once I believe, although I'm still somewhat of an amateur...if nothing else this is a collection of everything you'll need to get the job done via slash command.

You'll need "MEpoints.point, MEpoints.relTo, MEpoints.relPoint, MEpoints.xOfs, MEpoints.yOfs = xpbar:GetPoint()" to grab the location of the frame once it's set and be able to put it there again on reload ect. Hope this helps.

Code:
function MouseUp()
	meparent:StopMovingOrSizing()
	MEpoints.point, MEpoints.relTo, MEpoints.relPoint, MEpoints.xOfs, MEpoints.yOfs = xpbar:GetPoint()
end

function MouseDown()
	meparent:StartMoving()
end

function ME_ToggleLock()
	if MElocked == false then
		MElocked = true
		print("|cff436EEEMicro Experience:|r Frame Locked -- Cannot be moved");
		xpbar:EnableMouse(false)
		xpbarp:EnableMouse(false)
		xpbar:SetScript("OnEvent", function(self, event, ...)
		self[event](self, ...)
		end)
	else
		MElocked = false
		print("|cff436EEEMicro Experience:|r Frame Movable -- Drag to move");
		meparent:SetMovable();
		meparent:SetScript("OnMouseDown", MouseDown)
		meparent:SetScript("OnMouseUp", MouseUp)
	end
end

	
function ME_ToggleShow()
	if xpbar:IsShown() then
		xpbar:Hide()
		print("|cff436EEEMicro Experience:|r Frame Hidden -- '/me show' to show");
	else
		xpbar:Show()
		print("|cff436EEEMicro Experience:|r Frame Shown -- '/me show' to hide");
	end
end

function MEhandler(msg)
	if (msg) then
		if (msg == "lock") then
			ME_ToggleLock()
		elseif (msg == "show") then
			ME_ToggleShow()
		elseif msg == "" then
			print("|cff436EEEMicro Experience:|r Created By: BLAH")
			print("|cff436EEEMicro Experience:|r /me lock - toggles ability to move bar")
			print("|cff436EEEMicro Experience:|r /me show - toggles show/hide")
		end
	end
end

SLASH_ME1 = "/microexperience";
SLASH_ME2 = "/micro";
SlashCmdList["ME"] = MEhandler;
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 03:31 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Daynjer
Exactly how do I go about changing the bar's position? Is there a way to add a frame name to use with moveanything?
I am planning to do some small and simple config for MicroExperience so stay posted for a future update.
Thanks
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-07-11, 10:58 PM  
Daynjer
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Exactly how do I go about changing the bar's position? Is there a way to add a frame name to use with moveanything?
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 02:01 AM  
llargo
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 3
File comments: 15
Uploads: 1
Works fine for me !
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 01:22 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Ok fixed or more accuratly code cleaned and removed.

i ahd some logic in that basically hide the bar if the player was at max level and not tracking and faction. however now I've just removed this odd logic so it will display the exp bar regardless of level if the player isn't watching a faction.

This is a bit of a copout but for now solves the problem. I'll think about this some more and maybe come up with a fix although I'm not 100% sure it is needed.

Let me know if this works for you.
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 12:18 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Charrfireloc
Having the same problem here, it spits out this LUA error when I log into a character that's tracking rep. Works fine on <85 characters tracking experience, and also works fine after a /reloadui
Thanks that;s great I'll take a look tonight and hopefully have a fix for you soon.

... also I'm such a levelling slacker I don't have a character at level cap yet so the chance to test this hasn't arisen!
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-04-11, 12:17 PM  
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 61
Uploads: 7
Originally posted by Osamar
Is there any way to move/resize the bar without changing Lua code?
No not as yet but I may look at adding some simple configuration if nothing else. Don't hold you're breathe though. Just get into the code honesty it's pretty simple and just get playing.
__________________
The Jack bauer of all trades
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 08:19 PM  
Charrfireloc
A Kobold Labourer
 
Charrfireloc's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Originally posted by Daninkai
I'm having issues with the bar not appearing after any loading screen (other than a reload UI) when tracking repuation. Don't know if anyone else is having similar issues.
Having the same problem here, it spits out this LUA error when I log into a character that's tracking rep. Works fine on <85 characters tracking experience, and also works fine after a /reloadui


Code:
Message: Interface\AddOns\MicroExperience\MicroExperience.lua:294: attempt to index field '?' (a nil value)
Time: 01/03/11 18:17:14
Count: 1
Stack: Interface\AddOns\MicroExperience\MicroExperience.lua:294: in function `?'
Interface\AddOns\MicroExperience\MicroExperience.lua:306: in function <Interface\AddOns\MicroExperience\MicroExperience.lua:306>

Locals: self = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
(*temporary) = nil
(*temporary) = 0
(*temporary) = 0
(*temporary) = 0
(*temporary) = "attempt to index field '?' (a nil value)"
name = nil
standing = 0
minrep = 0
maxrep = 0
value = 0
xpbarp = <unnamed> {
 oborder = <unnamed> {
 }
 shadow = <unnamed> {
 }
 iborder = <unnamed> {
 }
 0 = <userdata>
}
xpbar = <unnamed> {
 0 = <userdata>
 PLAYER_LOGIN = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:217
 PLAYER_LEVEL_UP = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:233
 PLAYER_XP_UPDATE = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:244
 UPDATE_FACTION = <function> defined @Interface\AddOns\MicroExperience\MicroExperience.lua:275
}
tracking = nil
reaction = <table> {
 6 = <table> {
 }
 2 = <table> {
 }
 8 = <table> {
 }
 3 = <table> {
 }
 1 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 7 = <table> {
 }
}
rested = <unnamed> {
 0 = <userdata>
}
text = <unnamed> {
 0 = <userdata>
}
Last edited by Charrfireloc : 01-03-11 at 08:20 PM.
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 03:50 PM  
Daninkai
A Kobold Labourer
 
Daninkai's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
Originally posted by Osamar
Is there any way to move/resize the bar without changing Lua code?
Pretty sure it's one of those addons where everything is done in LUA.
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 01:42 PM  
llargo
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 3
File comments: 15
Uploads: 1
Yep, still have the problem, doesn't want to show on my screen...
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 08:39 AM  
Osamar
A Murloc Raider

Forum posts: 8
File comments: 42
Uploads: 0
Is there any way to move/resize the bar without changing Lua code?
Report comment to moderator  
Reply With Quote
Unread 01-03-11, 01:45 AM  
llargo
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 3
File comments: 15
Uploads: 1
I had the same problem but I haven't tried the third version yet. Will let you know tonight.
Report comment to moderator  
Reply With Quote
Unread 01-02-11, 03:36 PM  
Daninkai
A Kobold Labourer
 
Daninkai's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
I'm having issues with the bar not appearing after any loading screen (other than a reload UI) when tracking repuation. Don't know if anyone else is having similar issues.
Last edited by Daninkai : 01-02-11 at 03:40 PM.
Report comment to moderator  
Reply With Quote
Unread 01-01-11, 06:53 PM  
Worcester
A Deviate Faerie Dragon
 
Worcester's Avatar

Forum posts: 13
File comments: 91
Uploads: 0
Looks nice!

Can't wait to try it out... unfortunately the servers are down Hoping I'll be able to change the font to match my UI.

Thanks again!
__________________
I prefer rogues to imbeciles, because they sometimes take a rest.
--Alexandre Dumas
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: