Commit graph

138 commits

Author SHA1 Message Date
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
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