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:
if not currency[counter].tooltipinfo then
currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
else
currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
end
can't be simplified into
Lua Code:
if not currency[counter].tooltipinfo then
currency[counter].tooltipinfo = link:match("|Hcurrency:(%d+)|")
end
I think
Lua Code:
elseif not isWatched then
can be changed into
.