diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index e6083ea783..89401381b9 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -695,7 +695,7 @@ holding Shift will put it in the second.]]) end return h end}) - for i = 1, 6 do + for i = 1, maxModCount do local prev = self.controls["displayItemAffix"..(i-1)] or self.controls.displayItemSectionAffix local drop, slider local function verifyRange(range, index, drop) -- flips range if it will form discontinuous values diff --git a/src/Classes/ItemsTab.lua.rej b/src/Classes/ItemsTab.lua.rej new file mode 100644 index 0000000000..1f2fd29366 --- /dev/null +++ b/src/Classes/ItemsTab.lua.rej @@ -0,0 +1,16 @@ +diff a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua (rejected hunks) +@@ -702,12 +702,13 @@ holding Shift will put it in the second.]]) + end + + -- Section: Affix Selection ++ local maxModCount = 9 + self.controls.displayItemSectionAffix = new("Control", {"TOPLEFT",self.controls.displayItemSectionRune,"BOTTOMLEFT"}, {0, 0, 0, function() + if not self.displayItem or not self.displayItem.crafted then + return 0 + end + local h = 6 +- for i = 1, 6 do ++ for i = 1, maxModCount do + if self.controls["displayItemAffix"..i]:IsShown() then + h = h + 24 + if self.controls["displayItemAffixRange"..i]:IsShown() then