I am right now making a menu that pops up mid-game, but that doesn't pause the game. I want the menu to consume all inputs so the player doesn't start moving, but I also want to rely on the focus_neighbors system to make changing the menu easy if I need to add stuff later.
Here's the important bit of code:
func _gui_input(event):
accept_event()
if event.is_action_pressed("ui_cancel"):
get_node(menu_path).close(true)
The problem is, acceptevent() comes BEFORE checking for focusneighbors! I want left/right/up/down input to use focus neighbors if able, and if it can't, consume the input so the player doesn't hear the input and start moving. Is there a way to do that?