mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-08 12:08:09 -06:00
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:
10
cybersyn/scripts/gui-events.lua
Normal file
10
cybersyn/scripts/gui-events.lua
Normal 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)
|
||||
Reference in New Issue
Block a user