armory3d / armory

3D Engine with Blender Integration
https://armory3d.org/engine
zlib License
3.08k stars 319 forks source link

Add DebugConsole.isDebugConsoleHovered (+ node integration) #2983

Closed MoritzBrueckner closed 11 months ago

MoritzBrueckner commented 11 months ago

This PR adds the debug console attribute DebugConsole.isDebugConsoleHovered that can be read to check whether the mouse was hovered over any debug console window in the last frame, e.g. to avoid interacting with the game when clicking on the debug console. The same attribute is available via the Hovered output of the Get Debug Console Settings node.

In addition to that, the mouse nodes now have a "shortcut" property that, if disabled (default), disables the nodes when the mouse is hovered over the console. Please let me know if you want the default to be the other way around. Nodes updated from older versions automatically enable this option to preserve the exact behaviour from before.