reset subset filters when the context is exited

develop
Myk Taylor 2023-11-06 17:58:09 -08:00
parent 6fa65af4e3
commit 4fb7694e6e
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

@ -336,6 +336,11 @@ function InfoOverlay:init()
end
end
function InfoOverlay:reset()
InfoOverlay.super.reset(self)
self.subviews.subset:setOption('all')
end
function InfoOverlay:get_key()
if info.current_mode == df.info_interface_mode_type.CREATURES then
if creatures.current_mode == df.unit_list_mode_type.PET then

@ -247,6 +247,11 @@ function BurrowAssignmentOverlay:register_handlers()
end
end
function BurrowAssignmentOverlay:reset()
BurrowAssignmentOverlay.super.reset(self)
self.subviews.subset:setOption('all')
end
function BurrowAssignmentOverlay:matches_filters(unit_id)
local unit = df.unit.find(unit_id)
if not unit then return false end