I’m making a radial menu like you see in many games such as GTA V and Dishonored. I’ve been able to recreate everything except the activation of the item over which the mouse is hovering when the menu is closed.
I want the player to open menu, move mouse to desired item, then release menu button thus activating the button that was highlighted by the cursor hovering over it
I know this is possible with a gamepad but i’ve not been able to find anything about the mouse, please advise if you have any info
thank you but this does not offer solutions hence why i made this post in the first place
but i figured it out so i’ll write it here and mark it a solution for others
I made an empty variable i.e. local Spell
upon opening the menu i connected the buttons to a MouseEnter event, upon firing the event changes the value of Spell to the name of the item in the button
then upon closing the menu( a separate function) it fires the event that corresponds to that name (i.e. if the Spell = Fireball, it fires the event called Fireball)
and thus it activates the last hovered button before closing the menu