Commit graph

1514 commits

Author SHA1 Message Date
Juan Linietsky
a808f53020 Revert "Fix Tileset/tilemap issues related to my adding of one-way collisions to them" 2017-07-01 13:02:04 -03:00
Juan Linietsky
2a3e00c8c7 -Many fixes to VisualScript, fixed property names, etc.
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Bojidar Marinov
80356f925c
Fix #9409, fixup #9370; tileset now has shape transform instead of offset
Fix bad return type in CollisionObject2D, Shape -> Shape2D. Was causing unintended null when casting. (9409)
Fix a misplaced ++ operator. (9370)
Fix merging with exiting tileset duplicating shapes. (9370)
2017-06-30 19:01:20 +03:00
Robert Hernandez
f0f407e76e Texture region now updates when changing an Atlas
- Removed atlas_changed signal for AtlasTexture
- Changes are now handled by _notify_change
- Removed unneccesary signal connections
- Texture preview now updates in real-time

Fixed TextureRegionEditor constantly regenerating
2017-06-29 10:49:24 -04:00
Marc Gilleron
6c1ab2098f Fix curve saving, refined undo/redo 2017-06-28 02:43:30 +02:00
Juan Linietsky
51442988b1 Merge pull request #9404 from Zylann/curve_improvement
Curve improvement
2017-06-27 07:53:52 -03:00
Rémi Verschelde
72bf46649e Merge pull request #9360 from GodotExplorer/pr-external-editor-language-check
Better user experience with external text editors.
2017-06-27 08:15:54 +02:00
geequlim
6687484958 Better user expirence with external text editors.
Implements open_in_external_editor for subclasses of ScriptLanguage.
Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
2017-06-27 12:55:16 +08:00
Marc Gilleron
69b8f61f25 Curve features
- Ability to set tangents as linear
- Indicative min and max values
- CurveTexture doesn't need min and max anymore
2017-06-26 23:41:37 +02:00
Rémi Verschelde
f2bc0cc966 Merge pull request #9370 from bojidar-bg/c-9318-oneway-tilemaps
Add one-way collisions and individual shape offsets for tilesets
2017-06-26 22:47:26 +02:00
Rémi Verschelde
f7b77e5b76 Merge pull request #9318 from bojidar-bg/readd-normal-tilemap
Add normal map to tilemaps and tilesets
2017-06-26 22:47:11 +02:00
Bojidar Marinov
207feb2f87
Add one-way collisions and individual shape offsets for tilesets
As requested in #9318
Accidentially fixes #2231 as well
2017-06-25 21:47:30 +03:00
Rémi Verschelde
a2e4b80ff5 Merge pull request #9345 from nunodonato/animproperties
Update some property names for animation keys.
2017-06-24 23:52:31 +02:00
Juan Linietsky
898d8fd557 Merge pull request #9353 from Zylann/gradient_refactor
GradientTexture now uses a Gradient
2017-06-24 18:13:56 -03:00
Rémi Verschelde
68891baa1b Merge pull request #9281 from Zylann/fix_freelook_keyboard
Fixed freelook conflict with text inputs
2017-06-24 23:06:04 +02:00
Marc Gilleron
2bb1638b0a GradientTexture now uses a Gradient
- Added gradient property
- Deleted duplicate code
2017-06-24 21:50:44 +02: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
Juan Linietsky
6ba1e4677b -Trigger shapes removed in 2D, they became obsolete long ago when areas could detect their own overlap
-Added ability to disable individual collisionshape/polygon
-Moved One Way Collision to shape, allowing more flexibility
-Changed internals of CollisionObject, shapes are generated from child nodes on the fly, not stored inside any longer.
-Modifying a CollisionPolygon2D on the fly now works, it can even be animated.

