Merge pull request #3038 from myk002/myk_minimized

[buildingplan] allow inputs to pass through when minimized
develop
Myk 2023-03-17 15:03:54 -07:00 committed by GitHub
commit 460ce88998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -603,8 +603,9 @@ function PlannerOverlay:onInput(keys)
self.minimized = not self.minimized
return true
end
if self.minimized then return false end
if PlannerOverlay.super.onInput(self, keys) then
return not self.minimized
return true
end
if keys._MOUSE_L_DOWN then
if is_over_options_panel() then return false end
@ -616,7 +617,6 @@ function PlannerOverlay:onInput(keys)
or self.subviews.errors:getMousePos() then
return true
end
if self.minimized then return false end
if not is_construction() and #uibs.errors > 0 then return true end
if dfhack.gui.getMousePos() then
if is_choosing_area() or cur_building_has_no_area() then