Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Nophlock | |
Old Version | Published before Godot 3 was released. |
Hi,
as the title says I have a hopefully small GUI tutorial that can’t I solve by myself.
So currently my scene looks like this:
And as you can see from the image the focus_enter
signal was connected to the main_menu
node, which contains the following script:
extends Control
func _ready():
print("created")
func buttonWasPressed():
print("pressed")
func buttonWasFocused():
print("focus")
But for some reason, the focus function never get’s triggered In my script and I don’t know why. Also the button node in the hierachy(“entry”) never get any focus and with that, doesn’t change his appearance to the hover image or throwing the “pressed” signal. Any idea why?
Here are the settings for the main_menu_size
node which basicly are the settings for the other nodes too:
PS: What exactly does the “Stop Mouse” function do? Prevent that the mouse signal goes to the child nodes?