Skip to content

Commit

Permalink
add TOP and BOTTOM raid frame anchor options
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonwow committed Mar 19, 2022
1 parent b1ae9d5 commit 33ec89a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1126,12 +1126,12 @@ function BigDebuffs:AddBigDebuffs(frame)
CreateFrame("Button", frameName .. "BigDebuffsRaid" .. i, frame, "CompactDebuffTemplate")
big:ClearAllPoints()
if i > 1 then
if self.db.profile.raidFrames.anchor == "INNER" then
if self.db.profile.raidFrames.anchor == "INNER" or self.db.profile.raidFrames.anchor == "RIGHT" or self.db.profile.raidFrames.anchor == "TOP" then
big:SetPoint("BOTTOMLEFT", frame.BigDebuffs[i-1], "BOTTOMRIGHT", 0, 0)
elseif self.db.profile.raidFrames.anchor == "LEFT" then
big:SetPoint("BOTTOMRIGHT", frame.BigDebuffs[i-1], "BOTTOMLEFT", 0, 0)
elseif self.db.profile.raidFrames.anchor == "RIGHT" then
big:SetPoint("BOTTOMLEFT", frame.BigDebuffs[i-1], "BOTTOMRIGHT", 0, 0)
elseif self.db.profile.raidFrames.anchor == "BOTTOM" then
big:SetPoint("TOPLEFT", frame.BigDebuffs[i-1], "TOPRIGHT", 0, 0)
end
else
if self.db.profile.raidFrames.anchor == "INNER" then
Expand All @@ -1141,6 +1141,10 @@ function BigDebuffs:AddBigDebuffs(frame)
big:SetPoint("BOTTOMRIGHT", frame, "BOTTOMLEFT", 0, 1)
elseif self.db.profile.raidFrames.anchor == "RIGHT" then
big:SetPoint("BOTTOMLEFT", frame, "BOTTOMRIGHT", 0, 1)
elseif self.db.profile.raidFrames.anchor == "TOP" then
big:SetPoint("BOTTOMLEFT", frame, "TOPLEFT", 0, 1)
elseif self.db.profile.raidFrames.anchor == "BOTTOM" then
big:SetPoint("TOPLEFT", frame, "BOTTOMLEFT", 0, 1)
end
end

Expand Down
4 changes: 3 additions & 1 deletion Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ L["Hide in Raids"] = true
L["Hide BigDebuffs in Raids"] = true
L["Group Size"] = true
L["Hides BigDebuffs for groups larger than group size"] = true
L["TOP"] = true
L["BOTTOM"] = true
L["X offset"] = true
L["Y offset"] = true
L["Show All Class Buffs"] = true
Expand All @@ -141,4 +143,4 @@ L["CENTER"] = true
L["Relative Point"] = true
L["Relative point to attach the BigDebuffs frames"] = true
L["Match Frame Height"] = true
L["Match the height of the frame"] = true
L["Match the height of the frame"] = true
2 changes: 2 additions & 0 deletions Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ function BigDebuffs:SetupOptions()
["INNER"] = L["INNER"],
["LEFT"] = L["LEFT"],
["RIGHT"] = L["RIGHT"],
["TOP"] = L["TOP"],
["BOTTOM"] = L["BOTTOM"],
},
order = 11,
},
Expand Down

0 comments on commit 33ec89a

Please sign in to comment.