Age | Commit message (Collapse) | Author |
|
* 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
|
|
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
|
|
|
|
|
|
When the mouse cursor is over a embedded Window, the Viewport's
last_mouse_position did not get updated.
This patch makes sure that the update happens on every InputEventMouse.
Document canvas layer of embedded Windows.
|
|
|
|
change warnings=all to use /W4.
|
|
Fix Transform2D det == 0 spam for SubViewports
|
|
|
|
|
|
|
|
Update mouse cursor shape after changes
|
|
|
|
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on.
Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency.
Just a few comments have also been changed to say "redraw".
In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
|