Skip to content

Commit

Permalink
Fix padding below sockets on belts without socket bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Dec 30, 2023
1 parent aabdaf6 commit 616e997
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
13 changes: 0 additions & 13 deletions Config/OptionsTables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1972,19 +1972,6 @@ local function MakeDebugOptions(opts, categoryName)
end
end

-- Debug Output
do
local opts = GUI:CreateGroup(opts, GUI:Order(), "Output")

local disabled = not self:GetGlobalOption"debug"

do
local opts = GUI:CreateGroupBox(opts, "Suppress All")

GUI:CreateToggle(opts, {"debugOutput", "suppressAll"}, self.debugPrefix .. " " .. self.L["Hide messages like this one."], nil, disabled).width = 2
end
end

-- Caches
do
local opts = GUI:CreateGroup(opts, GUI:Order(), "Cache")
Expand Down
12 changes: 7 additions & 5 deletions Operations/CalculatePadding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ local easyLines = {
EnchantHint = "Enchant",
WeaponEnchant = "WeaponEnchant",
Rune = "WeaponEnchant",
Socket = "Socket",
RequiredSocket = "Socket",
SocketBonus = "SocketBonus",
-- Socket = "Socket",
-- RequiredSocket = "Socket",
-- SocketBonus = "SocketBonus",
SetName = "SetBonus",
SetPiece = "SetBonus",
SetBonus = "SetBonus",
}
local hardLines = Addon:MakeLookupTable{"SecondaryStat", "EnchantOnUse", "RequiredEnchantOnUse", "Charges", "Cooldown", "SocketHint"}
local hardLines = Addon:MakeLookupTable{"Socket", "RequiredSocket", "SocketBonus", "SecondaryStat", "EnchantOnUse", "RequiredEnchantOnUse", "Charges", "Cooldown", "SocketHint"}


local function GetPadType(offset, lineType, lastUse)
Expand All @@ -41,7 +41,9 @@ local function GetPadType(offset, lineType, lastUse)
return
end

if lineType == "SecondaryStat" then
if lineType == "Socket" or lineType == "RequiredSocket" or lineType == "SocketBonus" then
return offset == -1 and "Socket" or "SocketBonus"
elseif lineType == "SecondaryStat" then
if Addon:GetOption"combineStats" then
return "BaseStat"
end
Expand Down

0 comments on commit 616e997

Please sign in to comment.