Hiding buffs/debuffs on target/focus frame
Hi,
So I have this script which allows me to hide all buffs and debuffs from mentioned in the title frames but unfortunately its tainting. Could someone help me to make it work?:) Lua Code:
|
Why don't you UnregisterUnitEvent("UNIT_AURA", "target")?
|
I have no programming knowledge could you tell me how to use it?
|
Should be as simple as the following. I did I typo in my earlier post.
Lua Code:
|
Sadly it doesn't work:( It doesn't hide buffs/debuffs nor throwing errors. Do you have any idea what could be wrong?
|
|
Quote:
Lua Code:
|
Checking...this looks simple enough.
Paste this code over the top of the code in the HideBuffs.lua Lua Code:
|
Works! Thank you for that:banana:
|
This is a terrible way to do it but it'll work for now hehe.
|
Won't UIParent:SetScript("OnUpdate") just overwrite all of this, along with causing taint? HookScript is to be preferred over SetScript imo.
Of course, I say preferred very loosely given the code being used here, but you know. One step at a time. |
A safe way to help prevent taint and keep UIParent working as intended.
Lua Code:
|
You shouldn't mess with UIParent's OnUpdate script like Ammako pointed out. Try this:
Code:
TargetFrame:UnregisterEvent("UNIT_AURA") |
^=== this is a much more elegant and friendly way to do it. :)
|
All times are GMT -6. The time now is 10:47 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI