|
|
@ -33,7 +33,7 @@ entry_ints = {
|
|
|
|
|
|
|
|
|
|
|
|
PageSize = 16
|
|
|
|
PageSize = 16
|
|
|
|
FirstRow = 4
|
|
|
|
FirstRow = 4
|
|
|
|
CenterCol = 39
|
|
|
|
CenterCol = 38
|
|
|
|
|
|
|
|
|
|
|
|
-- Populate the reaction and stockpile order lists.
|
|
|
|
-- Populate the reaction and stockpile order lists.
|
|
|
|
-- To be called whenever a world is loaded.
|
|
|
|
-- To be called whenever a world is loaded.
|
|
|
@ -838,6 +838,7 @@ function screen:refilter()
|
|
|
|
local displayed = {}
|
|
|
|
local displayed = {}
|
|
|
|
for n = 0, PageSize*2 - 1 do
|
|
|
|
for n = 0, PageSize*2 - 1 do
|
|
|
|
local item = filtered[start + n]
|
|
|
|
local item = filtered[start + n]
|
|
|
|
|
|
|
|
local name = item.name
|
|
|
|
if not item then
|
|
|
|
if not item then
|
|
|
|
break
|
|
|
|
break
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -847,6 +848,7 @@ function screen:refilter()
|
|
|
|
if n >= PageSize then
|
|
|
|
if n >= PageSize then
|
|
|
|
x = CenterCol
|
|
|
|
x = CenterCol
|
|
|
|
y = y - PageSize
|
|
|
|
y = y - PageSize
|
|
|
|
|
|
|
|
name = " "..name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local color = COLOR_CYAN
|
|
|
|
local color = COLOR_CYAN
|
|
|
@ -857,7 +859,7 @@ function screen:refilter()
|
|
|
|
displayed[n + 1] = {
|
|
|
|
displayed[n + 1] = {
|
|
|
|
x = x,
|
|
|
|
x = x,
|
|
|
|
y = y,
|
|
|
|
y = y,
|
|
|
|
name = item.name,
|
|
|
|
name = name,
|
|
|
|
color = color,
|
|
|
|
color = color,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|