From ab1c1318c70f0c3b463696f2c95f10c99dfab559 Mon Sep 17 00:00:00 2001 From: jordon <29447509+jordonwow@users.noreply.github.com> Date: Wed, 19 Jul 2023 06:26:55 -0700 Subject: [PATCH] set locales and default wrapAt --- BigDebuffs.lua | 4 ++-- Locales/enUS.lua | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index d48042d..59bad76 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -1289,7 +1289,7 @@ function BigDebuffs:AddBigDebuffs(frame) frame.BigDebuffs = frame.BigDebuffs or {} local max = self.db.profile.raidFrames.maxDebuffs + 1 -- add a frame for warning debuffs - local wrapAt = self.db.profile.raidFrames.wrapAt + local wrapAt = self.db.profile.raidFrames.wrapAt or 10 for i = 1, max do local big = frame.BigDebuffs[i] or CreateFrame("Button", frameName .. "BigDebuffsRaid" .. i, frame, "BigDebuffsDebuffTemplate") @@ -1309,7 +1309,7 @@ function BigDebuffs:AddBigDebuffs(frame) big:SetPoint("BOTTOMRIGHT", frame.BigDebuffs[1], "TOPRIGHT", 0,1) elseif self.db.profile.raidFrames.anchor == "BOTTOM" then big:SetPoint("TOPLEFT", frame.BigDebuffs[1], "BOTTOMLEFT", 0, -1) - end + end else if self.db.profile.raidFrames.anchor == "INNER" then big:SetPoint("BOTTOMLEFT", frame.debuffFrames[1], "BOTTOMLEFT", 0, 0) diff --git a/Locales/enUS.lua b/Locales/enUS.lua index 8a19610..0634d7a 100644 --- a/Locales/enUS.lua +++ b/Locales/enUS.lua @@ -146,3 +146,5 @@ 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["Wrap After"] = true +L["Begin a new row or column after this many debuffs"] = true