Commit Graph

87 Commits

Author SHA1 Message Date
975f7eeec3 Adds keyboards shortcuts 2017-09-17 23:19:05 +02:00
335688ce78 Implements rulers 2017-09-17 23:19:05 +02:00
72e0a68a81 Fixes axis badly displayed with high zooming values 2017-09-17 23:04:30 +02:00
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
f48b76fd8d Make the shortcuts for setting the pivot editable 2017-09-17 23:04:30 +02:00
69091d4035 Display draggable anchors only if the parent is not a container 2017-09-17 23:04:30 +02:00
100c788884 Display width and height when dragging a node side 2017-09-17 23:04:30 +02:00
ad1028471c Draw a ghost rect when dragging nodes if it's rotated/scaled 2017-09-17 23:04:30 +02:00
dbc4dbdec1 Displays margins values when moving the node 2017-09-17 23:04:30 +02:00
d9b68c5f5d adds display of old bounding box as suggested by Zephilinox in issue #10936 2017-09-14 17:46:24 +02:00
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
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
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
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
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
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
fd68c3b68f 2DEditor: enhance viewport cursor shape 2017-09-04 11:36:12 +07:00
d3cb8d12ff Added support for drag and drop in spatial editor. 2017-09-03 05:00:23 +01:00
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
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
7793bfc544 added icon updating to most ui elements 2017-08-30 21:47:09 +02:00
7ad14e7a3e Dead code tells no tales 2017-08-27 22:13:45 +02:00
bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
612099e377 Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
5976e8d7de Merge pull request #10625 from Rubonnek/fixed-leaks
Fixed several memory leaks
2017-08-27 02:10:32 +02:00
7a07895920 Added/Fixed null pointer checks 2017-08-26 16:58:47 -04:00
1577f41653 Fixed several memory leaks 2017-08-25 08:47:05 -04:00
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
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
90b8a5b71e Removes editor_hint from SceneTree 2017-08-19 01:29:45 +02:00
5485233549 Merge pull request #10300 from H4kor/anchor
Show Anchor even when Control-Node is hidden
2017-08-16 17:34:33 +02:00
b1ecaaa22b Merge pull request #10307 from Rubonnek/update-argument-names
Updated function argument names
2017-08-16 17:17:56 +02:00
1ecb48b8c2 Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889 2017-08-15 19:49:28 -03:00
0041e08f74 Avoids inverted anchors
Add a push_opposite_anchor argument pushing the opposite anchor if
needed
2017-08-13 21:20:14 +02:00
c26af6f2b7 Adds a function to set Anchors with a layout preset 2017-08-13 21:20:14 +02:00
e8c83b31bd Added the possibility to move all anchors at once when they are clustered 2017-08-13 21:20:13 +02:00
f5ff7e9fa0 Make anchors snap to each other 2017-08-13 21:20:13 +02:00
b73613e1eb Displays percentages when dragging anchors 2017-08-13 21:20:13 +02:00
2032cb2522 Simplifies the canvas editor code 2017-08-13 21:20:13 +02:00
3264cea7ae Add lines to make understandable when anchors are snapped 2017-08-13 21:20:13 +02:00
b329cb9c71 Snap anchors when dragged, depending on the zoom level 2017-08-13 21:20:13 +02:00
fcff42dcb7 Make anchors draggable 2017-08-13 21:20:13 +02:00
bd0384a9e9 Add anchor visualization 2017-08-13 21:20:13 +02:00
0d35d4d53b Replace GUI anchor type by a float between 0 and 1 2017-08-13 21:20:13 +02:00
07809c162f Showing anchor icon in editor if control-node is hidden (fixes #9542) 2017-08-13 17:35:59 +02:00
428f03cf06 Updated function argument names 2017-08-12 15:12:49 -04:00
03f62495ca Improved add texture as node dialog 2017-08-10 11:40:28 -05:00
950b205609 Clean up canvas item when changing state, closes #5977 2017-08-08 21:12:32 -03:00
1939e83a65 Attempt to resolve #4673 2017-08-08 07:13:17 -03:00
5ae78fdf6a Makes all Godot API's methods Lower Case 2017-08-07 18:24:35 +07:00