0 votes

I'm using an OptionButton for selecting equipment and would like the relevant stats to update when you hover over an item on the list with your mouse. Problem is there doesn't seem to be a build in signal for hovering over an item, as the item_focused() signal only triggers if you use the ui-up or ui-down to switch between them.

Since the items do light up when you hover over them, Godot is clearly already registering and doing something when it happens, but is there currently any way to trigger a function when it does?

Godot version v.3.4.2
in Engine by (74 points)
edited by

1 Answer

0 votes

I think the OptionButton has a mouse_entered() signal. If that's true, then maybe that signal could be used (and also related mouse filtering options are set appropriately).

by (3,144 points)

Hmm but wouldn't that just trigger when you mouse over the button itself, rather than the options that come up after you click it?

I was confused. I thought you wanted just the "hover" option.

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.