API Functions/Wallet

These can be found in "Red 5 Studios\Firefall\system\gui\lib\lib_Wallet.lua"
Function 	Description
Wallet.Refresh([cb_function]) 	refreshes funds (asynchronous); calls [cb_function] when done if defined
Wallet.GetFunds() 	returns a table of available funds (cached from Refresh)
Wallet.PromptRedBeanSpend(amount, prompt_text, cb_function) 	prompts the user to spend [amount] redbeans to [prompt_text]; calls [callback](response) when the player takes action, with response being true/false for Y/N
Wallet.PromptTypeSpend(type, amount, prompt_text, cb_function)	
Wallet.Subscribe(...) 	attempts to keep an updated cache on the funds listed. Valid currencies are: "crystite", "redbeans", "pilot_tokens"
Wallet.DisplayBalance(...) 	shows the balance(s) of current available funds.
Wallet.Foster( parent_widget ) 	fosters wallet to parent widget
Category:Addon_API