|
|
@ -396,8 +396,8 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
function extra_fns.gui_quantum(pos)
|
|
|
|
function extra_fns.gui_quantum(pos)
|
|
|
|
local vehicles = assign_minecarts.get_free_vehicles()
|
|
|
|
local vehicles = assign_minecarts.get_free_vehicles()
|
|
|
|
local confirm_state = confirm.isEnabled()
|
|
|
|
--local confirm_state = confirm.isEnabled()
|
|
|
|
local confirm_conf = confirm.get_conf_data()
|
|
|
|
--local confirm_conf = confirm.get_conf_data()
|
|
|
|
local routes = df.global.plotinfo.hauling.routes
|
|
|
|
local routes = df.global.plotinfo.hauling.routes
|
|
|
|
local num_routes = #routes
|
|
|
|
local num_routes = #routes
|
|
|
|
local next_order_id = df.global.world.manager_order_next_id
|
|
|
|
local next_order_id = df.global.world.manager_order_next_id
|
|
|
@ -411,12 +411,14 @@ function extra_fns.gui_quantum(pos)
|
|
|
|
item.flags.forbid = false
|
|
|
|
item.flags.forbid = false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--[[
|
|
|
|
if confirm_state then
|
|
|
|
if confirm_state then
|
|
|
|
dfhack.run_command('enable confirm')
|
|
|
|
dfhack.run_command('enable confirm')
|
|
|
|
for _,c in pairs(confirm_conf) do
|
|
|
|
for _,c in pairs(confirm_conf) do
|
|
|
|
confirm.set_conf_state(c.id, c.enabled)
|
|
|
|
confirm.set_conf_state(c.id, c.enabled)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
]]
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
function()
|
|
|
|
function()
|
|
|
|
-- forbid all available minecarts
|
|
|
|
-- forbid all available minecarts
|
|
|
|