1
0
Fork 0
example godot project
Go to file
under 35a8fc2f1a Fix window-clickthrough
What was happening here is that because we were detecting window clicks
inside _input, when you clicked overlapping windows, all of them would
receive the click, and all of them would set themselves to active and
move to the foreground. The solution to this was to move the
click-detection into _gui_input instead, which stops the event from
traveling to the back elements. There is, however, a gotcha. Because
_gui_input only fires on the topmost element clicked, the window itself
doesn't receive the event because its children are covering it up and
receive the event instead. To work around this I iterated all the
children of the window, connecting to and forwarding their _gui_input
events to the window root. Thus, buttons still work when you click on
them, but the window also gets to respond as it needs to.
2024-03-20 15:17:22 -07:00
RetroWindowsGUI Fix window-clickthrough 2024-03-20 15:17:22 -07:00
.gitignore ok 2024-03-19 17:52:57 +10:00
FullscreenToggler.gd Move fullscreen toggle from _process to _input 2024-03-20 13:13:31 -07:00
InteractToggleVisible.gd initial 2024-03-14 21:50:53 +10:00
InteractiveItems.gd initial 2024-03-14 21:50:53 +10:00
icon.svg initial 2024-03-14 21:50:53 +10:00
icon.svg.import initial 2024-03-14 21:50:53 +10:00
project.godot Borderless=false, default project=thirdPerson.tscn 2024-03-20 11:13:05 -07:00
readme.md Added readme 2024-03-19 17:54:42 +10:00
remesh.txt ok 2024-03-14 22:50:47 +10:00
thirdPerson.tscn initial 2024-03-14 21:50:53 +10:00

readme.md

LGDG Example Project

Made the fullscreen toggle resize floating windows (on toggle back to windowed mode you can't see al lthe floating window as half of it is off the bottom of the screen).