Hi everyone. I have two questions to you.
At first. We have unitframe and 6 debuffs.
Standart oUF growing of debuffs:
[Unit_____] [1] [2] [3]
[ ___frame] [4] [5] [6]
But I want to make like that:
[Unit_____] [1] [3] [5]
[ ___frame] [2] [4] [6]
Someone have ideas how realize it?
Fragment of my simple lua
Code:
self.Debuffs = CreateFrame("Frame", nil, self)
self.Debuffs.size = 18
self.Debuffs:SetHeight(self.Debuffs.size)
self.Debuffs:SetWidth(self.Debuffs.size * 3)
self.Debuffs:SetPoint("RIGHT", self, 53, 10)
self.Debuffs.initialAnchor = "BOTTOMLEFT"
self.Debuffs["growth-x"] = "RIGHT"
self.Debuffs["growth-y"] = "DOWN"
self.Debuffs.num = 6
self.Debuffs.spacing = 0
------------------------
Second question. I want to make castbar as on pictures, but don't know how. Can you help me?
Code:
If target/focus have 1-10 buffs then
set position #1
else
set position #2
end