Will port this to 3D once well tested. Have fun!
2017-06-23 23:39:52 -03:00
Marc Gilleron
659897cfb8 Added Curve resource
- New resource for curves in y(x) form
- CurveTexture now has a Curve
- Curve and CurveTexture share the same editor
2017-06-24 01:01:36 +02:00
Thomas Herzog
c5e0c6a336 Merge pull request #9307 from nunodonato/shadererrorline
highlight the correct error line in shader editor
2017-06-23 02:19:40 +02:00
Bojidar Marinov
2edb082c7e
Add normal map to tilemaps and tilesets
Fixes #9310
2017-06-22 18:15:50 +03:00
Mariano Javier Suligoy
320c1af616 Merge pull request #9293 from MarianoGnu/master
Fix regresion on Texture Region Editor Plugin. Fixes #9282
2017-06-22 07:56:01 -03:00
Nuno Donato
be2f7f4172 highlight the correct error line in shader editor 2017-06-21 21:09:41 +01:00
Juan Linietsky
95560e02c5 2D GPU Particles working.. 2017-06-21 16:26:26 -03:00
Mariano Suligoy
2b7a826553 Fix regresion on Texture Region Editor Plugin. Fixes#9282 2017-06-20 16:05:36 -03:00
Marc Gilleron
0fd66a4f8f Fixed freelook conflict with text inputs 2017-06-20 02:50:25 +02: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
Thomas Herzog
6b93455b6b Merge pull request #9099 from kubecz3k/plugin-camera-expose
EditorPlugin can request user inputs from editor 3d view
2017-06-19 22:43:33 +02:00
Konrad Nowakowski
6592df74d8 Fix image lock on preview image generating 2017-06-19 12:00:32 +01:00
ageazrael
a89658fdb8 Fixed ‘CreateNewAnimation’ window wrong size. 2017-06-16 17:52:49 +02:00
Hugo Locurcio
cdcc3c919b Increase the default perspective camera FOV
This does not affect existing projects, but will affect newly-created
editor settings and Camera nodes.
2017-06-16 12:07:07 +02:00
Karroffel
23c5fa8687 renamed occurances of ColorRamp with Gradient
ColorRamp got renamed to Gradient recently, reduz missed some occurances though.
2017-06-14 01:24:04 +02:00
Juan Linietsky
831860695c Fix empty shader related crash, closes #8314 2017-06-12 19:23:37 -03:00
Unknown
d8b65b1657 EditorPlugin can request user inputs from editor 3d view 2017-06-12 17:55:15 +02:00
Juan Linietsky
61c82f4356 Restored everything related to information polling, and added information box for viewport. 2017-06-11 18:13:04 -03:00
Juan Linietsky
4d50c7ad8c Restored multiple viewport function, as well as view modes. 2017-06-11 15:52:03 -03:00
Juan Linietsky
ec015a32ae Multiple 3D viewports are not operational. 2017-06-11 11:29:51 -03:00
alexholly
935f730170 renamed all Rect3.pos to Rect3.position 2017-06-09 15:54:02 +02:00
Rémi Verschelde
63fd693c1e Merge pull request #9060 from pixelpicosean/scroll-to-pan-canvas-item-editor-3.0
Add settings to pan canvas editor with scrolling
2017-06-09 10:48:59 +02:00
Juan Linietsky
612ab8fcdb -Restored multithread capability to VisualServer
-Restored resource previews!
2017-06-09 00:24:18 -03: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
Juan Linietsky
5bf810b5db -Added proper access to depth texture from shader
-Split Mesh into Mesh (abstrat class) and ArrayMesh, to allow to proper mesh primitives, as well as streamable meshes in the future.
2017-06-07 18:20:04 -03:00
Rémi Verschelde
f8d7670e82 Merge pull request #9038 from AlexHolly/rect2-rename-pos
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
Rémi Verschelde
d3afecf681 Merge pull request #8974 from Paulb23/script_overview
Added script overview
2017-06-05 15:42:12 +02: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
Paulb23
a4e222ae71 Added members overview 2017-05-29 12:56:33 +01:00
Juan Linietsky
bb20f230ad -Added .hdr format support
-Added default environment editor setting
-Added environment created by default in new projects
-Removed default light and ambient from spatial editor, to make the editor more PBR compliant
2017-05-28 21:48:05 -03:00
Zaven Muradyan
f460f82ec1 Fix moving path controls in edit mode.
The previous code would never trigger the subsequent conditionals (for
moving the control points) when in EDIT_MODE because the point
conditionals were nested instead of being a conjunction.
2017-05-27 18:47:45 -07:00
Rémi Verschelde
2b25147450 Merge pull request #8928 from nunodonato/helpmenu
Added an help menu
2017-05-27 11:25:09 +02:00
Juan Linietsky
f89641907f -Added EXR supprot for HDR (no BC6 compression yet though)
-Improvements to texture importer
-Proper detection of S3TC compression modes, and added all modes to Image
-Fixes to non-power of 2 compressed textures, which should all be supported by GLES3
2017-05-26 22:31:32 -03:00
Nuno Donato
7661cb5a62 Added an help menu
Also renamed the "tutorials" button in the script editor to be consistent with the help menu entry.
Fixed #8921
2017-05-26 16:20:33 +01:00
Ferenc Arn
42de893f9a Applied clang-format.
Since PathEditorPlugin was commented out, it didn't get clang-format'ed.
2017-05-25 10:12:05 -05:00
Ferenc Arn
fdf301e78b Revive PathEditorPlugin.
Adapted the plugin to recent changes in input classes and pool arrays.
Fixed an out-of-bounds bug in the process.
Doesn't display anything for a single point (existing issue).
2017-05-24 17:09:53 -05:00
George Marques
86ef71fc95
Fix crash when interacting with the 2d editor 2017-05-23 11:03:17 -03:00
Zaven Muradyan
9bc044cee6 Fix 2d path editor controls.
Fixes #502. This appears to have been broken due to a merge conflict
after the InputEvents changes.
2017-05-21 14:35:27 -07: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
c19902f753 Merge pull request #8838 from zlsa/master
Export nested nodes in TileSet scenes; resolves #8819.
2017-05-20 09:50:33 +02: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
Jon Ross
c97c733779 Fix #8819. Adds _import_node() that, when used in conjunction with _import_scene, recurses through the scene tree and exports all available nodes. 2017-05-19 14:49:37 -07:00
Rémi Verschelde
0aede444ef Merge pull request #8789 from Hinsbart/editor_shortcuts
Editor: Make "open 2d/3d/script editor" shortcuts configurable.
2017-05-18 18:59:22 +02:00
Andreas Haas
3be8a94868
Editor: Make "open 2d/3d/script editor" shortcuts configurable.
Also adds shortcuts for opening the AssetLib and for switching to the next/prev editor.
2017-05-18 18:36:16 +02:00
Rémi Verschelde
1877a31a86 Merge pull request #6941 from voithos/bezier-handle-deletion-shortcut
Add the ability to delete bezier path handles.
2017-05-18 14:02:30 +02:00
Rémi Verschelde
787dad5ac4 Adapt tutorials (Godot Docs) icon to new design 2017-05-17 21:22:01 +02:00
Juan Linietsky
98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
volzhs
bb81293047 New customizable editor theme 2017-05-09 17:46:54 +09:00
Marc Gilleron
aaf9cacf5f Improved freelook
- Fix movement input affecting all viewports even when clicking outside
- Freelook up movement is now relative
- Prevent tool shortcut conflict when moving
- De-hardcode tool shortcuts (select, move, rotate, scale, wireframe)
- Movement speed depends on zoom distance (like panning)
- Mouse wheel controls speed (Blender-style) due to above point
- Added zoom distance indicator, hides after short delay
2017-05-08 02:57:20 +02:00
Rémi Verschelde
66725d9b21 Merge pull request #8660 from Hinsbart/warp
Spatial Editor: Mouse warping for orbit & freelook modes.
2017-05-07 15:06:35 +02: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
Andreas Haas
7839a89027
Spatial Editor: Mouse warping for orbit & freelook modes. 2017-05-06 14:46:42 +02:00
Marc Gilleron
442006b4bf Added 3D freelook navigation mode
- Triggered by holding RMB
- Can look around in FPS style
- Can move with WASD
- Movement speed accelerates over time
- Can multiply speed with a modifier key to go faster or slower
- Configurable in editor settings and shortcuts
2017-05-04 01:38:12 +02:00
volzhs
17e8e343fb Revert "Add new editor and default theme (WIP)"
This reverts commit f045efe007.
2017-05-03 06:19:15 +09:00
Rémi Verschelde
a37364620f Merge pull request #8569 from volzhs/editor-theme-1
Fix to use editor theme instead of handling each UI
2017-05-02 11:28:52 +02:00
Rémi Verschelde
6b769ac625 Merge pull request #8559 from Paulb23/script_recent_files
Added recent scripts to script editor
2017-05-02 11:27:57 +02:00
Rémi Verschelde
0a613ff970 Add a few missing copyright headers 2017-04-28 20:16:30 +02:00
volzhs
3223305e5a Fix to use editor theme instead of handling each UI 2017-04-28 22:42:52 +09:00
volzhs
be454ba2d6 Update editor theme 2017-04-28 11:01:17 +09:00
Paulb23
e37928bb50 Added recent scripts to script editor 2017-04-27 16:07:39 +01:00
Daniel J. Ramirez
f045efe007 Add new editor and default theme (WIP) 2017-04-27 08:04:57 +02:00
Paulb23
c4ffe89204 Changed indent type settings 2017-04-26 12:14:03 +01:00
Rémi Verschelde
88d362b232 Merge pull request #8531 from RameshRavone/patch-5
Settings: Moving Poly Editor into Editors category
2017-04-26 08:14:04 +02:00
Ramesh Ravone
ff282571c6
Settings: Moving Poly Editor into Editors category 2017-04-25 17:48:08 +05:30
Paulb23
4b8152d599 Ability to Convert Case, issue 8079 2017-04-25 10:18:57 +01:00
Paulb23
165b7bab63 Fixed convert indent and trim whitespace on save 2017-04-23 19:19:30 +01:00
Paulb23
e7e1d65eb0 Fix cursor position on indent convert 2017-04-23 19:05:51 +01:00
Rémi Verschelde
22b9c0207b Merge pull request #8417 from neikeq/hello-there
External editor improvements and fixes
2017-04-20 02:20:04 +02:00
Rémi Verschelde
5237bc952d Merge pull request #8424 from Paulb23/convert_indent
Support for space indentation
2017-04-18 14:16:58 +02:00
Paulb23
c59bd79e02 Convert indent on save 2017-04-18 12:30:52 +01:00
Paulb23
84bca4e72f Added support for space indentation 2017-04-18 12:30:46 +01:00
Ignacio Etcheverry
97c385dbb8 ScriptEditor: Fixes bug where menu option would be handled twice 2017-04-17 02:45:56 +02:00
Ignacio Etcheverry
4b8568006d External editor improvements and fixes
Notable changes:

