Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus Mode is not set properly on _ready #19532

Open
Algorithmus opened this issue Jun 12, 2018 · 1 comment
Open

Focus Mode is not set properly on _ready #19532

Algorithmus opened this issue Jun 12, 2018 · 1 comment

Comments

@Algorithmus
Copy link

Godot version:
3.0.2

OS/device including version:
Arch Linux

Issue description:
ToolButton in a scene has Focus Mode set to None, but when the scene comes up, it still starts up with Focus Mode set to All.

Steps to reproduce:

  1. Make a scene and drop a ToolButton in it (presumably this might happen with any other BaseButton).
  2. Set the ToolButton Focus Mode to "None".
  3. Play the Scene.

You can still programmatically set the focus mode, and that works, but I expect the Focus Mode to be None if I set it to None in the editor.

@guilhermefelipecgs
Copy link
Contributor

Only to complement, when using any node derived from BaseButton the propertie enabled_focus_mode will overwrite focus/mode. If you change the first propertie, the two properties will have the value setted on inspector, otherwise, if you try to change the second, this will not take effect indeed.
captura de tela de 2018-06-12 19-48-53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants