my bad i thought you were talking about the networks tab, i see the issue now.waduk wrote:Sorry, i can't make it to work.
The way i see it, both "Network Item" and "Normal Item" tab, using the same code in item.lua, line 77.
Problem is Network Item only need 8 column, while the Normal Item need 10 column.
The workaround is if i make additional 2 new Network chest and styles, so the Network Items will have the same column.
But i don't have a custom logistic chest (yet).
The other way is to somehow force Network item to not using the same code/line colspan like Normal Item. But i don't know how to do that.
Is it requiring a major code rewrote ?
If it is, i don't want to waste your time.
So either i'm gonna use the first workaround or maybe redo the whole thing (just replacing normal item in control.lua with my custom chest)
you could probably do something like this, in gui/items.lua in the updateItemsTable function you can add at the top around lines 5/6
Code: Select all
local colspan = 8
if currentTab == "logistics" then
colspan = 9
elseif currentTab == "normal" then
colspan = 10
end
Code: Select all
itemsTable = itemsFrame.add({type = "table", name = "itemsTable", colspan = 8, style = "lv_items_table"})
Code: Select all
itemsTable = itemsFrame.add({type = "table", name = "itemsTable", colspan = colspan, style = "lv_items_table"})
i'll probably look into adding more flexibility to the UI in the next release, just need to move away from using pre-generated sorting/filtering icons.