- Now ScriptLanguages have the option to override the global external editor setting.
If `ScriptLanguage::open_in_external_editor()` returns `ERR_UNAVAILABLE` (which it does by default), then the global external editor option will be used.
- Added formatting to the external editor execution arguments. Now it's possible to write something like this: `{project} -g {file}:{line}:{col}`.
- `VisualScript::get_member_line()` now can return the line of functions (well, it returns the id of the _Function_ node of the function). I guess there is nothing else we can get a "line" from.

Fixes:

- Fixes a bug where `ScriptEditor::script_goto_method()` would not work if the script is not already open in the built-in editor.
- Fixes wrong DEFVAL for `cursor_set_column` and `cursor_set_line` in TextEdit.
- `Script::get_member_line()` now returns -1 ("found nothing") by default.
2017-04-17 01:51:30 +02:00
Paulb23
95a2a7e525 Added ability to convert indent type 2017-04-16 17:21:45 +01:00
Zaven Muradyan
5b3c0a502c Add the ability to delete bezier path handles. 2017-04-16 01:02:58 -07: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
Juan Linietsky
4286aef693 Particle system is complete. Rejoice! 2017-04-08 22:40:06 -03:00
Rémi Verschelde
df61dc4b2b Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
Juan Linietsky
74808ac4d9 New particle system, mostly working, some small features missing. 2017-04-06 23:49:27 -03:00
supaiku
d51fe99a8b Fix highlight typo 2017-04-06 17:35:08 +02:00
Rémi Verschelde
84bd039851 Merge pull request #8173 from RandomShaper/improve-tile-palette
Several enhancements for the tile map editor
2017-03-30 10:29:46 +02:00
Pedro J. Estébanez
54abbc532f Several enhancements for the tile map editor
Allow sorting tile palette by name
Allow hiding tile ids in tile palette
2017-03-27 10:45:02 +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
Rémi Verschelde
98baec6880 Merge pull request #8109 from RandomShaper/warped-panning
Implement warped mouse panning for 2D & 3D editors
2017-03-24 22:50:39 +01:00
Rémi Verschelde
debeee56f7 Fix typos in source code using codespell
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +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
e1c1d7d1d7 Add a bunch of missing Godot headers in own files 2017-03-05 15:47:28 +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