[Classic] getting rid of the world map button attached to the minimap
View Single Post
09-25-19, 07:19 PM
Join Date: Oct 2006
Sure. If it hasn't been created by the UI yet when your addon loads (which it might be - did you check?) then you can do it on PLAYER_LOGIN to make it only run your code once. That, or you can unregister the PLAYER_ENTERING_WORLD event after doing what you need to.
Your code could possibly be only 1 line.
That said, we are talking a negligible performance/footprint increase because the addon is so small and does so little anyway. I was just clearing up your misconception.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff,
The Tao of Pooh
View Public Profile
Send a private message to Seerah
Find More Posts by Seerah