1
0
Fork 0
ExampleProject/RetroWindowsGUI
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
..
Images ok 2024-03-19 17:52:57 +10:00
.DS_Store ok 2024-03-19 17:52:57 +10:00
Desktop.gd Make VirtualDesktop enable borderless 2024-03-20 12:54:17 -07:00
DesktopWindow.gd Fix window-clickthrough 2024-03-20 15:17:22 -07:00
DesktopWindow.tscn Fix the 9-slice of the window content panel 2024-03-20 11:46:36 -07:00
InventoryTheme.tres ok 2024-03-19 17:52:57 +10:00
ResizeHandle.gd ok 2024-03-19 17:52:57 +10:00
RetroWindow.gd ok 2024-03-19 17:52:57 +10:00
RetroWindowsTheme.tres ok 2024-03-19 17:52:57 +10:00
Window.tscn Fix game window not receiving inputs 2024-03-20 13:30:08 -07:00
me.ogg ok 2024-03-19 17:52:57 +10:00
me.ogg.import ok 2024-03-19 17:52:57 +10:00