add onGetSelectedBuilding to workshop overlay

This will make other stuff that depends on dfhack.gui.getSelectedBuilding work with workshop overlay
develop
Warmist 2016-04-10 12:28:15 +03:00
parent 4c4b727a2e
commit 80521d1bb1
1 changed files with 5 additions and 0 deletions

@ -448,4 +448,9 @@ function WorkshopOverlay:onInput(keys)
return
end
end
function WokshopOverlay:onGetSelectedBuilding()
return self.workshop
end
return _ENV