Age | Commit message (Collapse) | Author |
|
Prohibit inconsistent size state for SubViewport
|
|
Prohibit size changes of SubViewports with parent SubViewportContainers that have stretch mode enabled.
|
|
Rework how current Camera2D is determined
|
|
Calculate window input event transform only on window change
|
|
|
|
Fix event-content and mouse-signals with 3D-capture-on-drag
|
|
Fix position of Tooltips
|
|
|
|
CanvasItem::get_screen_transform returns a transform from the CanvasItem
to the coordinate system, where a Popup - created as a child of the
CanvasItem - should be opened.
get_screen_transform makes some simplifications, that work well, when used
in the editor, but not in general cases.
Since Popups like Tooltips are now used more commonly in projects,
it becomes necessary to correct these simplifications.
This solution introduces Viewport::get_popup_base_transform, which makes
the necessary calculations.
|
|
Fix incorrect Viewport Debug Draw effects
|
|
|
|
|
|
Calculate the mouse focus inverse transform only when needed
|
|
`window_set_mouse_passthrough` to `Window`.
|
|
Revival of #49158
Co-authored-by: Marcel Admiraal <madmiraal@users.noreply.github.com>
|
|
* All core types masks are now correctly marked as bitfields.
* The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks.
* Most bitmask operations replaced by functions in BitField<>
* Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is.
* Documentation and API dump updated to reflect bitfields in core types.
|
|
screen detection.
|
|
Add PropertyInfo overload for GLOBAL_DEF
|
|
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
|
|
|
|
Include the follow-viewport-transform into CanvasLayer transform calculations
|
|
The following-viewport-transform was missing from several calculations
|
|
|
|
|
|
|
|
Fix Viewport root order after Node2D raise
|
|
Viewport cancels existing tooltip when window looses focus
|
|
fixes #68197
when NOTIFICATION_WM_WINDOW_FOCUS_OUT is recieved by a viewport it will now call
_gui_cancel_tooltip() to avoid it hanging around after the mouse events stop
coming in
|
|
Previously the Viewport didn't initialize its canvas transform in the
RenderingServer.
|
|
|
|
|
|
Fix Windowfocus on resizing
|
|
|
|
Allow canceling Drag and Drop with the Escape-Key
|
|
This patch implements the functionality to cancel Drag and Drop
by using the escape key or more general, the ui_cancel action.
Since this would be the third location, where the finalization of
Drag and Drop would have to be implemented, that functionality was
put into the private function _perform_drop.
Simplified gui.drag_data.get_type() != Variant::NIL to gui.dragging
because they are equivalent.
|
|
A SubViewport with default-size doesn't display its content, but shows
pink color, until it is resized.
This patch makes sure, that the size gets set during initialization.
|
|
When resizing a non-focused window, the previously focused
Window got resized.
This patch grabs focus for the actually resized window, before
starting with the resizing.
|
|
|
|
|
|
Added Viewport canvas cull mask feature
|
|
Co-authored-by: Valentin Zagura <puthre@gmail.com>
|
|
Unify usage of GLOBAL/EDITOR_GET
|
|
Fix invalid tooltip position
|
|
Rename queue_delete => queue_free
|
|
Fix for 3D-physics processing:
- with enabled input_capture_on_drag now report correct position and
normals in _input_event
- mouse_enter and mouse_exit signals are emitted when the mouse cursor
leaves the visible area of the 3D-object, independently of pressed mouse
button or input_capture_on_drag
- make sure that collision input events are sent in the right order with
respect to mouse_enter and mouse_exit signals
|
|
Prevent windows from having a size greater than device limit
|
|
# Conflicts:
# editor/plugins/tiles/tiles_editor_plugin.cpp
|
|
button_add_item and button_add are both Button
p_parent is a Node3D
CanvasItem can never be cast to Viewport
|
|
|
|
|