Download
(60Kb)
Download
Updated: 06-30-11 01:16 PM
Addon for:
LitePanels.
Pictures
File Info
Updated:06-30-11 01:16 PM
Created:10-12-09 02:10 AM
Downloads:18,960
Favorites:113
MD5:

LiteStats  Popular! (More than 5000 hits)

Version: 40200.1
by: Katae [More]

Proof of concept plugin for LitePanels, which you will need installed.

To install, rename config_default.lua to config.lua.

/litestats (/lstats) - In-game functionality help.

Another stats mod? Why?
This addon was initially created to test LitePanels to make sure it was bug free. There are a lot of addons like this out there, but none that had the capabilities that I wanted from an addon of this type.

Missing a nifty feature X from stats mod Y?
Ask and ye shall receive!

~ modules ~

#Memory: Right click collects Lua garbage. Max number of addons can be set in the config.

#Durability: Armored man can be configured to be hidden or shown. Armor durability percentages scale from green (100%) to yellow (50%) to red (0%). Auto-repair may be toggled by right-clicking the text, guild funds can be configured in the config. Shift-click or Middle-click opens an equipment set switching menu.

#Gold: Saves data on the amount of gold you have server-wide. Right-clicking the text toggles auto-vendoring trash loot. A junk exceptions list can be configured via the /junk command.

#Clock: Left-click toggles the game calendar, right-click toggles time manager. Time manager settings apply.

#Location/Coords: Player coords are displayed on the tooltip or as a separate module. Clicking toggles the world map. Shift-click inserts the coordinates into chat.

#Ping: Displays a class colored text with who pinged the minimap!

#DPS: May be configured to show/hide on activity.

#Guild/Friends: Online count text including members/friends online tooltip with right-click sorting (guild only). Holding alt shows notes and ranks.

#Talents: Talent spec display with ability to right-click to cast dual spec.

#Character Stats: User's choice of stats configured in a [tag] format. Dual spec support.

#Experience/Played/Reputation: A three-in-one module with XP tracking, playtime tracking, and a reputation text display. The three modes can be cycled through by right-clicking.

Also: Latency, FPS, Mail, and Bag space.


Note that some modules may be disabled by default. Simply head to the config file and enable as you see fit!

» locales


40200.1 -- 2011.06.30
- Fixed a couple bugs that crept in with 4.2 API changes.
- 4.2 toc update.

40100.1 -- 2011.06.12
- Fixed a 4.1 bug in the DPS module that was breaking it.
- Implemented 'World' latency. Text shows the greater of home or world. Latency module given tooltip to display both.
- 4.1 toc update.

40000.5 -- 2011.03.12
- Added average ilvl to the durability tooltip.
- Friends list module was not updating when BN friends list changed.
- Explicitly converted 'lastkill' and 'lastquest' to a number in case it was being interpreted as a string. May have been causing some errors.

40000.4 -- 2011.02.15
- Fixed clock bug and added the Tol Barad timer. (donjon & dutorien)
- Moved around the default location of modules in the config in relation to the default minimal.
- Disabled the Coords, Talent, and Stats modules by default.
- Player name is no longer hidden in the guild module.
- Default minimap zone text is now hidden when the Location module is enabled.
- DPS module, if set to do so, will now hide when inactive after 10 seconds. DPS value can now be shortened (15.2k).

40000.3 -- 2010.10.24
- Minor code cleanup.
- Fixed issue where b.net friends' real names were not showing up by holding alt if the person didn't have a note.

40000.2 -- 2010.10.18
- Removed talent spam filtering, obsolete.
- Fixed bug equipmentManager bug. (thanks lainbh)
- Guild module now opens the new guild frame. (thanks lainbh)
- Friends module now shows Battle.net friends. Holding alt will show the player's real name while they're logged into WoW.
- Fixed watched currency icon.

40000.1 -- 2010.10.13
- 4.0 toc update.
- Ammo module obsolete, removed.
- Tracking module obsolete, removed.
- Talent module bugs squashed.
- Bug with the default clock not hiding correctly.

30300.9 -- 2010.08.13
- Enabled ability to set font to each stat individually. Simply use the following attributes in the individual stat settings: font, color, size, alpha, outline, and/or shadow.

