add rescan functionality for allow-list, and add the allow-list data to show on the cybersyn combinator UI for transparency

This commit is contained in:
Zoryn
2024-10-22 19:01:44 -04:00
parent 5d256f8c87
commit 62fc8bd583
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
script.on_event(defines.events.on_gui_click, function(event)
if event.element.name ~= "allow_list_refresh" then return end
--game.print(serpent.block(event.element.tags))
-- < function interface.reset_stop_layout(stop_id, forbidden_entity, force_update)
local combId = event.element.tags.id
local stopId = storage.to_stop[combId].unit_number
remote.call("cybersyn", "reset_stop_layout", stopId, nil, true)
update_allow_list_section(event.player_index, combId)
end)