View Single Post
04-24-17, 07:44 PM   #5
Dejablue
A Wyrmkin Dreamwalker
 
Dejablue's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 58
Originally Posted by Fizzlemizz View Post
I don't see where you check if a button already exists. Every OnEvent seems to trigger the creation of a new set of buttons for each specified item found.
This is the latest attempt in the OP code:

Code:
    if ((_G["BMUDButtonFS"..name])~=nil) then
        BMUDButton:SetNormalTexture(nil,"ARTWORK")
	BMUDButton:SetPushedTexture(nil,"ARTWORK")
	BMUDButton:SetHighlightTexture(nil,"ARTWORK")
	BMUDButtonFS:SetFormattedText("")
    end

Yeah, BAG_UPDATE event fires a billion times and is more of a debugging event that i can use at a vendor to sell and rebuy my beacons to see if this works.

Thanks for taking the time. Let me know if you think of anything else
  Reply With Quote