1
0
Fork 0
Commit Graph

13 Commits

Author SHA1 Message Date
under 1801c8e5ba Remove superfluous alt+enter fullscreen controls 2024-03-20 15:44:26 -07:00
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
under 6286d4338a Alt+up/down minimize/windowed/maximized shortcuts
Instead of the same way that you can win+up/down in windows.
2024-03-20 14:27:51 -07:00
under d47c6ed935 Change maximizing logic
Before this, maximizing a window functioned by reparenting it to a
margincontainer. Now, maximizing a window is a matter of setting its
anchors and offsets. It will require more code but the reparenting
strategy was causing problems because maximized windows were always
displayed below windowed ones. This could technically be solved by
modifying z-indexes of windows individually but this seems like a less
annoying solution than that in the long run.
2024-03-20 13:42:53 -07:00
under 5bdca00c5e Fix game window not receiving inputs
When I added the "Windows" node to contain all the windows, it started
blocking the inputs to the game window because it covers the entire
window and its mouse_filter was set to block.
2024-03-20 13:30:08 -07:00
under b83bd2074a Move windows into foreground when selected 2024-03-20 13:29:18 -07:00
under cc629bfc42 Move windows into Windows control
It's annoying to find all the windows so I'd like them to be childed
under one node to make that easier.
2024-03-20 13:20:51 -07:00
under 65414609bc Make VirtualDesktop enable borderless 2024-03-20 12:54:17 -07:00
under 64a311a253 Fix the 9-slice of the window content panel 2024-03-20 11:46:36 -07:00
under 845a09a62b Prevent multiple windows from being dragged at the same time
Before this, if the headers of two windows overlapped and you clicked
and dragged in that overlap, both windows would move at the same time.
After this, only the front window gets dragged. The way that this works
is that we use _gui_input instead of _input. This works because
_gui_input is only sent to the top-level control.
2024-03-20 11:27:27 -07:00
under 359e60d108 Move window into PackedScene
The Inventory window was created directly in the desktop scene but it
needs to be a template we can instantiate so I've moved it into its own
PackedScene.
2024-03-20 11:26:17 -07:00
under 8c8fc8058d Use _gui_input for header drag
Before this, if you moved a window's header to overlap the game window's
header, dragging the window again would drag the window and the game
window.
2024-03-20 11:11:16 -07:00
me4tw 6c4b0845a6 ok 2024-03-19 17:52:57 +10:00