Sure. Really, you just need to toggle the visibility of the PopupMenu
with each button click. So...
- Add a
PopupMenu
to the scene
- Add a
TextureButton
to the scene
- Add the following script to the parent of the above-mentioned controls (or change the script to as necessary)
- Wire the
pressed
signal of the button to the the below function
.
func _on_TextureButton_pressed():
$PopupMenu.visible = !$PopupMenu.visible