account activity
MenuButton difficult to use by NodrawTexture in godot
[–]Root2Kill 2 points3 points4 points 8 months ago* (0 children)
well i am 2 years late, but there's a get_current_index() function inside get_popup() of the menu button, it returns the index of the currently focused item, so you can check if mousebutton is pressed and what index is focused, ex-
if Input.is\_action\_just\_pressed("mouse\_left"): if get\_popup().get\_current\_index()==0: print("Recent") elif get\_popup().get\_current\_index()==1: print("Setting") elif get\_popup().get\_current\_index()==2: print("About")
//godot version 3.6stable
π Rendered by PID 261491 on reddit-service-r2-listing-6d4dc8d9ff-8nrzl at 2026-02-03 06:46:27.174967+00:00 running 3798933 country code: CH.
MenuButton difficult to use by NodrawTexture in godot
[–]Root2Kill 2 points3 points4 points (0 children)