summaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
AgeCommit message (Collapse)Author
2022-12-19Merge pull request #59682 from Sauermann/fix-following-viewport-transformRémi Verschelde
Include the follow-viewport-transform into CanvasLayer transform calculations
2022-12-18Include the following-viewport-transform into CanvasLayer transformsMarkus Sauermann
The following-viewport-transform was missing from several calculations
2022-11-30Fix routing of InputEventScreenDrag events to Control nodesFredia Huya-Kouadio
2022-11-28Merge pull request #59801 from Sauermann/fix-node2d-viewport-root-orderRémi Verschelde
Fix Viewport root order after Node2D raise
2022-11-25Merge pull request #68447 from Grimmr/clean-tooltips-on-WM-focus-offRémi Verschelde
Viewport cancels existing tooltip when window looses focus
2022-11-25Viewport cancels existing tooltip when window looses focusgrimmr
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
2022-11-22Fix CanvasTransform on RenderingServer when Viewport enters TreeMarkus Sauermann
Previously the Viewport didn't initialize its canvas transform in the RenderingServer.
2022-11-18Fixed _get_drag_data getting incorrect position on scaled controlsUxeron
2022-11-14Remove redundant Variant-types initializationsMarkus Sauermann
2022-11-14Merge pull request #68272 from Sauermann/fix-windowfocus-on-resizeRémi Verschelde
Fix Windowfocus on resizing
2022-11-14Drop physics mouseover as soon as the mouse moves over a ControlMarkus Sauermann
2022-11-11Merge pull request #68418 from Sauermann/fix-escape-dndRémi Verschelde
Allow canceling Drag and Drop with the Escape-Key
2022-11-08Allow canceling Drag and Drop with the Escape-KeyMarkus Sauermann
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.
2022-11-07Fix SubViewport with default size being pinkMarkus Sauermann
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.
2022-11-04Fix Windowfocus on resizingMarkus Sauermann
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.
2022-11-02Fixup Clang -Wtype-limits warnings introduced by #52350Rémi Verschelde
2022-11-02Fix Viewport root order after Node2D raiseMarkus Sauermann
2022-11-02Merge pull request #52350 from BimDav/viewport_canvas_cullRémi Verschelde
Added Viewport canvas cull mask feature
2022-10-31Viewport canvas cull mask featureBimDav
Co-authored-by: Valentin Zagura <puthre@gmail.com>
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-31Merge pull request #67046 from Cykyrios/fix-invalid-tooltip-positionRémi Verschelde
Fix invalid tooltip position
2022-10-31Merge pull request #67445 from Zylann/rename_queue_deleteRémi Verschelde
Rename queue_delete => queue_free
2022-10-27Merge pull request #64710 from MinusKube/window-size-crashClay John
Prevent windows from having a size greater than device limit
2022-10-24Rename queue_delete => queue_freeMarc Gilleron
# Conflicts: # editor/plugins/tiles/tiles_editor_plugin.cpp
2022-10-24Remove unnecessary castsMarkus Sauermann
button_add_item and button_add are both Button p_parent is a Node3D CanvasItem can never be cast to Viewport
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-15Expose Viewport::get_screen_transform to GDScriptMarkus Sauermann
2022-10-14Always update Viewport's last_mosue_positionMarkus Sauermann
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.
2022-10-07Fix invalid tooltip positionCykyrios
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-04Merge pull request #66869 from Sauermann/fix-transform-det-0-spamRémi Verschelde
Fix Transform2D det == 0 spam for SubViewports
2022-10-04Fix Transform2D det == 0 spam for SubViewportsMarkus Sauermann
2022-10-04Make sure to reset the tooltip of its gui_parent when the viewport is removedRindbee
2022-10-02Allow shortcut input to be JoypadButton.EricEzaM
2022-09-28Merge pull request #58995 from Sauermann/fix-mouse-cursor-change-2Rémi Verschelde
Update mouse cursor shape after changes
2022-09-19Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron
2022-09-18Update mouse cursor shape after changesMarkus Sauermann
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
2022-09-14Fix XR rendering in 'opengl3' driver and expose true size via the Viewport nodeDavid Snopek
2022-09-06Rename raise() to move_to_front()kobewi
2022-09-04Prevent windows from having a size greater than device limitMinusKube
2022-09-02Merge pull request #64735 from KoBeWi/viewportshifterRémi Verschelde
2022-08-30Prevent subwindow_focused from pointing to a window that is not a subwindowMinusKube
2022-08-30Merge pull request #63003 from Geometror/msaa-2dRémi Verschelde
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
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`.
2022-08-26Remove Inspector tooltip hack that never actually workedYuri Sizov
2022-08-26Merge pull request #64574 from Begah/fix_transient_window_wrap_mouseRémi Verschelde
2022-08-25Merge pull request #53299 from Calinou/viewport-tweak-configuration-warningRémi Verschelde
2022-08-25Fix warp_mouse for transient windows, smoother mouse positioning when ↵MathieuRoux
releasing mouse for spinbox
2022-08-23Avoid warnings about cursor shape change not supportedPedro J. Estébanez
2022-08-22Make `_validate_property` a multilevel methodYuri Sizov