Thread Tools Display Modes
03/11/15, 05:18 PM   #1
Kevinmon
Join Date: Apr 2014
Posts: 17
Request for Add-on: Show how much gold I have in the bank

Is there an add-on that does this yet?
  Reply With Quote
03/11/15, 06:35 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Kevinmon View Post
Is there an add-on that does this yet?
Thats a good idea. Added it to: TweakIt

  Reply With Quote
03/12/15, 07:13 PM   #3
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
Or Account Balancer?
  Reply With Quote
03/16/15, 07:59 PM   #4
Kevinmon
Join Date: Apr 2014
Posts: 17
Originally Posted by circonian View Post
Thats a good idea. Added it to: TweakIt

Thank you so much for this, it's perfect!
  Reply With Quote
04/07/15, 04:22 PM   #5
Kevinmon
Join Date: Apr 2014
Posts: 17
Would it be possible to make the banked gold on inventory as a stand-alone add-on?
  Reply With Quote
04/08/15, 09:18 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,966
Account Balancer (see 2 post above your post) does this.
  Reply With Quote
04/08/15, 04:01 PM   #7
Kevinmon
Join Date: Apr 2014
Posts: 17
Originally Posted by Baertram View Post
Account Balancer (see 2 post above your post) does this.
No it doesn't. It only shows gold when you're in your bank, not everywhere else.
  Reply With Quote
04/08/15, 04:12 PM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,966
Oh, my fault. I thought it was showing this everywhere.
  Reply With Quote
04/08/15, 06:15 PM   #9
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Kevinmon View Post
Would it be possible to make the banked gold on inventory as a stand-alone add-on?
If you want, grab BankedGold-0.1.zip from my Dropbox (link in my signature).

Source code:
Lua Code:
  1. local label
  2.  
  3. local function OnStateChange(oldState, newState)
  4.     if (newState == SCENE_SHOWING) then
  5.         ZO_CurrencyControl_SetSimpleCurrency(label, CURRENCY_TYPE_MONEY, GetBankedMoney(), INVENTORY_BANKED_CURRENCY_OPTIONS)
  6.     end
  7. end
  8.  
  9. local function OnBankMoneyUpdated(event, newBankedMoney, oldBankedMoney)
  10.     ZO_CurrencyControl_SetSimpleCurrency(label, CURRENCY_TYPE_MONEY, newBankedMoney, INVENTORY_BANKED_CURRENCY_OPTIONS)
  11. end
  12.  
  13. local function OnAddonLoaded(event, name)
  14.     if name:find("^ZO_") then return end
  15.     EVENT_MANAGER:UnregisterForEvent("_BankedGold_", event)
  16.  
  17.     label = WINDOW_MANAGER:CreateControlFromVirtual(nil, ZO_PlayerInventoryInfoBar, "ZO_CurrencyTemplate")
  18.     label:SetAnchor(TOPRIGHT, ZO_PlayerInventoryInfoBarMoney, BOTTOMRIGHT, 0, 0)
  19.  
  20.     local inventoryScene = SCENE_MANAGER:GetScene("inventory")
  21.     inventoryScene:RegisterCallback("StateChange", OnStateChange)
  22.  
  23.     EVENT_MANAGER:RegisterForEvent("_BankedGold_", EVENT_BANKED_MONEY_UPDATE, OnBankMoneyUpdated)
  24. end
  25.  
  26. EVENT_MANAGER:RegisterForEvent("_BankedGold_", EVENT_ADD_ON_LOADED, OnAddonLoaded)

Last edited by Garkin : 04/08/15 at 08:19 PM. Reason: modified source code
  Reply With Quote
04/08/15, 06:53 PM   #10
Kevinmon
Join Date: Apr 2014
Posts: 17
Originally Posted by Garkin View Post
If you want, grab BankedGold-0.1.zip from my Dropbox (link in my signature).

Source code:
Lua Code:
  1. local label
  2.  
  3. local function OnStateChange(oldState, newState)
  4.     if (newState == SCENE_SHOWING) then
  5.         if not label then
  6.             label = WINDOW_MANAGER:CreateControlFromVirtual(nil, ZO_PlayerInventoryInfoBar, "ZO_CurrencyTemplate")
  7.             label:SetAnchor(TOPRIGHT, ZO_PlayerInventoryInfoBarMoney, BOTTOMRIGHT, 0, 0)
  8.         end
  9.         ZO_CurrencyControl_SetSimpleCurrency(label, CURRENCY_TYPE_MONEY, GetBankedMoney(), INVENTORY_BANKED_CURRENCY_OPTIONS)
  10.     end
  11. end
  12.  
  13. local function OnBankMoneyUpdated(event, newBankedMoney, oldBankedMoney)
  14.     ZO_CurrencyControl_SetSimpleCurrency(label, CURRENCY_TYPE_MONEY, newBankedMoney, INVENTORY_BANKED_CURRENCY_OPTIONS)
  15. end
  16.  
  17. local function OnAddonLoaded(event, name)
  18.     if name:find("^ZO_") then return end
  19.     EVENT_MANAGER:UnregisterForEvent("_BankedGold_", event)
  20.  
  21.     local inventoryScene = SCENE_MANAGER:GetScene("inventory")
  22.     inventoryScene:RegisterCallback("StateChange", OnStateChange)
  23.  
  24.     EVENT_MANAGER:RegisterForEvent("_BankedGold_", EVENT_BANKED_MONEY_UPDATE, OnBankMoneyUpdated)
  25. end
  26.  
  27. EVENT_MANAGER:RegisterForEvent("_BankedGold_", EVENT_ADD_ON_LOADED, OnAddonLoaded)
Thank you Garkin, this is perfect! You are awesome!
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Request for Add-on: Show how much gold I have in the bank


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