View Single Post
04-11-20, 11:16 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I'm not exactly sure what you're asking. Can you elaborate more on what you're trying to do?
There are also a few things I want to point out.

You're creating a button and storing it in MapQuestIconFrame, but are giving it the name TextureBasics, which also stores it in that global. Why not skip assigning the global and just name it MapQuestIconFrame?

When you call WorldMapFrame:SetScript(), you're breaking WorldMapFrame by replacing any existing function there. Use WorldMapFrame:HookScript() instead.

Every time MapQuestIconShow() is called, you're running MapQuestIconFrame:CreateTexture(), which keeps creating a new UI object every time you open WorldMapFrame.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote