make better / BuffFrame:Hide();
I found a brilliant UI addon, but it still shows the auras / buffs in the top right corner.
I'm not a coder, but read through the LUA of a few addons and found:
It seemed smart to put it into an addon, so came up with:
Simply changing the lua to just that one thing - to just "BuffFrame:Hide();" (no more lines or words) - made it work.
The thing is that I'm sure that can't be the slickest / most friendly to the game way to do it.
I'd simply like to hide that Buff frame utterly and always. What would be the simplest way to use "BuffFrame:Hide();" to do so?
I'd just run BuffFrame:Hide() by itself. There really isn't a need to wait for an event to fire.
It really depends on the frame and what its original code does. Lots of frames show and hide themselves. Fortunately, BuffFrame does not.
-= Off-Topic =-
To respond to an event, you need to create a frame to listen for it. For readability, many people use a generic handler to redirect events to different functions stored in the frame's table.
I personally prefer one of the more efficient ways of handling events, but this is explaining what you've seen others do.
I'll do as suggested, there, and keep the "addon" as it is.
|All times are GMT -6. The time now is 09:45 AM.|
vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI