Skip to content

Commit c349e18

Browse files
committed
Add more affix controls
1 parent 035a04f commit c349e18

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,13 @@ holding Shift will put it in the second.]])
702702
end
703703

704704
-- Section: Affix Selection
705+
local maxModCount = 9
705706
self.controls.displayItemSectionAffix = new("Control", {"TOPLEFT",self.controls.displayItemSectionRune,"BOTTOMLEFT"}, {0, 0, 0, function()
706707
if not self.displayItem or not self.displayItem.crafted then
707708
return 0
708709
end
709710
local h = 6
710-
for i = 1, 6 do
711+
for i = 1, maxModCount do
711712
if self.controls["displayItemAffix"..i]:IsShown() then
712713
h = h + 24
713714
if self.controls["displayItemAffixRange"..i]:IsShown() then
@@ -717,7 +718,7 @@ holding Shift will put it in the second.]])
717718
end
718719
return h
719720
end})
720-
for i = 1, 6 do
721+
for i = 1, maxModCount do
721722
local prev = self.controls["displayItemAffix"..(i-1)] or self.controls.displayItemSectionAffix
722723
local drop, slider
723724
local function verifyRange(range, index, drop) -- flips range if it will form discontinuous values

0 commit comments

Comments
 (0)