- re-fixed cascading buffs when "buffs per row" was used for the TargetInfo module

This commit is contained in:
Parnic
2008-08-26 05:55:45 +00:00
parent e14725974a
commit 0f772761fb

View File

@ -665,6 +665,12 @@ function TargetInfo.prototype:CreateIconFrames(parent, direction, buffs, type)
buffSize = self.moduleSettings.ownBuffSize buffSize = self.moduleSettings.ownBuffSize
end end
local pos = i % self.moduleSettings.perRow
if pos == 1 or self.moduleSettings.perRow == 1 then
lastX = 0
lastBuffSize = 0
end
local x = lastX + lastBuffSize local x = lastX + lastBuffSize
lastX = x lastX = x
lastBuffSize = (buffSize * direction) lastBuffSize = (buffSize * direction)