Skip to content
Discussion options

You must be logged in to vote

I came up with a way to do it

I set a boolean variable mutation_waiting_for_input, set that variable and is_waiting_for_input to true and short circuit the _on_balloon_gui_input` function adding

if(mutation_waiting_for_input):
	if(event.is_action_pressed(next_action)):
		get_viewport().set_input_as_handled()
		mutation_waiting_for_input = false
		action_pressed.emit(next_action)
		return

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LionUCS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant