Age | Commit message (Collapse) | Author |
|
* Make placeholder in editor layout dialog translatable.
* Make messages in scene import settings dialog translatable.
* Mark theme override property categories for translation.
(cherry picked from commit 5a5fd33e42239cb59aa34899675ca4e2a2c99106)
|
|
(cherry picked from commit 82d7923c653b6328ba279bd4183b63b69e21edfc)
|
|
(cherry picked from commit 921f3b7589084e07a4b6eefd89ec7fe81857a8b7)
|
|
Fix Color Picking
|
|
|
|
- X11: set main window position and size hints correctly
- All platforms: update minimum and maximum size of main window at
startup
Fixes #70984
|
|
invalid object.
|
|
|
|
|
|
With the 4.x-introduction of Windows the previous method for
color picking was no longer working.
This PR uses the following approach to reintroduce color-picking.
When the Color-Picking-Button is pressed, a quasi-screenshot of the
Window-content is created and displayed in a new Popup-Window.
This new Window allows selecting colors by Mouse-Click.
A Preview of the targeted Color is also displayed.
|
|
Use min_size/max_size to limit window size and position while popup center
|
|
center
|
|
SubViewports don't have a cached mouse position available.
This PR calculates the mouse position from the screen position of
the mouse cursor.
|
|
Some internally created emulated/instantiated events didn't have a
device id. This PR sets for these cases a device id.
Also rename `DEVICE_ID_TOUCH_MOUSE` to the more generic
`DEVICE_ID_EMULATION`.
|
|
This function is only relevant for `Window`. So this PR moves
the functionality to the `Window`-class.
|
|
`Viewport.to_screen_rect` is used only in a single location to compare it
to `Rect2i()`.
When called from `SubViewport`, `to_screen_rect` is always equal to `Rect2i()`.
When called from `Window`, `to_screen_rect` is always different from `Rect2i()`.
So the comparison `to_screen_rect != Rect2i()` can be replaced by
`Object::cast_to<Window>(this)`.
This allows the removal of `Viewport.to_screen_rect` and the simplification of
`Viewport::_set_size`.
|
|
Move calculation of stretch transform from outside to inside
of `Viewport::_set_size` function.
|
|
Part of #37604.
|
|
|
|
Calculate window input event transform only on window change
|
|
Fix some small bugs in the `Window` node
|
|
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.
|
|
|
|
|
|
`window_set_mouse_passthrough` to `Window`.
|
|
screen detection.
|
|
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".
|
|
and positions.
|
|
|
|
`window_get_position_with_decorations`.
|
|
|
|
Prevent windows from having a size greater than device limit
|
|
Improve Popup / Window behavior in the edited scene tree.
|
|
Otherwise this can fail as the size may not fit
into current limits. This is problematic at least
on X11.
|
|
irrelevant `Popup` flags from the editor inspector.
|
|
change warnings=all to use /W4.
|
|
|
|
|
|
Update mouse cursor shape after changes
|
|
|
|
incorrect window button position/order when system primary language is RTL.
|
|
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
|
|
Fix MOUSE_MODE_CAPTURED not working correctly with popups
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Rindbee <idleman@yeah.net>
|
|
|