PopupMenu: How to know which item is hovered

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jowan-Spooner

Working on a plugin right now.
I’m try to show special information when you hover an item of a PopupMenu (I’m using a MenuButton). Unfortunately I cannot find any way to find out what item is hovered.

Any ideas on how I could do it? Thanks in advance!

:bust_in_silhouette: Reply From: Jowan-Spooner

I did some digging into the source code and found out that the popups get_current_index() function acutally will return the currently hovered idx. Very unfortunate that exactly that function is undocumented…

WHY!? :wink:

Hope this will help someone in the future!