WoWInterface - View Single Post - currency display issues
View Single Post
09-28-17, 02:09 PM   #4
A Cliff Giant
Join Date: Apr 2017
Posts: 75
I suggested something like this
Lua Code:
  1. local currency = {}
  2. local function getCurrencies()
  3.     if not OrderHallCommandBar then return end
  4.     local prevName
for better scoping (and resetting) of variable prevName.
For me it feels like
Lua Code:
  1. if not currency[name] then
should be the first check within loop, with isWatched setting visibility and order.
I think
Lua Code:
  1. else
  2.     currency[name].text:SetText(count)
  3. end
is missing code relating setpoints and prevName.
  Reply With Quote