| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
Co-Authored-By: bruvzg <7645683+bruvzg@users.noreply.github.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Credits:
Co-authored-by: Skogi <skogi.b@gmail.com>
Co-authored-by: Spartan322 <Megacake1234@gmail.com>
Co-authored-by: swashberry <swashdev@pm.me>
Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se>
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: radenthefolf <radenthefolf@gmail.com>
Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com>
Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com>
Co-authored-by: decryptedchaos <nixgod@gmail.com>
Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com>
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com>
Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com>
Co-authored-by: Mister Puma <MisterPuma80@gmail.com>
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com>
Co-authored-by: SingleError <isaaconeoneone@gmail.com>
Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
to scripting
Document exposed methods
Apply suggestions from code review
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
Document default behavior when no audio listeners are active
|
|\
| |
| |
| |
| |
| | |
Hilderin/fix-viewport-texture-must-be-set-to-use-it
Fix Viewport Texture must be set to use it
|
| | |
|
|\ \
| | |
| | |
| | | |
Use `SNAME` for `ui` actions in Viewport
|
| |/ |
|
|\ \
| | |
| | |
| | | |
Remove useless `Viewport::gui.key_input_accepted`
|
| |/ |
|
|\ \
| | |
| | |
| | | |
Improve button behavior when multiple mouse buttons are used at the same time
|
| | |
| | |
| | |
| | |
| | |
| | | |
- To emit `pressed`, buttons require that the press was initiated while hovering.
- Controls can't grab focus from a mouse click if they're not hovered.
- Hovers are updated both before and after a handled mouse button event.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make Drag and Drop an application-wide operation.
This allows do drop on Controls in other Viewports/Windows.
In order to achieve this, `Viewport::_update_mouse_over` is adjusted to
remember the Control, that the mouse is over (possibly within nested
viewports). This Control is used as a basis for the Drop-operation, which
replaces the previous algorithm, which was only aware of the topmost
Viewport.
Also now all nodes in the SceneTree are notified about the Drag and Drop
operation, with the exception of SubViewports that are not children of
SubViewportContainers.
|
| |
| |
| |
| | |
Control.force_drag()
|
|\ \
| | |
| | |
| | | |
Clean up Viewport's `forced_mouse_focus`
|
| | | |
|
| | |
| | |
| | |
| | | |
Updated Viewport destructor to remove itself from World2D, to avoid World2D keeping invalid pointers.
|
|\ \ \
| | | |
| | | |
| | | | |
Add missing check to avoid passing handled input event to collision object 3d.
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
Only reset the tooltip timer when the mouse has actually moved
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
InputEventMouseMotion isn't guaranteed to fire only on actual mouse
movement. It's not uncommon for the underlying OS motion event to be
sent either by the OS itself or another application even though the
mouse hasn't moved. Godot will generate such zero-motion
InputEventMouseMotion events itself for things like cursor shape
changes.
Once started, the tooltip timer is reset only after a mouse movement of
at least 5 pixels in one frame.
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | | |
Physics interpolation (3D)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Adds 3D fixed timestep interpolation to the rendering server.
This does not yet include support for multimeshes or particles.
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
|
|\ \ \
| |/ /
|/| |
| | | |
Fix tooltip content being cut off at some display scales
|
| | |
| | |
| | |
| | |
| | |
| | | |
When getting the minimum size for a tooltip, we get the value as a Vector2. Window::set_size() takes a Vector2i, so this size was getting truncated. At certain display scales, this could be enough to cut off part of the tooltip. Updated to call Vector2::ceil() to round up before calling Window::set_size()
Fixes #91958
|
| |/
|/| |
|
| | |
|
|\ \
| | |
| | |
| | | |
Fix tooltip mouse position conversion for scaled controls
|
| |/
| |
| |
| |
| |
| | |
Viewport used get_global_transform().xform_inv(mpos) to convert the mouse position to the control's local coordinates when getting the control's tooltip, which does not handle scale correctly. This impacted tooltips for any controls that depended on the position to determine what tooltip to show, including RichTextLabel, ItemList, Tree, and probably some others. This change is for Viewport to use get_global_transform_with_canvas().affine_inverse().xform(mpos) for tooltips instead, to match what we do for Viewport::_gui_call_input.
Fixes #91984
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In `Viewport::_gui_force_drag` currently `Viewport::gui.mouse_focus`
gets cleared, but `Viewport::gui.mouse_focus_mask` doesn't get cleared.
This is an inconsistency which can cause a crash.
With the change of this PR, `mouse_focus_mask` also gets cleared.
This is in alignment with how regular drag and drop clears both variables.
|
|/
|
|
| |
Convenience for a number of cases operating on single values
|
|
|
|
| |
The last use was removed in January 2023
|
| |
|
|\
| |
| |
| | |
Fix mouse events when `physics_object_picking_first_only` enabled
|
| | |
|
| |
| |
| |
| | |
The caret is now a part of the selection.
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
Add support for OpenXR composition layers
|
| | |
| | |
| | |
| | | |
Co-authored-by: Bastiaan Olij <mux213@gmail.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
In certain situations it is possible that in a `Viewport` the same
mouse button is pressed twice in series without releasing it in
between.
In this case, focus stealing should happen to ensure, that the
mouse button is not sent unintentionally to the previously focused
Control node.
|
|\ \
| | |
| | |
| | | |
Add missing `RenderInfoType` enum to `Viewport`
|
| |/ |
|