View Single Post
09-28-17, 04:02 PM   #6
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
Glad that I was able to be of assistance.
The logic still feels wrong. Separating creation and visibility of objects is a good start.
Don't see the reason why
Lua Code:
  1. if not currency[counter].tooltipinfo then
  2.                     currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
  3.                 else
  4.                     currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
  5.                 end
can't be simplified into
Lua Code:
  1. if not currency[counter].tooltipinfo then
  2.     currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
  3. end
I think
Lua Code:
  1. elseif not isWatched then
can be changed into
Lua Code:
  1. else
.
  Reply With Quote