Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading