0 votes

I have buttonmenu node with actions on button pressed:

func _on_PopupMenu_index_pressed(index):
    match (index):

And I need signal(?) for actions(items) description on mouse hover with the same structure. Something like this:

func _on_PopupMenu_index_Mouse_entered(index)
    match (index):
            label.text = "love +5"
            label.text = "love +10"

But I can't find code to do so. Is there any way to code "mouse_entered" for Popupmenu items?

Godot version 3.2.3
in Engine by (12 points)

1 Answer

0 votes


PopupMenu inherits from Control, so you should be able to connect the signal mouse_entered() without any problem for the popup itself.

About the menu items, what are you adding as children into the PopupMenu? If the children inherit from Control, you should be able to connect their mouse_entered() signal.

by (14 points)

I'm adding items with "Item list editor"(for PopupMenu) and there's no mouse_entered() signal for those elements in inspector. They are not nodes

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.