View Single Post
04-12-12, 06:53 PM   #10
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Try this (untested):

In your Interface/AddOns folder, create a folder titled GoldDisplay

In this GoldDisplay folder, create a file named GoldDisplay.toc (make sure that it's not GoldDisplay.toc.txt). My editor of choice is Notepad++, but you can use any text editor. Inside this .toc file, put this text:
Code:
## Interface: 40300
## Title: GoldDisplay
## Notes: Shows how much gold you have
GoldDisplay.lua
Then create a file named GoldDisplay.lua and put this inside:
Code:
local frame = CreateFrame("Frame")
frame:SetSize(200, 25)

--you can change these values to alter where your frame is displayed
frame:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 2, 50)

local text = frame:CreateFontString(nil, nil, "GameFontHighlight")
text:SetPoint("BOTTOMLEFT")

frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_MONEY")
frame:SetScript("OnEvent", function()
     text:SetText(GetCoinTextureString(GetMoney()))
end)
This should show you how much money you have just above the top left of your chat frame.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh


Last edited by Seerah : 04-12-12 at 06:58 PM.
  Reply With Quote