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
13 changes: 0 additions & 13 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -640,18 +640,5 @@ script.on_event(defines.events.on_gui_click, function(event)
end
end)

-- we need to close the ui on click and open it a tick later
-- to visually update the filter ui
-- if https://forums.factorio.com/viewtopic.php?f=7&t=106300 gets addressed,
-- this close/reopen GUI business can be removed
script.on_event(defines.events.on_tick, function(event)
for _, player in pairs(game.players) do
local player_global = get_player_global(player.index)
if player_global then
update_ui(player_global, event.tick % 60 == 0)
end
end
end)

-- TODO options for what things are considered. Chests, transport lines, etc
-- TODO recently used section