Hi guyz,
i move my BuffFrame to the bottom of screen and change the grow up direction(left to right then bottom to top),
the grow up direction is working fine, but it cause a tons of log and lag...
it happened while in combat, mostly in raid,
here is tainted log
Lua Code:
4/19 17:48:29.451 Interface\FrameXML\TargetFrame.lua:908 TargetofTarget_Update()
4/19 17:48:29.451 An action was blocked in combat because of taint from !buff - TargetFrameToT:Show()
4/19 17:48:29.451 Interface\FrameXML\TargetFrame.lua:910 TargetofTarget_Update()
4/19 17:48:29.451 Interface\FrameXML\TargetFrame.lua:420 TargetFrame_OnUpdate()
4/19 17:48:29.451 TargetFrame:OnUpdate()
my layout of debuff(modified from blz source code)
Lua Code:
hooksecurefunc("DebuffButton_UpdateAnchors",function(buttonName, index)
local numBuffs = BUFF_ACTUAL_DISPLAY + BuffFrame.numEnchants;
local rows = ceil(numBuffs/BUFFS_PER_ROW);
--source code local rows = ceil(numBuffs/BUFFS_PER_ROW);
local buff = _G[buttonName..index];
local BUFFS_PER_ROW = 6 -- default is 10
-- Position debuffs
if ( (index > 1) and (mod(index, BUFFS_PER_ROW) == 1) ) then
--source code if ( (index > 1) and (mod(index, BUFFS_PER_ROW) == 1) ) then
-- New row
buff:SetPoint("BOTTOM", _G[buttonName..(index-BUFFS_PER_ROW)], "TOP", 0, BUFF_ROW_SPACING); -- Grow Up
--source code buff:SetPoint("TOP", _G[buttonName..(index-BUFFS_PER_ROW)], "BOTTOM", 0, -BUFF_ROW_SPACING);
elseif ( index == 1 ) then
if ( rows < 2 ) then
DebuffButton1.offsetY = 1*((3*BUFF_ROW_SPACING)+2*BUFF_BUTTON_HEIGHT);
--source code DebuffButton1.offsetY = 1*((2*BUFF_ROW_SPACING)+BUFF_BUTTON_HEIGHT);
else
DebuffButton1.offsetY = rows*(BUFF_ROW_SPACING+BUFF_BUTTON_HEIGHT);
--source code DebuffButton1.offsetY = rows*(BUFF_ROW_SPACING+BUFF_BUTTON_HEIGHT);
end
buff:SetPoint("TOPRIGHT", BuffFrame, "BOTTOMRIGHT", -21, DebuffButton1.offsetY); --Grow Up
--source code buff:SetPoint("TOPRIGHT", BuffFrame, "BOTTOMRIGHT", 0, -DebuffButton1.offsetY);
else
buff:SetPoint("RIGHT", _G[buttonName..(index-1)], "LEFT", 65, 0); --Left to Right
--source code buff:SetPoint("RIGHT", _G[buttonName..(index-1)], "LEFT", -5, 0);
end
end)
highly appreciated if someone help out with it...BIG HUG~~~~~