diff --git a/ARLConfig.lua b/ARLConfig.lua index 3311e07..1621e46 100644 --- a/ARLConfig.lua +++ b/ARLConfig.lua @@ -1079,7 +1079,7 @@ local function fullOptions() desc = L["SCANBUTTONPOSITION_DESC"], get = function() return addon.db.profile.scanbuttonlocation end, set = function(info,name) addon.db.profile.scanbuttonlocation = name end, - values = function() return {Right = L["Right"], Left = L["Left"]} end, + values = function() return {Right = L["Top Right"], Left = L["Top Left"], Right = L["Bottom Right"], Left = L["Bottom Left"]} end, }, uiscale = { order = 30, diff --git a/ARLFrame.lua b/ARLFrame.lua index 5f8eaff..e447674 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -1161,28 +1161,28 @@ function addon:ShowScanButton() -- Anchor to ATSW if (ATSWFrame) then - addon.ScanButton:SetParent(ATSWFrame) addon.ScanButton:ClearAllPoints() addon.ScanButton:SetPoint("RIGHT", ATSWOptionsButton, "LEFT", 0, 0) addon.ScanButton:SetHeight(ATSWOptionsButton:GetHeight()) addon.ScanButton:SetWidth(90) - -- Anchor to trade window else - addon.ScanButton:SetParent(TradeSkillFrame) addon.ScanButton:ClearAllPoints() local loc = addon.db.profile.scanbuttonlocation - if (loc == L["Right"]) then + if (loc == L["Top Right"]) then addon.ScanButton:SetPoint("RIGHT",TradeSkillFrameCloseButton,"LEFT",4,0) - elseif (loc == L["Left"]) then + elseif (loc == L["Top Left"]) then + addon.ScanButton:SetPoint("LEFT",TradeSkillFramePortrait,"RIGHT",2,12) + elseif (loc == L["Bottom Right"]) then + addon.ScanButton:SetPoint("RIGHT",TradeSkillFrameCloseButton,"LEFT",4,0) + elseif (loc == L["Bottom Left"]) then addon.ScanButton:SetPoint("LEFT",TradeSkillFramePortrait,"RIGHT",2,12) end addon.ScanButton:SetWidth(addon.ScanButton:GetTextWidth() + 10) - end addon.ScanButton:Show() diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 937eb8e..2a73301 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -148,7 +148,7 @@ function addon:OnInitialize() includeexcluded = false, closeguionskillclose = false, ignoreexclusionlist = false, - scanbuttonlocation = L["Right"], + scanbuttonlocation = L["Top Right"], spelltooltiplocation = L["Right"], acquiretooltiplocation = L["Mouse"], diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua index 66d8e87..5cf5c57 100644 --- a/Locals/ARLLocals-enUS.lua +++ b/Locals/ARLLocals-enUS.lua @@ -104,6 +104,10 @@ L["Left"] = true L["Off"] = true L["Top"] = true L["Bottom"] = true +L["Top Right"] = true +L["Top Left"] = true +L["Bottom Right"] = true +L["Bottom Left"] = true L["Mouse"] = true L["Name"] = true L["Skill"] = true