Thread Tools Display Modes
11-03-08, 09:16 AM   #1
iindigo
An Aku'mai Servant
 
iindigo's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 32
GoldFrame won't show player's gold?

I've been writing a little addon for personal use that utilizes an inherited gold frame. It appears correctly and even shows the correct gold amount if the player sells something, buys something, or does anything else to change their amount of gold. The problem is that it shows zero copper after logging in until the player performs a gold-changing action.

Am I missing something?


Thanks!
  Reply With Quote
11-03-08, 11:04 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Do you only have your frame reacting to events? You'll need to do GetMoney() when you login.
__________________
"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

  Reply With Quote
11-03-08, 12:16 PM   #3
iindigo
An Aku'mai Servant
 
iindigo's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 32
Originally Posted by Seerah View Post
Do you only have your frame reacting to events? You'll need to do GetMoney() when you login.
Thanks! That's exactly what was wrong. I just did a

Code:
MoneyFrame_Update(self:GetName(), GetMoney("player"));
hooked up to the PLAYER_ENTERING_WORLD event and it works perfectly now.


Thanks again!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » GoldFrame won't show player's gold?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off