30300.8 -- 2010.08.04
- Added Korean (koKR) locale. Updated Spanish (esES) locale.

0.9.10a -- 2010.01.29
- Localization updates: frFR added, complete; esES added, partial; deDE updated.

0.9.10 -- 2010.01.29
- Added [color] tag, for a gradient color code, to latency and durability modules.
- Added latency and fps to the memory tooltip.
- Hidden addons in the memory module, or hidden guild mates in the guild module can now be exposed by holding the Alt key.
- Faction name subs config added (faction_subs).
- Faction tooltip with basic info added.
- Localization updates. zhTW added, partial.

0.9.9 -- 2010.01.08
- ruRU and deDE localizations added. http://wow.curseforge.com/addons/litepanels/localization/
- Commented out d/h/m/s variables in experience module, customize by uncommenting.
- Changed default font to a more universal locale friendly one.
- Added ammo module by request. Enabled only on hunters by default.
- Added reputation watcher to experience module. Change format with the new faction_fmt variable.
- Left-click now cycles between experience, time played, and reputation.
- Experience module variable changes: normal_fmt -> xp_normal_fmt, rested_fmt -> xp_rested_fmt, maxlevel_fmt -> played_fmt
- Moved LPSTAT_SUBS table to Talents.name_subs in the module config.

0.9.8a -- 2009.12.15
- Small variable bug fix in experience module. Forgot to document changing the variable Experience.fmt to Experience.normal_fmt.

0.9.8 -- 2009.12.14
- Added in-combat hiding options for all or specific stats.
- Equipment set switching menu added to durability module. Shift-click or Middle-click opens it.

0.9.7a -- 2009.12.08
- Fixed error when config.lua isn't installed.

0.9.7 -- 2009.12.08
- 3.3 toc update.
- Renamed default config file to config_default.lua. Config now installed by changing the name to config.lua.
- Renamed Experience.fmt variable to Experience.normal_fmt
- Added location module's chat coords functionality to the coords module.
- Rewrote the coords module. Less buggy now.
- Added memory gradient coloring in memory tooltip.
- Modules anchored to a disabled module will no longer be hidden.
- Experience module and tags revamped, please see new config for changes.
- Playtime added to experience module, hold alt to see all character's total time played (default when max level).
- Minor time format changes (#d #h #m #s).
- Asterisk next to grouped friend/guildies is now colored green if in player's current zone, orange if not.
- Added /lstats command. Lists tips on how to use various module functionalities.

0.9.6c -- 2009.11.12
- Reverted last revision's "icon_size" setting changes back to "iconsize". This was causing a little confusion.
- Tracking icon bug fixed.
- Removed coord tracking inside instances. This was causing the world map to hide itself when opened.

0.9.6b -- 2009.11.11
- Added global tooltip icon setting (LTIPICONSIZE)
- Added icon tag to tracking module.

0.9.6a -- 2009.11.11
- Various bug fixes
- Class names can now be used in profiles.

0.9.6 -- 2009.11.11
- Added character stats module. Two strings available for dual specs, configurable by tags. Tag list is in config.
- Added experience module, tag configurable. Basic, much more functionality is planned in the future.
- Added coordinates module (off by default), location module tooltip retains coord functionality.
- Added an asterisk to friends and guild members that are in your group or raid.
- Added a default guild roster sorting setting.
- Tracked currencies added to the gold module. Left-click now opens currencies tab.
- Added the default UI mail tooltip to the mail module.

0.9.5a -- 2009.11.04
- Fixed a bug with class localizations in the friends module.

0.9.5 -- 2009.11.04
- Moved all of the configuration variables to config.lua. Included a string class coloring function.
- Guild list tooltip added to the guild module. Right-click cycles sorting name/level/class/zone, shift right-click reverses the current sort. Hold the Alt key to view or sort by notes and ranks.
- Friends list tooltip added to the friends module. Hold the Alt key to view notes.
- Reworked the clock module. The clock display now reflects the settings in the Time Manager (right-click).
- Memory module will now display in KB when below 1MB.
- Bugs in the talents module squashed.
- Made changes to string format configs dealing with numbers, allowing for more control over decimals.
- Stat building structure changed, see NewStat().

0.9.4 -- 2009.10.29
- Fixed a bug in the clock module.
- Added icon tag and chat filter to the talents module.

0.9.3 -- 2009.10.25
- Moved autosell/repair default savedvars to set themselves on login.
- 24-hour option added to the Clock module.
- Inventory repairs can now be ignored/unignored via the ignore_inventory option.
- Added guild and friends modules. Clicking will toggle either the guild or friends/ignore list.
- Added bag space module. Clicking opens/closes all bags.
- Added talents module. Clicking swaps spec if dual spec is learned, right-click opens the talent UI.
- Provided a commented stat template near the end of core.lua.

0.9.2 -- 2009.10.13
- Added a junk profit chat printout. Chat gold format changed.

0.9.1 -- 2009.10.13
- Removed some personal tweaks I forgot to remove in the release.
- Fixed a bug with profiles and moved them to a different file, profiles.lua
- Added variable for changing the number of letters the location text is truncated by, 0 disables this feature.
- Option for displaying local time added.
- Added chat syntax explanation for /junk.
- Tooltip click polishing.
- Default for DPS hide_inactive enabled.
- Added coords to the location tooltip, auto-updates. Shift-clicking location text will insert the player's zone and coords into the chat edit box.
- Memory tooltip now auto-updates while hovered.
- Included 04b03 font. http://www.dsg4.com/04/extra/bitmap/index.html

0.9 -- 2009.10.12
- Initial release.
Post A Reply Comment Options
Unread 10-26-10, 12:22 PM  
Eleija
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
Uploads: 1
Can someone help me with a new colored fps module pls?
Report comment to moderator  
Reply With Quote
Unread 10-22-10, 07:49 AM  
Hexe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 26
Uploads: 2
Aha!! Must learn to check the plus signs in ultraedit

Boy do I feel silly. Thanks much!
Report comment to moderator  
Reply With Quote
Unread 10-21-10, 04:55 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Hexe
But, it doesn't seem to be working. This is what I have for my config:

But in game it's showing the long name, and the default color.
That's very strange, cause I used your format string and I got what should be expected...



Edit: I see now, you have two fmt variables in your config. It's building from your second one, which has no class coloring. Take out the variables you have two of and you'll be fine.
Last edited by Katae : 10-21-10 at 04:58 PM.
Report comment to moderator  
Reply With Quote
Unread 10-21-10, 07:19 AM  
Hexe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 26
Uploads: 2
Originally posted by Katae
Double check the config file, there's still a fmt variable there for talents, I just checked.
But, it doesn't seem to be working. This is what I have for my config:
Code:
Talents = {
		enabled = true,
		fmt = "[spec %d/%d/%d] - "..class'[shortname]'.."  |cffCC0000[unspent]|r", -- "Protection: 15/0/51 +5", [shortname] shortens spec name.
		iconsize = 15,  -- Size of talent [icon].
		nospam = true,  -- Hide talent spam when switching specs.
		enabled = true,
		fmt = "[icon] [name]: [spec %d/%d/%d] [unspent]", -- "Protection: 15/0/51 +5", [shortname] shortens spec name.
		iconsize = 22,  -- Size of talent [icon].
		nospam = true,  -- Hide talent spam when switching specs.
		name_subs = { -- Substitutions for long talent tree names, remove and/or change any/all.
			["Protection"] = "Tank",
			["Restoration"] = "Resto",
			["Feral Combat"] = "Feral",
			["Retribution"] = "Ret",
			["Discipline"] = "Disc",
			["Enhancement"] = "Enhance",
			["Elemental"] = "Ele",
			["Demonology"] = "Demon",
			["Destruction"] = "Destro",
			["Assassination"] = "Assassin",
			["Marksmanship"] = "Marks",
			["Beast Mastery"] = "Beast",
		},
		anchor_frame = "ChatBorderBottomB", anchor_to = "topright", anchor_from = "bottomright",
		x_off = -3, y_off = -2, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
But in game it's showing the long name, and the default color.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 11:16 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by lainbh
How working this alt-holding for Friends?
In my case, when hold alt nothing changes. (Also for Guild alt-holding works.)
All friends show as name-friends without any different for BN friends or not. [/b]
Editttt - It looks like if there's no note, alt does nothing for battle.net friends, oopsie!
Last edited by Katae : 10-20-10 at 11:26 PM.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 04:07 AM  
lainbh
A Kobold Labourer

Forum posts: 1
File comments: 24
Uploads: 0
line 230 core.lua

Code:
end if friends.enabled or guild.enabled then
		slprint(format("%s/%s",FRIENDS,GUILD),
			L"Hold alt key to view ranks, notes and officer notes.",
			L"(Guild) Right-Click to change the sorting, shift-right-click to reverse order.")
And from ChangeLog "Holding alt will show the player's real name while they're logged into WoW."

How working this alt-holding for Friends?
In my case, when hold alt nothing changes. (Also for Guild alt-holding works.)
All friends show as name-friends without any different for BN friends or not.
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 01:09 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Hexe
Before the last update I was able to make part of the text for the talents module class-colored, but now there doesn't appear to be a fmt option for it.

Double check the config file, there's still a fmt variable there for talents, I just checked.
Report comment to moderator  
Reply With Quote
Unread 10-19-10, 07:06 PM  
Hexe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 26
Uploads: 2
Before the last update I was able to make part of the text for the talents module class-colored, but now there doesn't appear to be a fmt option for it.

Report comment to moderator  
Reply With Quote
Unread 10-19-10, 12:26 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by ac3r
should be removed too:

Code:
            if talents.nospam then self:RegisterEvent'UNIT_SPELLCAST_START' end
I knew I'd miss something, I'll re-upload Friday with any other possible changes.
Report comment to moderator  
Reply With Quote
Unread 10-18-10, 11:27 PM  
ac3r
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 27
Uploads: 1
should be removed too:

Code:
            if talents.nospam then self:RegisterEvent'UNIT_SPELLCAST_START' end
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 03:09 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Bandes
I need Spellhasterating.....
as a whole number with no percent
add the moment is this my code [spellhasterating]
site the Patch dont work this

lg ROnny
I didn't implement ratings into the system, you can go to the lines that implement the haste percent and change it to code that gives you a rating instead. Not sure of the function off the top of my head though.
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 03:07 PM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Very nice lainbh, I'll look into those suggestions.
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 05:17 AM  
lainbh
A Kobold Labourer

Forum posts: 1
File comments: 24
Uploads: 0
Open New Guild Frame

1. To Open New Guild(Social) Frame:
Change 764 line:

ToggleFriendsFrame(3) -> ToggleGuildFrame(1)

2. Change Sets on MiddleClick or Shift-LeftClick

Change 430 line:

remove "GetCVarBool'equipmentManager' and"

Maybe in 4.0.1 changes CVar for equipmentManager, but i dont know how.
Anf if removed this line may be problems if equipmentManager disabled.

3. Support for BattleNet Friends

if not modules.Friends.enabled then blank'Friends' else
NewStat("Friends", {
OnLoad = function(self) RegEvents(self,"PLAYER_LOGIN FRIENDLIST_UPDATE PARTY_MEMBERS_CHANGED") end,
OnEvent = function(self, event)
if event ~= "PARTY_MEMBERS_CHANGED" then
local numBNetTotal, numBNetOnline = BNGetNumFriends()
local online, total = 0, GetNumFriends()
for i = 0, total do if select(5, GetFriendInfo(i)) then online = online + 1 end end
online=online+numBNetOnline
total=total+numBNetTotal
self.text:SetText(format(modules.Friends.fmt, online, total))
end
if self.hovered then self:GetScript("OnEnter")(self) end
end,
OnUpdate = AltUpdate,
OnClick = function(_,b) (b=="RightButton" and ToggleIgnorePanel or ToggleFriendsPanel)() end,
OnEnter = function(self)
ShowFriends()
self.hovered = true
local numBNetTotal, numBNetOnline = BNGetNumFriends()
local online, total = 0, GetNumFriends()
local name, level, class, zone, connected, status, note, classc, levelc, zone_r, zone_g, zone_b, grouped
for i = 0, total do if select(5, GetFriendInfo(i)) then online = online + 1 end end
online=online+numBNetOnline
total=total+numBNetTotal
if online > 0 then
GameTooltip:SetOwner(self, modules.Friends.tip_anchor, modules.Friends.tip_x, modules.Friends.tip_y)
GameTooltip:ClearLines()
GameTooltip:AddDoubleLine(FRIENDS_LIST, format("%s: %s/%s",GUILD_ONLINE_LABEL,online,total),tthead.r,tthead.g,tthead.b,tthead.r,tthead.g,tthead.b)
GameTooltip:AddLine' '
-- name, level, class, area, connected, status, note
for i = 1, GetNumFriends() do

name, level, class, zone, connected, status, note = GetFriendInfo(i)
if not connected then break end
if GetRealZoneText() == zone then zone_r, zone_g, zone_b = 0.3, 1.0, 0.3 else zone_r, zone_g, zone_b = 0.65, 0.65, 0.65 end
for k,v in pairs(LOCALIZED_CLASS_NAMES_MALE) do if class == v then class = k end end
if GetLocale() ~= "enUS" then -- feminine class localization (unsure if it's really needed)
for k,v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do if class == v then class = k end end
end
classc, levelc = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class], GetQuestDifficultyColor(level)
grouped = (UnitInParty(name) or UnitInRaid(name)) and (GetRealZoneText() == zone and " |cff7fff00*|r" or " |cffff7f00*|r") or ""
GameTooltip:AddDoubleLine(format("|cff%02x%02x%02x%d|r %s%s%s",levelc.r*255,levelc.g*255,levelc.b*255,level,name,grouped," "..status),zone,classc.r,classc.g,classc.b,zone_r,zone_g,zone_b)
if self.altdown and note then GameTooltip:AddLine(" "..note,ttsubh.r,ttsubh.g,ttsubh.b,1) end

end
for i =1,numBNetOnline do
presenceID, givenName, surname, toonName, toonID, client, connected, lastOnline, isAFK, isDND, broadcastText, noteText, isFriend, broadcastTime = BNGetFriendInfo(i)
local numToons = BNGetNumFriendToons(i)
for m=1,numToons do
hasFocus, name, client, realmName, faction, race, class, guild, zone, level, gameText = BNGetFriendToonInfo(i,m)
if not connected then break end
for k,v in pairs(LOCALIZED_CLASS_NAMES_MALE) do if class == v then class = k end end
if GetLocale() ~= "enUS" then -- feminine class localization (unsure if it's really needed)
for k,v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do if class == v then class = k end end
end
classc, levelc = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class], GetQuestDifficultyColor(level)
if GetRealZoneText() == zone then zone_r, zone_g, zone_b = 0.3, 1.0, 0.3 else zone_r, zone_g, zone_b = 0.65, 0.65, 0.65 end
--GameTooltip:AddDoubleLine(format("|cff%02x%02x%02x%d|r %s%s%s",levelc.r*255,levelc.g*255,levelc.b*255,level,name),zone,classc.r,classc.g,classc.b,zone_r,zone_g,zone_b)
GameTooltip:AddDoubleLine(format("|cff%02x%02x%02x%d|r %s",levelc.r*255,levelc.g*255,levelc.b*255,level,givenName.." "..surname.."("..name..")"),zone,classc.r,classc.g,classc.b,zone_r,zone_g,zone_b)
end
end
GameTooltip:Show()
else HideTT(self) end
end
})
end
This code for previous version(maybe not changes in new version), but it count for 2 if you have BNfriend and nik for this friend.
Last edited by lainbh : 10-17-10 at 05:29 AM.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 06:15 AM  
Bandes
A Kobold Labourer

Forum posts: 1
File comments: 73
Uploads: 0
I need Spellhasterating.....
as a whole number with no percent
add the moment is this my code [spellhasterating]
site the Patch dont work this

lg ROnny
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 02:33 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by piezombie
I know you're short on time since you're not subscribed, sorry for such an unreasonable request.

But do you think you could set up something for the rep module so its like the fubar rep plugin?

If you're unfamiliar with the addon, all it does is display your reputations when you hover over it, allowing you to also click on a reputation to track it, shift+click to paste into a chat box, as well as 2 other features for alt+click and ctrl+click that I can't remember. The part I'm concerned with is the click and shift+click ability.
I agree this would be a nice addition, I wanted to add it while I was developing it, but it seems more than I can handle at the moment

Wouldn't mind someone else running with the idea, however!
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.