![]() Local child = header:GetAttribute("child". Local function siter_active_children(header, i) provide a simple iterator to the header ![]() ![]() HeaderAura:SetAttribute("sortDir", "+") - to reverse HeaderAura:SetAttribute("sortMethod", "NAME") - INDEX or NAME or TIME HeaderAura:SetAttribute("wrapYOffset", -30) HeaderAura:SetAttribute("wrapXOffset", 0) HeaderAura:SetAttribute("wrapAfter", 10) HeaderAura:SetAttribute("point", "TOPLEFT") the following code create a buff bar anchor to TOPLEFT and buff orientation goes to right with 10 buttons max on two rows HeaderAura:SetAttribute("minHeight", 100) HeaderAura:SetAttribute("minWidth", 100) HeaderAura:SetAttribute("template", "RDXAB30x30Template") - must be the template name of your XML HeaderAura:SetAttribute("filter", "HELPFUL") HeaderAura:SetAttribute("unit", "player") - to activate UNITAURA event refresh Size This will define the height and width of your buff, example: Īttribute : indicate the button is a cancelaura type.Ĭode: local headerAura = CreateFrame("Frame", "SAH", nil, "SecureAuraHeaderTemplate") GameTooltip:SetUnitAura("player", self:GetID()) GameTooltip:SetInventoryItem("player", self:GetID()) If self:GetAttribute("target-slot") = 16 or self:GetAttribute("target-slot") = 17 or self:GetAttribute("target-slot") = 18 then GameTooltip:SetFrameLevel(self:GetFrameLevel() + 2) GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT")
0 Comments
Leave a Reply. |