Download
(6 Kb)
Download
Updated: 09-12-13 08:39 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:09-12-13 08:39 AM
Created:unknown
Downloads:6,633
Favorites:82
MD5:
5.4
StatBlock Money  Popular! (More than 5000 hits)
Version: v5.4.0
by: funkydude [More]
A Data Broker plugin for displaying your current money, works with any Data Broker display addon.
Post A Reply Comment Options
Old 10-26-08, 06:33 PM  
funkydude
A Deviate Faerie Dragon
 
funkydude's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 407
Uploads: 35
Quivocal: I can't add your "fix" because it would break the ability to color the text.

midnightbast: I might add it in the future if I have time.
funkydude is offline Report comment to moderator  
Reply With Quote
Old 10-25-08, 04:12 PM  
midnightbast
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
A suggestion - On mouse over would be nice to see over all funds for the toons on that server. Listed by how much on each toon and over all would be nice as well.

I run a few of the StatBlock's you've made and like them very much. Keep up the good work.

P.S. I have the same color issue with it but it's so minor I don't really care. lol
Last edited by midnightbast : 10-25-08 at 04:16 PM.
midnightbast is offline Report comment to moderator  
Reply With Quote
Old 10-24-08, 08:44 PM  
Quivocal
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Possible Bug with colors

Originally posted by funkydude
I've seen a screenshot with this happening, but I can't understand how. I can't replicate it on my own system, and the code just isn't designed to do that.
I have the exact same problem and I believe so would everyone else. I have however managed to fix the problem, thanks to LibAbacus . It should be noted that I have no idea what i'm doing with lua coding and I just copied what I could see from LibAbacus, so this is perhaps not the most correct way of doing it. But it works. Here is the edited StatBlock_Money lua file

Code:
local Money = _G.CreateFrame("Frame", "StatBlock_Money")
Money.obj = _G.LibStub("LibDataBroker-1.1"):NewDataObject("Money")

local L_GOLD = "g"
local L_SILVER = "s"
local L_COPPER = "c"

local COLOR_WHITE = "ffffff"
local COLOR_COPPER = "eda55f"
local COLOR_SILVER = "c7c7cf"
local COLOR_GOLD = "ffd700"

local L = GetLocale()
if L == "frFR" then
	L_GOLD = "o"
	L_SILVER = "a"
	L_COPPER = "c"
end

Money:SetScript("OnEvent", function()
	local current = _G.GetMoney()
	local gold = floor(current / 10000)
	local silver = floor((current - (gold * 10000)) / 100)
	local copper = mod(current, 100)
	
	local negl = ""
	local color = COLOR_WHITE

	Money.obj.text = format("|cff%s%s%d|r|cff%s%s|r |cff%s%d|r|cff%s%s|r |cff%s%d|r|cff%s%s|r", color, negl, gold, COLOR_GOLD, L_GOLD, color, silver, COLOR_SILVER, L_SILVER, color, copper, COLOR_COPPER, L_COPPER)
end)

Money:RegisterEvent("PLAYER_MONEY")
Money:RegisterEvent("PLAYER_TRADE_MONEY")
Money:RegisterEvent("TRADE_MONEY_CHANGED")
Money:RegisterEvent("SEND_MAIL_MONEY_CHANGED")
Money:RegisterEvent("SEND_MAIL_COD_CHANGED")
Money:RegisterEvent("PLAYER_LOGIN")
Quivocal is offline Report comment to moderator  
Reply With Quote
Old 09-17-08, 10:03 AM  
funkydude
A Deviate Faerie Dragon
 
funkydude's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 407
Uploads: 35
Re: Possible Bug with colors

I've seen a screenshot with this happening, but I can't understand how. I can't replicate it on my own system, and the code just isn't designed to do that.

Originally posted by Melikae
Just had the problem that the colors for the silver and copper values are shown in the same color as the "g", looking like this:

200 g 25 s 37 c

Otherwise your statblock addons are perfect
funkydude is offline Report comment to moderator  
Reply With Quote
Old 09-10-08, 02:02 PM  
Melikae
A Fallenroot Satyr
 
Melikae's Avatar

Forum posts: 29
File comments: 12
Uploads: 0
Possible Bug with colors

Just had the problem that the colors for the silver and copper values are shown in the same color as the "g", looking like this:

200 g 25 s 37 c

Otherwise your statblock addons are perfect
Last edited by Melikae : 09-10-08 at 02:03 PM.
Melikae is offline 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.