TeamSyndi / syndibox

SyndiBox - A powerful text engine for dialog-heavy Godot projects
MIT License
91 stars 9 forks source link

[BUG] Passing of gui input #47

Open themvl opened 3 years ago

themvl commented 3 years ago

When you use syndibox the parent nodes dont recieve gui events even if on syndibox mouse_input = MOUSE_FILTER_PASS. This i figured out is because of the child nodes getting created in the process. So i temporarily solved this issue manually by adding for every child node. node.mouse_filter = MOUSE_FILTER_PASS. Maybe add that the created children have the same mouse_input setting as the syndibox itself?

Steps to reproduce the behavior:

  1. Add a panel container add syndibox as a child.
  2. Set mouse_input on the syndibox to mouse_input.
  3. Create a script on the panel container
  4. add the _gui_input function and let it print something.
  5. Notice that it never gets called

What i expect to happen is that the input gets passed on to its parent control.

Device Info (please complete the following information):