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: Code:
"BuffFrame:Hide();" It seemed smart to put it into an addon, so came up with: Code:
function events:PLAYER_ENTERING_WORLD() 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? Thanks! :cool: |
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. Example: Lua Code:
I personally prefer one of the more efficient ways of handling events, but this is explaining what you've seen others do. |
Quote:
I'll do as suggested, there, and keep the "addon" as it is. Thanks. |
All times are GMT -6. The time now is 04:49 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI