Fix item group rendering
This commit is contained in:
parent
6777df634d
commit
22301dfe77
@ -594,13 +594,13 @@ local PAGES = {
|
|||||||
storageSatProgress:setProgress(1 - (emptyCount / totalCount))
|
storageSatProgress:setProgress(1 - (emptyCount / totalCount))
|
||||||
|
|
||||||
local basePageIndex = (pageState.currentPage - 1) * groupEntryListBudget
|
local basePageIndex = (pageState.currentPage - 1) * groupEntryListBudget
|
||||||
local pageEntryCount = math.min(groupEntryListBudget, totalCount - basePageIndex)
|
|
||||||
for i=1,groupEntryListBudget do
|
for i=1,groupEntryListBudget do
|
||||||
local isVisible = i <= pageEntryCount
|
local group = pageState.stacks[basePageIndex + i]
|
||||||
|
|
||||||
|
local isVisible = group ~= nil
|
||||||
local listEntry = mainList:findById(tostring(i))
|
local listEntry = mainList:findById(tostring(i))
|
||||||
listEntry:setVisible(isVisible)
|
listEntry:setVisible(isVisible)
|
||||||
if isVisible then
|
if isVisible then
|
||||||
local group = pageState.stacks[basePageIndex + i]
|
|
||||||
|
|
||||||
local nameText = listEntry:findById(GroupEntryID.NAME)
|
local nameText = listEntry:findById(GroupEntryID.NAME)
|
||||||
local namePadding = listEntry:findById(GroupEntryID.PADDING)
|
local namePadding = listEntry:findById(GroupEntryID.PADDING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user