1
0
Fork 0
Commit Graph

882 Commits

Author SHA1 Message Date
kobewi 9a96393f46 Add warped panning to every ViewPanner instance 2024-12-20 17:40:27 +01:00
Thaddeus Crews cbfc34d279
Merge pull request #100444 from Sauermann/fix-view-panner-mouse-warp
Fix `ViewPanner` panning-mouse-warp
2024-12-19 20:00:01 -06:00
Markus Sauermann 4887172a59 Fix `ViewPanner` panning mouse warp
Currently the mouse cursor jumps in unexpected ways, when a `ViewPanner`
is used in SubViewports or embedded Windows.

This is caused by providing wrong coordinate systems to
Input::warp_mouse_motion.

This PR replaces the use of `Input::warp_mouse_motion` with
`Viewport::wrap_mouse_in_rect` and makes sure, that the correct
coordinate systems are used.

This change makes it necessary, that all classes, that currently
use ViewPanner, need to provide the correct Viewport to ViewPanner.
2024-12-20 00:28:49 +01:00
Haoyu Qiu bf4e5cca3f Make editor's shortcut names translated on-site 2024-12-18 13:00:30 +08:00
Rémi Verschelde 26fec37389
Merge pull request #99942 from kitbdev/fix-invisible-subviewport-editor
Fix selecting and editing invisble items in SubViewports
2024-12-12 14:10:09 +01:00
Thaddeus Crews 08b5bf3c5f
Merge pull request #95333 from Giganzo/lock-group-toggle
Fix Lock and Group for canvas items not updated in editor after changed in SceneTree
2024-12-11 17:36:02 -06:00
Chaosus ba39b078f5 [Scene] Add `SceneStringName::FlatButton` 2024-12-10 11:12:26 +03:00
kit 93e06ff16c Fix select and edit invisble items in SubViewports 2024-12-02 17:12:51 -05:00
Rémi Verschelde 60c6c4a1da
Merge pull request #99795 from YeldhamDev/selection_menu_for_all!
Make the alt selection menu available for all modes
2024-11-29 22:51:20 +01:00
Rémi Verschelde 4b0f1781cc
Merge pull request #99401 from Black-Cat/viewport-gizmos
Enable editing of controls inside viewports in editor
2024-11-29 22:50:55 +01:00
Michael Alexsander 5d70208da4
Make the alt selection menu available for all modes 2024-11-27 22:22:13 -03:00
Black Cat f57fea0b0f Enable editing of controls inside viewports in editor
Fixes #79289
2024-11-27 16:02:33 +00:00
Haoyu Qiu e515f593c2 Disable Clear Guides menu item when no guides exist 2024-11-27 08:27:15 +08:00
Thaddeus Crews 81733e6622 Merge pull request #99506 from Giganzo/scale-2d-selection
Change how multi selection scale is applied to canvas item
2024-11-25 13:22:28 -06:00
Thaddeus Crews eedc820f37 Merge pull request #99487 from passivestar/fix-viewport-offsets
Fix viewport message offsets
2024-11-22 14:54:16 -06:00
Giganzo c4bb252294 Change how multi selection scale is applied to canvas item 2024-11-21 20:52:33 +01:00
passivestar 5cd0d42d2b Fix viewport message offsets 2024-11-21 08:24:08 +04:00
Giganzo 61cf0253ce Fix toast spam about child of container position 2024-11-19 11:25:28 +01:00
Giganzo f03e081efb Fix Lock and Group for canvas items not updated in editor after changed in SceenTree 2024-11-17 14:46:43 +01:00
Thaddeus Crews 9513d18180
Merge pull request #98534 from YeldhamDev/i_hate_math
Make possible to scale multiple nodes at once in the canvas editor
2024-11-14 14:51:51 -06:00
Thaddeus Crews 925b690c98
Core: Integrate `Ref::instantiate` where possible 2024-11-10 12:41:26 -06:00
Michael Alexsander baffa731ab
Make possible to scale multiple nodes at once in the canvas editor
And also some smaller enhancements.
2024-10-30 13:24:00 -03:00
Michael Alexsander 16524a8a01
Add "Game" editor for better runtime debugging 2024-10-30 11:42:17 -03:00
Thaddeus Crews 696ca9db3c
Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
Aaron Franke 562c666e3d
Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
Haoyu Qiu 574b413bef Fix heap-use-after-free when ctrl-clicking controls in a container 2024-10-26 10:43:54 +08:00
Rémi Verschelde b6906b9677
Merge pull request #96389 from kitbdev/extract-main-screen
Extract EditorMainScreen from EditorNode
2024-09-11 12:34:46 +02:00
Rémi Verschelde 1a51637732
Merge pull request #96681 from Giganzo/lock-group-double-buttons
Fix 2D editor view showing both lock/unlock, group/ungroup buttons when starting a saved project with empty scene
2024-09-10 09:51:30 +02:00
kit 5e1c9d68aa Extract editor main screen 2024-09-09 11:06:18 -04:00
Harsche 7d8e8e7854 Fix tooltip description to be more precise 2024-09-08 00:48:04 -03:00
Giganzo 96aa2f285c Fix double lock/group buttons when starting editor with empty scene 2024-09-05 21:42:12 +02:00
Hilderin 613d4d10cb Fix selection stuck after saving scene 2024-09-04 19:12:30 -04:00
Rémi Verschelde b310e5e064
Merge pull request #92842 from mihe/multi-node-keying
Allow keying properties when selecting multiple nodes
2024-08-30 09:59:01 +02:00
Yuri Rubinsky 52889ab7ee [Scene] Add SceneStringName::toggled 2024-08-28 15:14:26 +03:00
Rémi Verschelde 3e23f56c72
Merge pull request #94288 from KoBeWi/cursed_code
Allow box selecting over CanvasItems when Shift is held
2024-08-28 00:12:02 +02:00
Mikael Hermansson 351f454a94 Allow keying properties with multiple nodes selected 2024-08-19 14:05:33 +02:00
Rémi Verschelde f9474f0925
Merge pull request #93764 from patwork/fix-aspect-div-by-zero
Fix division by zero in aspect ratio calculation
2024-07-29 15:17:22 +02:00
kobewi 0b513b9f65 Allow box selecting over CanvasItems when Shift is held 2024-07-13 18:21:17 +02:00
Anni Ryynänen 4a27fb7e83
Fix edited node being removed before editor plugin handles focus loss
`CanvasItemEditor::_select_click_on_item` was causing
`EditorNode::_plugin_over_edit` to be called before focus exit had time
to propagate to `SpriteFramesEditor::_animation_speed_changed`.
2024-07-10 16:32:56 +03:00
Eric allen e03fb3043f fix: change esthetic -> aesthetic 2024-07-05 16:03:01 -04:00
patwork 31629744f8 Fix division by zero in aspect ratio calculation 2024-06-30 02:18:57 +02:00
kobewi 1d69358471 Prevent selecting when a CanvasItem is selected 2024-06-29 19:56:48 +02:00
matheusmdx f746632369 Fix snapping lines don't disappearing after drag anchors 2024-06-23 21:05:33 -03:00
Manny-OnGit 8a44cf0342 fixed issue #93043, ruler tool prevents new nodes from being added with right click. 2024-06-19 10:51:46 -07:00
A Thousand Ships fbb879debd
[Scene] Add `SceneStringNames::text/value_changed` 2024-06-19 09:44:38 +02:00
A Thousand Ships ca18a06ecb
[Scene] Add `SceneStringNames::confirmed` 2024-06-19 09:40:54 +02:00
A Thousand Ships d519715d94
[Scene] Add `SceneStringNames::font(_size/_color)` 2024-06-18 17:24:27 +02:00
A Thousand Ships 926afccbd8
[Scene] Add `SceneStringNames::panel` 2024-05-30 22:54:50 +02:00
A Thousand Ships 755a0efbb6
[Scene] Add `SceneStringNames::id_pressed` 2024-05-30 22:54:04 +02:00
Rémi Verschelde 32def9f98e
Merge pull request #92392 from KoBeWi/this_makes_editor_200%_faster
Optimize usage of position icon in 2D editor
2024-05-30 11:48:06 +02:00