reset using df button.
develop
Warmist 2013-01-03 23:53:42 +02:00
parent e3ca612ed5
commit 179c7ae32a
1 changed files with 6 additions and 0 deletions

@ -934,10 +934,16 @@ end
function usetool:openShopWindowButtoned(building,no_reset)
local wui=df.global.ui_sidebar_menus.workshop_job
if not no_reset then
--[[ manual reset incase the df-one does not exist?
wui:assign{category_id=-1,mat_type=-1,mat_index=-1}
for k,v in pairs(wui.material_category) do
wui.material_category[k]=false
end
]]--
building:fillSidebarMenu()
if #wui.choices_all>0 then
wui.choices_all[#wui.choices_all-1]:click()
end
end
building:fillSidebarMenu()