6c4dbf92ac
Update to only use select tool on button press
...
It used to run the code twice, probably once on button press, once on button release.
2022-03-15 20:04:59 +02:00
51bbcbdec2
Merge pull request #45263 from KoBeWi/ 😕
2022-03-15 13:18:27 +01:00
d07fd739ca
Separate 2D grid visibility and grid snap
2022-03-15 08:54:07 +08:00
b255efba7c
Hide smart snapping line when guideline dragging ends
2022-03-12 14:37:20 +08:00
39d429e497
Change some math macros to constexpr
...
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
2022-03-09 16:24:32 +01:00
fb999ebe22
Don't show Lock & Group buttons for nodes hidden by CanvasLayer
2022-03-08 19:43:34 +08:00
33ad21d2ed
Utilize mouse position when zooming with shortcuts in 2D editor
2022-02-23 20:45:44 +08:00
adf10902c9
Merge pull request #58315 from KoBeWi/fixibility
2022-02-21 12:33:17 +01:00
3a9fb3aff0
Fix 2D instance drop position
2022-02-20 23:09:47 +01:00
3a77484f70
Fix CanvasItem visibility propagation
2022-02-19 22:40:53 +01:00
8824b6c5e9
Update if == NOTIFICATION_* to switch statements to match coding style
2022-02-16 08:44:37 -05:00
05b56f316d
Remove most EditorNode constructor parameters and fields
2022-02-14 14:16:24 +01:00
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +01:00
ba8973d663
Merge pull request #57902 from aaronfranke/canvas-editor-scale
2022-02-10 22:24:22 +01:00
69ddf2fd05
Merge pull request #55157 from pycbouh/control-inspector-reorg
2022-02-10 22:13:28 +01:00
107b6f299c
Reorganize inspector layout workflow for Control nodes
2022-02-10 20:29:34 +03:00
283ec9e640
Fix texture file dropping in 2D editor
2022-02-10 15:06:13 +01:00
742205b29a
Fix CanvasItemEditor scale editor not using the editor methods
2022-02-10 03:51:53 -06:00
a66e55069e
Merge pull request #57796 from akien-mga/revert-sname-theme-setters
2022-02-08 11:13:24 +01:00
fc076ece3d
Revert "Add missing SNAME macro optimization to all theme methods call"
...
This reverts commit a988fad9a0 .
As discussed in #57725 and clarified in #57788 , `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
2022-02-08 10:17:25 +01:00
317cd0b19a
Refactor some object type checking code with cast_to
...
Less stringly typed logic, and less String allocations and comparisons.
2022-02-08 10:08:34 +01:00
a988fad9a0
Add missing SNAME macro optimization to all theme methods call
2022-02-06 23:06:11 +01:00
871b9fc352
Fix node types in image drag-and-drop and add node icons
2022-02-05 21:01:29 -06:00
73e784de1e
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
2022-02-03 11:59:32 +01:00
9f01c887b1
Fixes Hint label in 2D editor appearing at wrong position and pushes zoom controls
2022-01-27 21:49:33 -05:00
e6caaf4c80
Merge pull request #57205 from TechnoPorg/variant-template-cast
...
Allow method binds to take Object subclasses as arguments
2022-01-27 23:46:37 +01:00
2cd0c3f8be
Improve 2D editor's right-click menu
2022-01-27 03:02:45 +01:00
051ef479c9
Allow method binds to take Object subclasses as arguments
...
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object.
This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary.
A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-25 09:03:36 -07:00
342a31e326
Fix 2D Pan Tool
2022-01-24 22:21:19 +01:00
98692d68c3
Minor tweaks and fixes to panning
2022-01-23 13:49:53 +01:00
e363f404a5
Merge pull request #57000 from KoBeWi/UNLIMITED_PANNING
2022-01-23 00:47:52 +01:00
74bfe88267
Add ViewPanner to 2D editor
2022-01-21 18:35:06 +01:00
aa1102fc53
Store panels and docks singletons in their own classes
2022-01-20 20:13:26 +01:00
bc5ba38ff5
Merge pull request #56619 from timothyqiu/left-right-palette
2022-01-18 16:38:09 +01:00
7c771ea310
Merge pull request #47522 from madmiraal/rename-test_width-test_height
2022-01-18 13:39:57 +01:00
6c3a0460a8
Use List Initializations for Vectors.
2022-01-12 10:15:12 +05:45
8fc73539e9
Allow showing both left and right side panels
2022-01-08 20:31:22 +08:00
3fcae531e2
Merge pull request #55293 from LlamaLad7/master
2022-01-05 16:42:17 +01:00
77eb25421e
Fix names of scenes dropped onto viewport
2022-01-05 13:11:18 +01:00
f107139979
Rename Project Window width and height settings to match their function
2022-01-04 13:59:16 +00:00
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
b5407f802f
Editor: Resolve being able to move control nodes in containers using arrow keys
...
Fixes #55260
2021-12-21 21:41:05 +00:00
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
81efebb3a1
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com >
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com >
2021-12-06 14:29:48 +01:00
ce63df2610
Merge pull request #54687 from KoBeWi/where_mouse
2021-12-03 10:11:56 +01:00
dc472622cc
Mention that Ctrl+Alt with select tool will scale
2021-11-30 17:36:39 +01:00
cfacd9c057
Fix offset in Viewport drag movement
...
The initial offset was using the mouse position when the threshold
was reached instead of the initial click position. This was adding
the drag threshold distance as an extra offset to the final
transformation.
Now the offset is calculated from the initial click position.
2021-11-27 01:32:02 +01:00
e078f970db
Rename remove() to remove_at() when removing by index
2021-11-23 18:58:57 -07:00
030697e06c
Move container warning to the toaster
2021-11-23 16:17:19 +01:00