disabling mouse filter when not focused
This commit is contained in:
parent
ae3d2f6686
commit
ef474d1dad
|
|
@ -18,6 +18,9 @@ var has_focus = false:
|
||||||
for player in anim_players: player.play("reveal")
|
for player in anim_players: player.play("reveal")
|
||||||
selection_state = CARDS # fixme
|
selection_state = CARDS # fixme
|
||||||
self.show()
|
self.show()
|
||||||
|
self.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||||
|
else:
|
||||||
|
self.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||||
has_focus = focus
|
has_focus = focus
|
||||||
|
|
||||||
visible = has_focus
|
visible = has_focus
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue