Hello everyone,
First of all, I apologize, I’m not familiar with Lua and haven’t taken the time to learn it so hopefully, someone can help me.
I successfully managed to increase the size of my target buff/debuff with the following code :
hooksecurefunc("TargetFrame_UpdateBuffAnchor", function(_, buff)
buff:SetSize(21, 21)
end)
hooksecurefunc("TargetFrame_UpdateDebuffAnchor", function(_, debuff)
debuff:SetSize(28, 28)
end)
The issue is that because the size is increased, it overlaps on my target frame when the 5th debuff shows up.
I’ve noticed that this issue does not occur when I have a “Target of Target” displayed on the screen.
I checked the TargetFrame.lua code and noticed the following piece of code inside the UpdateAuraFrame function :
maxRowWidth = (haveTargetofTarget and self.TOT_AURA_ROW_WIDTH) or AURA_ROW_WIDTH;
TOT_AURA_ROW_WIDTH is set to 101 and AURA_ROW_WIDTH is set to 122
My guess is that I need to set the local variable AURA_ROW_WIDTH to 101.
Sadly, I don’t know how to perform what I mentioned above or even if this is the right approach…
I tried the following, without success lol… :
hooksecurefunc("TargetFrameMixin:UpdateAuras", function(_, debuff)
AURA_ROW_WIDTH=101
end)
If any of you have any ideas !
Thanks a lot.