disabling mouse filter when not focused

This commit is contained in:
betalars 2023-07-11 11:00:47 +02:00
parent ae3d2f6686
commit ef474d1dad
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ var has_focus = false:
for player in anim_players: player.play("reveal")
selection_state = CARDS # fixme
self.show()
self.mouse_filter = Control.MOUSE_FILTER_IGNORE
else:
self.mouse_filter = Control.MOUSE_FILTER_STOP
has_focus = focus
visible = has_focus