|
|
@ -124,7 +124,7 @@ local function mouse_is_over_resume_button(rect)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function InspectorOverlay:onInput(keys)
|
|
|
|
function InspectorOverlay:onInput(keys)
|
|
|
|
if not require('plugins.buildingplan').isPlannedBuilding(dfhack.gui.getSelectedBuilding()) then
|
|
|
|
if not require('plugins.buildingplan').isPlannedBuilding(dfhack.gui.getSelectedBuilding(true)) then
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if keys._MOUSE_L_DOWN and mouse_is_over_resume_button(self.frame_parent_rect) then
|
|
|
|
if keys._MOUSE_L_DOWN and mouse_is_over_resume_button(self.frame_parent_rect) then
|
|
|
@ -136,7 +136,7 @@ function InspectorOverlay:onInput(keys)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function InspectorOverlay:render(dc)
|
|
|
|
function InspectorOverlay:render(dc)
|
|
|
|
if not require('plugins.buildingplan').isPlannedBuilding(dfhack.gui.getSelectedBuilding()) then
|
|
|
|
if not require('plugins.buildingplan').isPlannedBuilding(dfhack.gui.getSelectedBuilding(true)) then
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if reset_inspector_flag then
|
|
|
|
if reset_inspector_flag then
|
|
|
|