Michael Alexsander Silva Dias
589f18a374
Minor changes to the Scene and Canvas editors' tooltips.
2018-05-29 13:21:26 -03:00
volzhs
6a28bfe09c
Don't draw bones if it's not visible
2018-05-25 13:01:15 +09:00
Gilles Roudiere
0021df3da3
Bring back 2D bone selection
2018-05-15 15:18:46 +02:00
Gilles Roudiere
e614789882
Fixes hovered Nodes2D display in the editor (remove duplicates)
2018-05-15 09:37:23 +02:00
groud
7331ca6f63
Fixes some 2d bones display problems
2018-05-05 15:45:26 +02:00
groud
3962862ea3
Fixes several selection problems in the 2D editor
2018-05-05 11:50:23 +02:00
Juan Linietsky
af9a6202eb
Fix bone refresh logic, closes #18564
2018-05-04 18:11:28 -03:00
Juan Linietsky
bf561c4946
Made bone handling for actual Bone2D a special case. Make custom bones appear like a custom (less important) option now.
2018-05-04 16:46:32 -03:00
Juan Linietsky
e68cbec1fa
Make bones have more contrast with outline
2018-05-04 11:54:21 -03:00
groud
845a898f37
Fixes locks and groups on 2d editor
2018-05-02 10:37:37 +02:00
Rémi Verschelde
de97339a2d
Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-var
...
Fix Coverity reports of uninitialized scalar variable
2018-05-01 19:14:07 +02:00
Rémi Verschelde
e1ef2f538f
Merge pull request #18380 from groud/fix_spacebar_panning
...
Fixes 2d editor panning not working
2018-05-01 08:56:13 +02:00
Max Hilbrunner
f274c8b74b
Merge pull request #18381 from groud/fix_hard_to_select_node2d
...
Fixes hard to select Node2D
2018-04-30 18:58:27 +02:00
Gilles Roudiere
8dcd39c3c4
Adds shortcuts for zooming in the 2D editor
2018-04-26 10:28:56 +02:00
groud
e8a4c4fa4c
Fixes hard to select Node2D
2018-04-23 19:48:15 +02:00
groud
9c5a44aeee
Fixes 2d editor panning not working
2018-04-23 19:34:03 +02:00
Rémi Verschelde
bf7ca623a6
Fix Coverity reports of uninitialized scalar variable
...
Fixes most current reports on Coverity Scan of uninitialized scalar
variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html
These happen most of the time (in our code) when instanciating structs
without a constructor (or with an incomplete one), and later returning
the instance. This is sometimes intended though, as some parameters are
only used in some situations and should not be double-initialized for
performance reasons (e.g. `constant` in ShaderLanguage::Token).
2018-04-19 15:20:45 +02:00
Juan Linietsky
1d15c5d726
Merge pull request #17502 from groud/2Deditor_rect
...
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
2018-04-13 10:21:44 -03:00
Juan Linietsky
7dedb22f0b
Merge pull request #17809 from RandomShaper/menu-item-on-release
...
Improve popup menus usability
2018-04-07 16:22:00 -03:00
Pedro J. Estébanez
259ed1d400
Improve popup menus usability
...
It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal.
This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item.
This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature.
This improves UX a bit by saving unnecessary clicks.
From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
2018-04-07 01:06:02 +02:00
Gilles Roudiere
a724f34ef3
Displays node icon on hover
2018-04-03 23:56:37 +02:00
Gilles Roudiere
0251b08afa
Display nodes without rect's position
2018-04-03 22:04:19 +02:00
Gilles Roudiere
72ed1e4244
Remove the selection rect for nodes that do not require it
2018-04-03 22:04:19 +02:00
Gilles Roudiere
6435894275
Fixes issues with selectable children and locks
2018-04-03 21:31:15 +02:00
Gilles Roudiere
4b4ed9b724
Merge pull request #17785 from Rubonnek/simplify-canvas-item-logic
...
Simplify CanvasItemEditor anchor drag logic
2018-03-28 11:56:29 +02:00
Chaosus
9a6b4a3f11
Enable snapping in 2D when control key pressed
2018-03-28 10:07:21 +03:00
Wilson E. Alvarez
bc9ef5461b
Simplify CanvasItemEditor anchor drag logic
2018-03-26 14:30:51 -04:00
Gilles Roudiere
038de54b1f
Fixes scrollbars in Canvas Item Editor
2018-03-17 12:18:33 +01:00
Rémi Verschelde
fcd81c9627
Merge pull request #17172 from StateOff/add_show_axis_options
...
Add "Show Origin" and "Show Viewport" options to 2D Editor Viewport
2018-03-13 12:53:11 +01:00
Ranoller
2aae6fc2ec
FIX to broken item select list (zoom and RMB)
...
FIX to #17346 . Compiled and tested.
2018-03-07 21:39:55 +01:00
Bernhard Liebl
ced694e9cd
In CanvasItemEditor, prioritize selected items
2018-03-05 19:09:59 +01:00
Blazej Floch
934498d37a
Add "Show Origin" and "Show Viewport" options to 2D Editor Viewport
2018-03-02 21:27:32 -05:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Rémi Verschelde
b93d6a001b
Merge pull request #16566 from groud/gui_input_rework
...
2D Editor GUI input rework
2018-02-19 20:05:35 +01:00
Gilles Roudiere
8dad41e395
2D editor GUI input rework. Changes are:
...
- The input handling is done into several distinct functions, and the
code is more consistent.
- The actions' history is more precise ("Edited CanvasItem"
is now "Rotated CanvasItem","Moved CanvasItem",etc...)
- Fixed a little bug about input key events not forwarded correctly to plugins
- IK is followed by default when you move a bone node, the alt-key allow
you to move it normally
2018-02-16 10:14:52 +01:00
George Marques
da69a06253
Add a function to remove controls from containers
...
Closes #5968
2018-02-13 19:35:10 -02:00
Michael Alexsander Silva Dias
b507eeddcc
Capitalized "View" menu options.
2018-02-02 17:27:57 -02:00
volzhs
48611afb80
Rotate Control node with respecting pivot offset
2018-01-24 15:44:28 +09:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Gilles Roudiere
b06c6602c8
Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values
2018-01-15 10:37:13 +01:00
Blazej Floch
9d4afdc372
- Fixes #15470 "Crash on drag and drop scene file on empty scene"
...
- New: Allows for multiple files to be dragged over
- Added error when multiple nodes are dropped in scene **without** scene root
- Removed TTR: "This operation requires a single selected node.", "I see.."
- Introduces TTR: "Can not instaniate multiple nodes without root."
- Fixes "Can't add_child, already got a parent" error
- Reduced multiple resource loading by casting
- Make sure to not _show_resource_type_selector if only PackedScenes are being dropped
2018-01-09 23:16:47 -05:00
Bernhard Liebl
6c6a0fe840
Fix crash due to stale refs to node selection lists
2018-01-07 09:57:28 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
volzhs
1876999b3a
Fix get_edited_scene_root error at starting editor
...
Fix #15300
2018-01-05 03:55:43 +09:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
Rémi Verschelde
8cf9269cdb
Merge pull request #15225 from volzhs/lock-group-invisible-node
...
Fix lock or group with invisible node
2018-01-03 12:35:12 +01:00
Rémi Verschelde
459ee51338
Merge pull request #15093 from poke1024/canvas-editor-select
...
More exact picking for canvas editor
2018-01-03 11:15:28 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
volzhs
108b4a37b0
Fix lock or group with invisible node
...
Fix #15205
2018-01-01 02:18:39 +09:00
Bernhard Liebl
8505871a87
More exact picking for canvas editor
2017-12-27 20:24:58 +01:00
Gilles Roudiere
b8c849205c
Fix 2D editor checkboxes with a new project
2017-12-26 16:39:58 +01:00
Rémi Verschelde
3068ccc8e6
Merge pull request #14913 from poke1024/tooltip-shortcut-names
...
Consistent display of shortcut names in tooltips
2017-12-21 22:47:50 +01:00
poke1024
22d87f20fa
Consistent display of shortcut names in tooltips
2017-12-21 20:17:30 +01:00
volzhs
ec139d8522
Fix blurry after zooming
2017-12-21 00:39:02 +09:00
Dmitry Koteroff
cd43188734
Fixed #14503
2017-12-11 02:43:27 +03:00
volzhs
81a79e0c0e
Fix get_edited_scene_root error at starting editor
2017-12-10 08:01:00 +09:00
Rémi Verschelde
59657d6823
Merge pull request #14448 from groud/fix_checkboxes_update
...
Fixes the checkboxes update in canvas item editor
2017-12-09 19:04:27 +01:00
Rémi Verschelde
20a566d63a
Merge pull request #13166 from Krakean/change_addrootifnone_v2
...
When drag'n'drop, automatically create dragged resource as a root node if you haven't any yet (v2)
2017-12-09 16:42:25 +01:00
Gilles Roudiere
e1de1b62ee
Fixes the checkboxes update
2017-12-09 15:25:20 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Gilles Roudiere
7b02f5591d
Moves the guides colors to editor settings
2017-12-05 21:44:52 +01:00
Gilles Roudiere
03c1b6be23
Fix a little mistake in a setting name (rulers->guides)
2017-12-05 10:45:27 +01:00
Rémi Verschelde
1702a19bf0
Merge pull request #13959 from groud/editable_rulers_colors
...
Makes editable the guides color
2017-12-05 09:23:52 +01:00
Gilles Roudiere
c2a7d186bd
Make rulers on by default
2017-12-04 15:39:12 +01:00
Gilles Roudiere
6c32629758
Makes editable the rulers color
2017-12-03 18:57:49 +09:00
Pedro J. Estébanez
3f31925b18
Universalize draw-over API for EditorPlugins
...
- Now it is usable from both `CanvasItem` and `Spatial` editors.
- `EditorPlugin` API changes:
- `forward_draw_over_canvas()` becomes `forward_draw_over_viewport()`.
- `update_canvas()` becomes `update_overlays()`, which now triggers the update of every overlay on top of any 2D or 3D viewports present. Also now it returns the number of such viewports, which is useful whenever you need to know the number of draw-over calls you'll get.
- New: `[set/is]_force_draw_over_forwarding_enabled()` to force overlaying regardless it handles the current object type, in a similar fashion as `[set/is]_input_event_forwarding_always_enabled`. This kind of overlay is also on top of those for regular handled node types.
- New: `forward_force_draw_over_canvas()`, which is the callback that gets called for plugins that enable forced overlaying.
2017-11-24 21:24:15 +01:00
Dmitry Koteroff
3cca09d96a
When drag'n'drop (lets say, picture in 2D mode), automatically create dragged resource as a root node if you haven't any yet.
2017-11-22 05:28:02 +03:00
Bernhard Liebl
80ad8afc85
Native pan and zoom for macOS
2017-11-21 09:11:39 +01:00
Ricardo Maes
77f21b63e9
Add simple spacebar panning setting for 2D editor
2017-11-20 22:53:14 +01:00
Gilles Roudiere
8d1f2b1857
Rework the canvas_item API for further improves to the canvas item editor
2017-11-19 13:36:31 +01:00
Rémi Verschelde
b0f10c6643
Merge pull request #12855 from Hinsbart/remove_preview
...
Remove preview when closing "change default type" dialog.
2017-11-12 21:03:42 +01:00
Andreas Haas
58fafea485
Remove preview when closing "change default type" dialog.
2017-11-12 10:50:32 +01:00
Daniel J. Ramirez
592ee82010
Fixed theme update and some widgets.
2017-11-11 11:58:30 -06:00
letheed
482e07af7e
Unify degree members and properties
2017-11-10 12:52:07 +01:00
scorched
1d99f93a7a
Fix compilation on Visual Studio 2013 again.
2017-11-01 23:47:05 +03:00
Rémi Verschelde
a6ddc5a9a4
Merge pull request #12363 from groud/implement_guides
...
Implement 2D editor guides
2017-10-30 22:58:46 +01:00
Gilles Roudiere
32502a4b68
Fixes keybord directionnal keys not moving nodes in the 2D editor
2017-10-29 22:00:03 +01:00
Gilles Roudiere
06a4e2e3ad
Implement guides
2017-10-24 22:32:00 +02:00
Indah Sylvia
79dda1350d
Finished transition of Patch9Rect to NinePatchRect
2017-10-24 13:01:45 +07:00
Rémi Verschelde
99c8a8c7b1
Merge pull request #11401 from SaracenOne/snapped_drag
...
Added snapping to spatial drag and drop.
2017-10-22 12:06:00 +02:00
scorched
3ba5ee42c3
Fix compilation on Visual Studio 2013 ( #10219 ).
2017-10-20 12:55:22 +02:00
Gilles Roudiere
fc02605b49
Fixes snapping and replaces the _draw_canvas by forward_canvas_draw
2017-10-18 00:01:59 +02:00
Daniel J. Ramirez
9001ba26aa
Added and improved some missing icons, plus some other visual fixes.
2017-10-13 16:39:17 -05:00
Daniel J. Ramirez
dbc37afcd9
Added and improved some icons, plus some other minor visual fixes.
2017-10-12 14:43:11 -05:00
Rémi Verschelde
1cb4fc1510
Merge pull request #11846 from gabrielformiga/fix-ik-bone-drag
...
Fix IK Bone Drag on Viewport
2017-10-09 12:30:56 +02:00
Rémi Verschelde
3151b08c48
Merge pull request #11821 from groud/margins_preset_menu
...
Replaces (and extends) the anchor menu to a Layout one
2017-10-09 12:21:57 +02:00
Gilles Roudiere
a25d70ab31
Extends the anchors menu to a presets
2017-10-05 21:53:36 +02:00
Gabriel
f931093812
Fix IK Bone Drag on Viewport
2017-10-04 21:58:13 -03:00
Gilles Roudiere
3f279d2a3e
Fixes the pre drag rect not drawn correctly
2017-10-03 22:44:34 +02:00
Andreas Haas
5303efb2fa
Merge pull request #11659 from AndreaCatania/prephysics
...
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
Poommetee Ketson
980e78749b
Merge pull request #11743 from groud/zoom_button_fix
...
Fix zoom button not zooming on the screen center
2017-10-02 23:42:43 +07:00
Gabriel
24249a2c4d
Fix bones draw on viewport
2017-10-01 16:00:44 -03:00
Gilles Roudiere
a0fb178b58
Fix zoom button not zooming on the screen center
2017-10-01 11:30:38 +02:00
Poommetee Ketson
f058fa660d
Merge pull request #11720 from ISylvox/EnhanceExperience-onUsing-DragNDropAssetTo2DViewport
...
Rename Patch9Rect into NinePatchRect on "Drag & Drop Asset to 2D Viewport" Feature
2017-09-30 22:28:25 +07:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
Gilles Roudiere
c9e1bff93f
Fixes node2D not lockable/groupable
2017-09-30 15:30:51 +02:00
Indah Sylvia
1f30bcb264
Renamed Patch9Rect (which was expected to be renamed to NinePacthRect) into NinePatchRect on "drag & drop asset to 2D viewport" feature.
2017-09-30 20:18:58 +07:00
Rémi Verschelde
f577efd47e
Merge pull request #11424 from groud/control_node_presets
...
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Poommetee Ketson
dcc759fbbc
2DEditor: fix duplicated 'id_pressed' connection
2017-09-25 23:15:54 +07:00
Gilles Roudiere
05bb8e0c10
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22 11:39:44 +02:00
Rémi Verschelde
779426d2df
Merge pull request #11477 from djrm/pr_visuals
...
Improved a lot of icons, and some style fixes
2017-09-22 09:28:10 +02:00
Gilles Roudiere
56a80625e5
Fixes the rulers text drawn outside the viewport_base
2017-09-22 09:18:04 +02:00
Daniel J. Ramirez
29d3ecf29a
Improved a lot of icons, and some style fixes
2017-09-21 15:55:07 -05:00
Gilles Roudiere
e2145bc960
Fix godot spraying errors about a null check
2017-09-21 21:59:38 +02:00
Rémi Verschelde
82f13288dd
Merge pull request #11453 from djrm/pr_visuals
...
Visual tweaks.
2017-09-21 10:51:06 +02:00
Daniel J. Ramirez
00755ff2c0
Visual tweaks.
...
Updated icons
Updated some color
2017-09-20 19:29:52 -05:00
Marcelo Fernandez
1a8b324545
Add missing NULL checks on CanvasItemEditor
2017-09-20 16:28:16 -03:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
SaracenOne
2e22c07f42
Added snapping to spatial drag and drop.
2017-09-20 01:54:01 +01:00
Rémi Verschelde
01e4d2672c
Merge pull request #11327 from SaracenOne/drag_meshes
...
Drag and drop for meshes directly.
2017-09-19 23:38:10 +02:00
SaracenOne
a3b3886029
Drag and drop for meshes directly and fix drop restriction for non-Texture objects in canvas editor.
2017-09-18 22:50:05 +01:00
Gilles Roudiere
b5f29fe073
Add some options and reorganize the 2D editor menus. Makes available forced snapping.
2017-09-18 23:20:18 +02:00
Gilles Roudiere
ee61d5d04b
Implement smart snapping. Fixes a bug with anchors single-axis move (when they were rotated).
2017-09-17 23:22:13 +02:00
Gilles Roudiere
a6f577a9f2
Avoid grid step to go below zero
2017-09-17 23:19:05 +02:00
Gilles Roudiere
7c24a26bc2
Use shift to move anchors on a single axis
2017-09-17 23:19:05 +02:00
Gilles Roudiere
bf6d7add01
Implement shortcuts to multiply/divide the grid step
2017-09-17 23:19:05 +02:00
Gilles Roudiere
fc52a74ffc
Fusion the lock/unlock and the group/ungroup buttons
2017-09-17 23:19:05 +02:00
Gilles Roudiere
975f7eeec3
Adds keyboards shortcuts
2017-09-17 23:19:05 +02:00
Gilles Roudiere
335688ce78
Implements rulers
2017-09-17 23:19:05 +02:00
Gilles Roudiere
72e0a68a81
Fixes axis badly displayed with high zooming values
2017-09-17 23:04:30 +02:00
Gilles Roudiere
71b45614fd
Split some functions to make the code more readable (maybe at the price of a neglibile performance loss)
2017-09-17 23:04:30 +02:00
Gilles Roudiere
f48b76fd8d
Make the shortcuts for setting the pivot editable
2017-09-17 23:04:30 +02:00
Gilles Roudiere
69091d4035
Display draggable anchors only if the parent is not a container
2017-09-17 23:04:30 +02:00
Gilles Roudiere
100c788884
Display width and height when dragging a node side
2017-09-17 23:04:30 +02:00
Gilles Roudiere
ad1028471c
Draw a ghost rect when dragging nodes if it's rotated/scaled
2017-09-17 23:04:30 +02:00
Gilles Roudiere
dbc4dbdec1
Displays margins values when moving the node
2017-09-17 23:04:30 +02:00
poke1024
d9b68c5f5d
adds display of old bounding box as suggested by Zephilinox in issue #10936
2017-09-14 17:46:24 +02:00
poke1024
9ba92f5baa
sprite selection rectangle updates again (fixes issue 10936)
...
sprite selection rectangle was not updating in real time when dragging or rotating sprites; undoing translation/rotation changes did not update sprite rectangles either.
2017-09-14 07:12:50 +02:00
Rémi Verschelde
cf941fdc35
Merge pull request #11026 from hpvb/fix-assign-in-if
...
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Hein-Pieter van Braam
8230bf0a2f
Remove assignment and declarations in if statements
...
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam
67a706fc1b
Fix various assorted warnings
...
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Juan Linietsky
1eeda0f32f
Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true.
2017-09-07 11:22:07 -03:00
Rémi Verschelde
7f262e484a
Merge pull request #10907 from SaracenOne/spatial_edit_drag
...
Added support for drag and drop in spatial editor.
2017-09-04 23:05:31 +02:00
Poommetee Ketson
fd68c3b68f
2DEditor: enhance viewport cursor shape
2017-09-04 11:36:12 +07:00
SaracenOne
d3cb8d12ff
Added support for drag and drop in spatial editor.
2017-09-03 05:00:23 +01:00
Hein-Pieter van Braam
9c63ab99f0
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Hein-Pieter van Braam
f9467ec1ea
Fix signed and unsigned comparisons
...
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01 08:13:12 +02:00
toger5
7793bfc544
added icon updating to most ui elements
2017-08-30 21:47:09 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Rémi Verschelde
612099e377
Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
...
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
Rémi Verschelde
5976e8d7de
Merge pull request #10625 from Rubonnek/fixed-leaks
...
Fixed several memory leaks
2017-08-27 02:10:32 +02:00
Wilson E. Alvarez
7a07895920
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Wilson E. Alvarez
1577f41653
Fixed several memory leaks
2017-08-25 08:47:05 -04:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Rémi Verschelde
5485233549
Merge pull request #10300 from H4kor/anchor
...
Show Anchor even when Control-Node is hidden
2017-08-16 17:34:33 +02:00
Rémi Verschelde
b1ecaaa22b
Merge pull request #10307 from Rubonnek/update-argument-names
...
Updated function argument names
2017-08-16 17:17:56 +02:00
Juan Linietsky
1ecb48b8c2
Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889
2017-08-15 19:49:28 -03:00
Gilles Roudiere
0041e08f74
Avoids inverted anchors
...
Add a push_opposite_anchor argument pushing the opposite anchor if
needed
2017-08-13 21:20:14 +02:00
Gilles Roudiere
c26af6f2b7
Adds a function to set Anchors with a layout preset
2017-08-13 21:20:14 +02:00
Gilles Roudiere
e8c83b31bd
Added the possibility to move all anchors at once when they are clustered
2017-08-13 21:20:13 +02:00
Gilles Roudiere
f5ff7e9fa0
Make anchors snap to each other
2017-08-13 21:20:13 +02:00
Gilles Roudiere
b73613e1eb
Displays percentages when dragging anchors
2017-08-13 21:20:13 +02:00
Gilles Roudiere
2032cb2522
Simplifies the canvas editor code
2017-08-13 21:20:13 +02:00
Gilles Roudiere
3264cea7ae
Add lines to make understandable when anchors are snapped
2017-08-13 21:20:13 +02:00
Gilles Roudiere
b329cb9c71
Snap anchors when dragged, depending on the zoom level
2017-08-13 21:20:13 +02:00
Gilles Roudiere
fcff42dcb7
Make anchors draggable
2017-08-13 21:20:13 +02:00
Gilles Roudiere
bd0384a9e9
Add anchor visualization
2017-08-13 21:20:13 +02:00
Gilles Roudiere
0d35d4d53b
Replace GUI anchor type by a float between 0 and 1
2017-08-13 21:20:13 +02:00
Niko Abeler
07809c162f
Showing anchor icon in editor if control-node is hidden ( fixes #9542 )
2017-08-13 17:35:59 +02:00
Wilson E. Alvarez
428f03cf06
Updated function argument names
2017-08-12 15:12:49 -04:00
Daniel J. Ramirez
03f62495ca
Improved add texture as node dialog
2017-08-10 11:40:28 -05:00
Juan Linietsky
950b205609
Clean up canvas item when changing state, closes #5977
2017-08-08 21:12:32 -03:00
Juan Linietsky
1939e83a65
Attempt to resolve #4673
2017-08-08 07:13:17 -03:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Gilles Roudiere
ffe2072741
Change the grid offset when the snap is set as relative
2017-07-25 21:10:43 +02:00
Gilles Roudiere
cb3fbf7d32
Make uniform resize possible with side (top, left, right, bottom)
...
handles.
2017-07-20 22:03:34 +02:00
Gilles Roudiere
2d9873e033
Replaced the hard-to-understand _select by _select_click_on_empty_area and _select_click_on_item.
...
Added some comments
Removed commented code or useless ones
2017-07-20 19:50:37 +02:00
Gilles Roudiere
0d4b0ecb57
Generalized _find_canvas_items_at_pos to remove _select_canvas_items_at_pos
...
Removed some useless parameters
Removed old comments
2017-07-20 19:50:37 +02:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Daniel J. Ramirez
337c1238b9
Fixed button flat behavior when not in normal state.
...
Also changed some buttons to flat mode
2017-07-18 11:03:06 -05:00
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Rémi Verschelde
34c20248b3
Merge pull request #9577 from MarianoGnu/master
...
Add anchor shortcut to fit parent
2017-07-17 23:14:52 +02:00
toger5
7556aacb03
focus box size fix for new theme
2017-07-16 20:07:06 +02:00
Mariano Suligoy
99bda42d4d
Add anchor shortcut to fit parent
...
Also remove old Edit -> Expand to Parent menu option
2017-07-14 10:25:50 -03:00
Rémi Verschelde
095f0c956e
Fix wrong cast to Node2D instead of Control
...
As reported by @sanikoyes.
2017-07-08 09:42:48 +02:00
Juan Linietsky
bd9d98c172
Ability to set rotation and scaling pivot for controls.
2017-07-06 17:42:44 -03:00
Nuno Donato
c207c06173
Update some property names for animation keys.
...
Added rect_rotation too.
Fixes #9337
2017-06-24 10:39:57 +01:00
Thomas Herzog
86407aebc5
Merge pull request #8407 from Jylhis/popup_item_select_hide
...
Update PopupMenu hiding
2017-06-20 00:20:21 +02:00
Sean Bohan
45b71ac2d0
Add settings to pan canvas editor with scrolling
...
This feature is mainly designed for developers who uses touchpad instead of mouse, and want to scroll instead of zoom. Every macOS developers will like it since it feels intuitive.
2 new settings are added to “editors/2d”:
scroll_to_pan: turn on to use mouse/touchpad scroll to pan canvas item editor view instead of zoom
pan_speed: use this value to change scroll speed
2017-06-08 18:05:41 +08:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Andreas Haas
9bc5348961
InputEvent: Renamed "pos" property to "position"
...
Make the naming consistent with other classes.
2017-06-03 11:26:39 +02:00
George Marques
86ef71fc95
Fix crash when interacting with the 2d editor
2017-05-23 11:03:17 -03:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Rémi Verschelde
231511b2a6
Merge pull request #8631 from volzhs/editor-theme-custom
...
New customizable editor theme
2017-05-20 07:16:11 +02:00
volzhs
bb81293047
New customizable editor theme
2017-05-09 17:46:54 +09:00
toger5
304a1f5b5a
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
2017-05-07 14:23:56 +02:00
volzhs
17e8e343fb
Revert "Add new editor and default theme (WIP)"
...
This reverts commit f045efe007
.
2017-05-03 06:19:15 +09:00
Daniel J. Ramirez
f045efe007
Add new editor and default theme (WIP)
2017-04-27 08:04:57 +02:00
Jylhis
aa63fd1551
Fix #7262
...
Disable PopupMenu hiding in snap settings of the TextureRegion editor
and Edit menu of the scene
2017-04-14 15:01:56 +03:00
Rémi Verschelde
8764659234
Merge pull request #8342 from volzhs/error-signal-dnd
...
Fix signal error when starting editor
2017-04-10 08:29:41 +02:00
Sergey Pusnei
8589ca3903
Rename [gs]et_pos to [gs]et_position for Controls
...
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
volzhs
519c03e932
Fix signal error when starting editor
...
need to merge #8198 to work properly
2017-04-10 13:00:08 +09:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Rémi Verschelde
d4740a9853
Merge pull request #8169 from RandomShaper/fix-uniform-move
...
Include uniform (Shift down) mode in only-one-Node2D dragging
2017-03-27 08:56:54 +02:00
Pedro J. Estébanez
e7fba3d273
Include uniform (Shift down) mode
...
in only-one-Node2D dragging
2017-03-27 01:32:24 +02:00
Rémi Verschelde
fb46323022
Merge pull request #8115 from RandomShaper/improve-snapping
...
Improved 2D snapping behavior
2017-03-24 22:51:12 +01:00
Pedro J. Estébanez
61d7ae3466
Improved 2D snapping behavior
...
Make snapping affect nodes created by drag & drop
Make snapping for a single Node2D refer to its pivot
Refactor duplicate drag setup code
Replace one occurrence of the old set_pos by set_position
2017-03-24 21:29:46 +01:00
Pedro J. Estébanez
f5004b78d0
Implement warped mouse panning for 2D & 3D editors
...
Enabled by default as in Blender, but can be disabled separately for 2D & 3D;
the core functionality is in Input so this could be reused or even exposed to scripts in the future
2017-03-22 21:36:52 +01:00
volzhs
4d0a75750f
Fix drag and drop on 2d viewport
2017-03-13 19:35:27 +09:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
49c065d29c
Refactoring: rename tools/editor/ to editor/
...
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00