i am making right click menu for inventory items, while thats going good, i can’t get to popup node to clicked position.
video :
https://streamable.com/cn23wk
node hirerarchy
@onready var right_click_menu: Popup = $"../right_click_menu"
var pos : Vector2
func _input(event: InputEvent) -> void:
if Input.is_action_pressed("right_click"):
pos = event.position
right_click_menu.popup(Rect2(pos.x,pos.y,right_click_menu.size.x,right_click_menu.size.y))
i did try to add a control node and make it root and make it full rect, that works, but when i click on the inventory(window node) focus goes on to inventory and cant get to popup open, its only work on it control that way.
how can i solve this, or is there better way to make right click menu.
i did aslo try make it instance to clicked position, but instanced scene allways goes clipped by window node and can’t see the instanced right click menu completely.
bdw this inventory scene when its called, its added to a canvaslayer as it child.
edit:
with control node video:
hirerarchy

