Originally Posted by Resike
Is it possible to add this function to the World Map Frame's Tracking dropdown as "Show Trasures" as a toggle?
|
Not sure about your question, but probably. I'm not actively playing WoW to test code.
However, I see an unnecessary global lookup, where you already have a local to do the job:
Lua Code:
local poi = _G["WorldMapFramePOI"..i]
local poiTexture = _G["WorldMapFramePOI"..i.."Texture"] -- right here
Replace with:
Lua Code:
local poi = _G["WorldMapFramePOI"..i]
local poiTexture = poi.."Texture"
Unless for some reason the texture lookup won't work in that manner?