clicks going through popup node

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ROBOTOO007

basically i have a main_map scene and it spawns in 25 X25 of these zone nodes (im trying to make a game where you can buy zones) and i set it up so if you click on a zone a popup that is a child of that zone pops up asking if you want to buy the land
the proble here is most of the times when i try to click buy it goes through the popup and selects another zone showing another popup here’s my main_map scene tree:

>MainMap       (Node2D)
  >zone_container  (Container zones are instanced child of this node)
  >Cam                         (Camera2D)

and here’s my zone scene scene tree:

>Zone (Area2D)
     >Sprite
     >TouchScreenButton
     >IfUnowned  (Popup Dialog)
          >button
          >choose_type    (popup_dialog)
               >button

thanks a lot for taking a look at this
if you need anything else to help just ask in the comments
:slight_smile:

I think you can use CanvasLayer for IfUnowned

asetyowatir | 2020-11-03 16:34

i tried that but the clicks still go through even though its less often

ROBOTOO007 | 2020-11-03 17:29

or you can use TextureRect over the PopupDialog so that it will catch the input

asetyowatir | 2020-11-04 02:53

i tried that too still doesn’t work

ROBOTOO007 | 2020-11-04 08:03

Have you try set the popup mouse_filter to stop?

larrxi | 2020-11-04 13:14

yes all of them even the texture rect

ROBOTOO007 | 2020-11-04 21:24