From c349e189a3ef01d1d2674b04c11cff8dd5cf6b99 Mon Sep 17 00:00:00 2001 From: vaisest <4550061+vaisest@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:23:18 +0300 Subject: [PATCH] Add more affix controls --- src/Classes/ItemsTab.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 3bd2d7986..2dcbf1f51 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -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 @@ -717,7 +718,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