ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Request for Add-on: Show how much gold I have in the bank (https://www.esoui.com/forums/showthread.php?t=4414)

Kevinmon 03/11/15 05:18 PM

Request for Add-on: Show how much gold I have in the bank
 
Is there an add-on that does this yet?

circonian 03/11/15 06:35 PM

Quote:

Originally Posted by Kevinmon (Post 19514)
Is there an add-on that does this yet?

Thats a good idea. Added it to: TweakIt


katkat42 03/12/15 07:13 PM

Or Account Balancer?

Kevinmon 03/16/15 07:59 PM

Quote:

Originally Posted by circonian (Post 19520)
Thats a good idea. Added it to: TweakIt


Thank you so much for this, it's perfect! :)

Kevinmon 04/07/15 04:22 PM

Would it be possible to make the banked gold on inventory as a stand-alone add-on?

Baertram 04/08/15 09:18 AM

Account Balancer (see 2 post above your post) does this.

Kevinmon 04/08/15 04:01 PM

Quote:

Originally Posted by Baertram (Post 20298)
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.

Baertram 04/08/15 04:12 PM

Oh, my fault. I thought it was showing this everywhere.

Garkin 04/08/15 06:15 PM

Quote:

Originally Posted by Kevinmon (Post 20278)
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)

Kevinmon 04/08/15 06:53 PM

Quote:

Originally Posted by Garkin (Post 20319)
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! :D


All times are GMT -6. The time now is 06:56 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI