summaryrefslogtreecommitdiff
path: root/scene/main
AgeCommit message (Collapse)Author
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-02Merge pull request #67917 from Faless/mp/4.x_authRémi Verschelde
[MP] Add peer authentication support to the default MultiplayerAPI.
2022-11-02Merge pull request #52350 from BimDav/viewport_canvas_cullRémi Verschelde
Added Viewport canvas cull mask feature
2022-11-02[MP] Remove connection state signals from MultiplayerPeer.Fabio Alessandrelli
Now handled directly by the MultiplayerAPI implementation.
2022-11-02Merge pull request #59479 from Sauermann/fix-rootorder-on-layerchangeRémi Verschelde
Update root order on layer change
2022-11-01Merge pull request #67982 from Faless/mp/4.x_disconnect_closeFabio Alessandrelli
[MP] Add MultiplayerPeer disconnect_peer, close.
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 #67710 from KoBeWi/a_bit_local_global_transformRémi Verschelde
Remove error condition from get_global_transform()
2022-10-31Merge pull request #67588 from KoBeWi/if(!GDVIRTUAL_CALL)don'tRémi Verschelde
Simplify GDVIRTUAL_CALL calls
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-31Merge pull request #67467 from timothyqiu/who-ami-iRémi Verschelde
Fix get_path() error when calling get_node()
2022-10-28[MP] Add MultiplayerPeer disconnect_peer, close.Fabio Alessandrelli
Update ENet, WebRTC, and WebSocket to support peer disconnection and unify the close function.
2022-10-28Fix spacing of few PROPERTY_HINT_ENUM hint_stringsMicky
2022-10-27Merge pull request #64710 from MinusKube/window-size-crashClay John
Prevent windows from having a size greater than device limit
2022-10-27Merge pull request #67043 from clayjohn/clip_childrenClay John
Improve behaviour of clip_children by clipping to parent alpha value but still retaining parent color
2022-10-27Merge pull request #67926 from Rindbee/fix_call_shortcut_inputClay John
Fix calling `_call_shortcut_input` on a node that has been removed
2022-10-27Merge pull request #67832 from Sauermann/fix-remove-unnecessary-castsClay John
Remove unnecessary casts
2022-10-27[MP] Let MultiplayerAPI handle packet relaying and peer signaling.Fabio Alessandrelli
MultiplayerPeer changes: - Adds is_server_relay_supported virtual method Informs the upper MultiplayerAPI layer if it can signal peers connected to the server to other clients, and perform packet relaying among them. - Adds get_packet_channel and get_packet_mode virtual methods Allows the MultiplayerAPI to retrieve the channel and transfer modes to use when relaying the last received packet. SceneMultiplayerPeer changes: - Implement peer signaling and packet relaying when the MultiplayerPeer advertise they are supported. ENet, WebRTC, WebSocket changes: - Removed custom code for relaying from WebSocket and ENet, and let it be handled by the upper layer. - Update WebRTC to split create_client, create_server, and create_mesh, with the latter behaving like the old initialize with "server_compatibility = false", and the first two supporting the upper layer relaying protocol.
2022-10-27Fix calling `_call_shortcut_input` on a node that has been removedRindbee
Nodes may have been deleted by shortcuts. For example, when switching scenes with `Ctrl` + `Tab` / `Ctrl` + `Shift` + `Tab`, some controls will be deleted and recreated.
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-21Remove error condition from get_global_transform()kobewi
2022-10-19Add methods to get target filter and repeatkobewi
2022-10-19Simplify GDVIRTUAL_CALL callskobewi
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-16Fix get_path() error when calling get_node()Haoyu Qiu
2022-10-15Expose Viewport::get_screen_transform to GDScriptMarkus Sauermann
2022-10-14Rename pos -> index on NodeMiguel Gonzalez Sanchez
2022-10-14Implement multiple clip_children modes for CanvasItemsclayjohn
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-13Merge pull request #67348 from Mickeon/salvage-a-dear-commentRémi Verschelde
Comment not to remove `data` structs in some Nodes
2022-10-13Comment not to remove `data` structs in some NodesMicky
2022-10-13Move Shortcut Context to Control and ensure that `shortcut_input` adheres to ↵Eric M
contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
2022-10-12Merge pull request #67232 from bruvzg/popup_editRémi Verschelde
Improve Popup / Window behavior in the edited scene tree.
2022-10-11Set window size after setting new limitsNikola Bunjevac
Otherwise this can fail as the size may not fit into current limits. This is problematic at least on X11.
2022-10-11Merge pull request #67104 from Calinou/add-viewport-transparent-project-settingRémi Verschelde
Add a project setting to make the root viewport transparent
2022-10-11Prevent `Popup`s it the edited scene tree from closing on focus loss. Hide ↵bruvzg
irrelevant `Popup` flags from the editor inspector.
2022-10-10Fix node name casing issueskobewi
Co-authored-by: ryburnj <jordanryburn@gmail.com>
2022-10-09Add a project setting to make the root viewport transparentHugo Locurcio
This allows recording videos with a transparent background without having to create a script.
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