diff Modules/Currency.lua @ 116:ddfe19d70a34

ArtifactPower: - Further 7.2 accommodations, relating to tokens that grant millions of AP. Currency: - Ancient Mana zones list expanded - Legionfall War Supplies, Nethershards, and Blood of Sargeras are tracked globally PaperDoll: - Should update more effectively when delayed artifact data loads in. WorldState: - Fixed hanging panels after OrderHallCommandBar is hidden.
author Nenue
date Wed, 26 Apr 2017 20:06:38 -0400
parents 8c94bee4fdfc
children b3c0258b419d
line wrap: on
line diff
--- a/Modules/Currency.lua	Tue Mar 28 07:02:26 2017 -0400
+++ b/Modules/Currency.lua	Wed Apr 26 20:06:38 2017 -0400
@@ -22,14 +22,24 @@
 local blocks = {
   ["Ancient Mana"] = {
     currencyID = 1155,
+    showMax = true,
     zones = {
       ['Suramar'] = true,
       ["Sashj'tar Ruins"] = true,
-      ["Faronaar Ruins"] = true
-    }
+      ["Faronaar Ruins"] = true,
+      ["Halls of the Eclipse"] = true,
+      ["Shal'aran"] = true,
+      ["The Fel Breach"] = true,
+    },
   },
   ["Blood of Sargeras"] = {
     itemID = 124124,
+  },
+  ["Legionfall War Supplies"] = {
+    currencyID = 1342,
+  },
+  ["Nethershard"] = {
+    currencyID = 1226,
   }
 }
 local items, currencies = {}, {}
@@ -41,6 +51,7 @@
   EventList = {'PLAYER_ENTERING_WORLD'},
   moduleName = 'Currency Watch',
   anchorPoint = 'TOP',
+  anchorPriority = 2,
 }
 VeneerCurrencyBlockMixin = {}
 local module = VeneerCurrencyMixin
@@ -92,7 +103,12 @@
         local name, earned, texture, earnedThisWeek, weeklyMax, totalMax = GetCurrencyInfo(currencyID)
         
         block.Icon:SetTexture(texture)
-        block.Label:SetFormattedText("%d / %d", earned, totalMax)
+        if self.showMax then
+          block.Label:SetFormattedText("%d / %d", earned, totalMax)
+        else
+          block.Label:SetFormattedText("%d", earned)
+        end
+
         block:SetWidth(block.Icon:GetWidth() + block.Label:GetStringWidth() + 6)
         return true
       end