Thread Tools Display Modes
01-22-10, 04:49 AM   #1
jfn302
An Aku'mai Servant
Join Date: Oct 2007
Posts: 36
Player Money Frame

Just thought I would share this with anyone that might be interested.

Since I have been building my interface trying to avoid all addons except RDX, I have been missing small things like my FuBar_DurabilityFu and FuBar_MoneyFu.

FuBar_DurabilityFu puts a percentile number on the Fubar so you can see what shape your armor and weapons are in. Very useful for remembering to repair before a run, and knowing how many more times you can die before you absolutely have to repair.

FuBar_MoneyFu puts a printout of the money you have on the Fubar. When you mouse over it, it provides a lot of detail about how much you have made this session, how much you have on all your toons, the total of all your toons cash, how much you make per hour, etc.

While I have yet to replace the full functionality of FuBar_MoneyFu inside of RDX, I have made my first baby steps into building something that will replicate it.

I currently have a window created that will display your money.

The steps I took to create this window are as follows.

First, create a new Script object. I named mine MoneyScript.

Edit the new Script object and enter the following code:
Code:
local cash = GetMoney()
local gold = floor(cash / 10000)
local silver = floor(mod(cash / 100, 100))
local copper = mod(cash, 100) 
local text = gold .. " G, " .. silver .. " S, " .. copper .. " C "
Now, create a new UnitFrame object. I named mine MoneyFrame.

Drop in a Base Frame
Drop in a Custom Text
Set font to whatever is standard on your UI, I like the Comic.
Also, set the Width to 300 so the text isn't cropped.
Then, Set the Script Object to the MoneyScript you just created.
Save and exit from the UnitFrame editor.

Now just create a window to hold the frame and you can see the amount of money you have all the time without having to open your bags.

I'll post more details as I flesh out the ability to do more of what FuBar_MoneyFu does in the future.

Have fun.
  Reply With Quote

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Player Money Frame


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