Commit Graph

1746 Commits

Author SHA1 Message Date
Rémi Verschelde a201fbb751 Merge pull request #7027 from Keetz/master
Fix scene tree drag & drop places node as child (#6912)
2016-11-09 12:53:35 +01:00
Rémi Verschelde 734e04a0dd Merge pull request #7068 from volzhs/fix-project-name
Set project name as directory name instead of '.'
2016-11-09 12:02:24 +01:00
Pawel Kowal 938f9388dd Export immediately if only one device present 2016-11-08 20:08:07 +01:00
volzhs 571f33f863 Set project name as directory name instead of '.' 2016-11-08 21:39:28 +09:00
volzhs b8f80e9450 Select newly created or imported project automatically 2016-11-08 03:39:05 +09:00
Paulb23 0e2c15e91a Made background and symbol color follow the color API 2016-11-06 13:50:23 +00:00
Rémi Verschelde a4570cb461 Merge pull request #7035 from volzhs/undo-redo-duplicate
Prevent to make UndoRedo for duplicate if no selected node
2016-11-06 12:09:49 +01:00
Rémi Verschelde 415f5a7cfe Merge pull request #7026 from SaracenOne/value_track_flag_fix
Fixed flag for importing animation and skipping value tracks.
2016-11-06 12:04:04 +01:00
Rémi Verschelde 20a33e809e Merge pull request #7009 from volzhs/fix-double-click
Fix to focus or rename node by double click
2016-11-06 12:02:51 +01:00
Pawel Kowal 544194053a Fix #7016, add script create icon 2016-11-05 18:20:59 +01:00
volzhs d82928eb49 Prevent to make UndoRedo for duplicate if no selected node 2016-11-05 00:52:53 +09:00
Keetz 2afcbc4b1f Fix scene tree drag & drop places node as child (#6912) 2016-11-03 13:59:36 +01:00
Saracen 0063471edd Fixed flag for importing animation and skipping value tracks. 2016-11-03 08:45:35 +00:00
Mateusz Adamczyk ce5200b30e Option for detaching script from node (#6934). 2016-11-01 22:49:01 +01:00
volzhs fd9aebd4fa Fix to focus or rename node by double click 2016-11-01 22:26:29 +09:00
Rémi Verschelde f34151ff0f style: Various other PEP8 fixes in Python files
Done with `autopep8 --select=E7`, fixes:

- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-01 00:35:16 +01:00
Rémi Verschelde 817dd7ccbb style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes:

- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-01 00:35:16 +01:00
Rémi Verschelde d4c17700aa style: Fix PEP8 whitespace issues in Python files
Done with `autopep8 --select=E2,W2`, fixes:

- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
Rémi Verschelde 97c8508f5e style: Start applying PEP8 to Python files, indentation issues
Done with `autopep8 --select=E1`, fixes:

- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-01 00:33:51 +01:00
volzhs 70cce6152d Fix resetting to default value in EditorSettings 2016-11-01 01:51:34 +09:00
volzhs a7d492eb53 Fix memory leak with drag & drop on 2D viewport 2016-10-31 11:50:34 +09:00
volzhs 707185d9d8 Fix p_index out of size error when closing script 2016-10-31 06:20:54 +09:00
volzhs 513820ab27 Fix 2 search menus are shown 2016-10-31 00:07:16 +09:00
volzhs 696c47d9ab Fix bug with saving last select language and remove warning 2016-10-30 23:21:59 +09:00
Juan Linietsky ab4126f510 Merge branch 'master' of https://github.com/godotengine/godot 2016-10-30 09:00:45 -03:00
Rémi Verschelde 914015f3b6 Merge pull request #6962 from henriquelalves/external_editor_focus_bug
Won't change editor tabs when using External Editor.
2016-10-30 12:17:28 +01:00
Rémi Verschelde 1ee1a959ab Merge pull request #6945 from Hinsbart/script_dnd
Ability to drag script files from Filesystem dock to SceneTree dock.
2016-10-30 12:10:45 +01:00
Rémi Verschelde 644e810cef Merge pull request #6920 from volzhs/dragndrop-2d
Improve drag and drop on 2D viewport
2016-10-30 12:06:19 +01:00
Rémi Verschelde 4ed2f98730 Merge pull request #6874 from mateka/issue-6839
Option to load script for node (#6839)
2016-10-30 11:57:56 +01:00
Rémi Verschelde 426ff9e7ac Merge pull request #6614 from TheKK/issue5989
Make FileDialog directory selection less misleading
2016-10-30 10:46:01 +01:00
Juan Linietsky d6567010bf -Many many fixes
-Gizmos work again
2016-10-29 20:48:09 -03:00
Henrique L. Alves 13c92099e6 Won't change editor tabs when using External Editor.
Fixes issue #3046.
2016-10-29 11:44:57 -02:00
Juan Linietsky 53d8f2b1ec PBR more or less working, still working on bringing gizmos back 2016-10-27 11:50:26 -03:00
Andreas Haas a3944e66da
Ability to drag script files from Filesystem dock to SceneTree dock.
Allows to attach scripts by dragging them onto the target Node.
2016-10-27 16:32:41 +02:00
volzhs eed9179ea3 Improve drag and drop on 2D viewport 2016-10-26 21:21:01 +09:00
volzhs 9605a1d0da Remove dead code in FileSystemDock 2016-10-23 23:38:49 +09:00
Henrique Lacreta Alves 853d1ce9f3 Prevent unwanted script editor input on game crash
Fixes #6530.
2016-10-22 12:54:38 +02:00
Rémi Verschelde ac765fd518 Merge pull request #6710 from lordadamson/master
fix #6031 when creating a script the default language will be what yo…
2016-10-22 12:48:59 +02:00
Adham Zahran a84a461767 fix #6031 when creating a script the language will be what you selected last time 2016-10-20 23:53:15 +02:00
Mateusz Adamczyk 41329f9750 Option to load script for node (#6839) 2016-10-19 21:26:14 +02:00
Juan Linietsky 4428115916 Everything returning to normal in 3D, still a long way to go
-implemented the scene part of visual server and rasterizer, objects without lighting and material are rendererd only
2016-10-19 11:14:41 -03:00
Rémi Verschelde e96c49f849 Merge pull request #6850 from akien-mga/pr-scsub-shebang
SCsub: Add python shebang as a hint for syntax highlighting
2016-10-17 20:13:18 +02:00
Rémi Verschelde fc8ccd5b8c SCsub: Add python shebang as a hint for syntax highlighting
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Rémi Verschelde c4b7c7d81b Merge pull request #6796 from mateka/issue-3486
Possibility to write node path by hand in exported NodePath variable (#3486)
2016-10-17 11:17:06 +02:00
Rémi Verschelde 1da55f4251 Merge pull request #6825 from volzhs/import-3d-scene-name
Add option for root node name on Import 3D scene window
2016-10-17 10:08:23 +02:00
volzhs dd04ac7ba9 Add option for root node name on Import 3D scene window 2016-10-15 01:44:19 +09:00
Rémi Verschelde 2f57249c29 Merge pull request #6793 from volzhs/save-branch
Replace a node with saved branch scene instance
2016-10-14 18:09:47 +02:00
Rémi Verschelde 44e0071d0f Merge pull request #6780 from RandomShaper/space-padded-line-numbers
Allow turning off zero-padding for line numbers
2016-10-14 18:09:27 +02:00
George Marques 682c20be46 Merge pull request #6814 from Hinsbart/animplayer
Only show AnimationEditor automatically when an Animplayer is selected.
2016-10-13 13:07:37 -03:00
Rémi Verschelde 05a5d3d9d5 Merge pull request #6782 from pkowal1982/load_icon
New load icon, removed unused open icon
2016-10-13 18:00:07 +02:00
Andreas Haas 86fd40b06c
Only show AnimationEditor automatically when an Animplayer is selected.
Previous behaviour was to show it when an AnimationPlayer has been detected in the scene, now you actually have to select it.
Fixes #6213
2016-10-13 12:31:56 +02:00
Pedro J. Estébanez 00b3af246b Allow turing off zero-padding for line numbers 2016-10-13 11:43:42 +02:00
Mateusz Adamczyk cf4f3815b3 Possibility to write node path by hand in exported NodePath variable (#3486) 2016-10-11 23:15:01 +02:00
volzhs cc33c528eb Replace a node with saved branch scene instance 2016-10-11 23:54:46 +09:00
Andreas Haas 094073e4b2
Refresh TextureRegionEditor when region has been changed externally.
Now the TextureRegionEditor updates when you change the region_rect either via the inspector or via
undo/redo.

Fixes #6772
2016-10-11 11:31:25 +02:00
Rémi Verschelde 8b54cfad1d Merge pull request #6776 from RandomShaper/int_property_step
Allow step for integer properties
2016-10-11 09:10:00 +02:00
Rémi Verschelde f3106cddb3 Merge pull request #6775 from RandomShaper/one-based-col-numbers
Make text column numbers one-based
2016-10-11 09:09:49 +02:00
Pawel Kowal ed1e71a77e New load icon, removed unused open icon 2016-10-11 00:28:39 +02:00
Juan Linietsky 1527cf8c0d 2D Shaders are working again using the new syntax, though all is buggy in general 2016-10-10 18:31:01 -03:00
Pedro J. Estébanez 7b293aa4d4 Allow step for integer properties
Small readability improvement
2016-10-10 12:21:31 +02:00
Pedro J. Estébanez 2f80965845 Make text column numbers one-based
Make one-based the column number on the code editor

Make one-based the column number for GDScript error messages

Make one-based the column number for shader code error messages
2016-10-10 11:56:45 +02:00
Pedro J. Estébanez 0159e4f969 Refactor duplicated code 2016-10-10 10:39:58 +02:00
Pedro J. Estébanez d9c1729a8f Add line length guideline to code editors 2016-10-10 10:39:58 +02:00
Rémi Verschelde e0e21984d8 Merge pull request #6747 from RandomShaper/unify-serial-naming
Make node serial naming per-project and universal
2016-10-09 14:55:53 +02:00
Rémi Verschelde 8711523c98 Merge pull request #6722 from Hinsbart/projman_focus
Project manager: grab focus on ok button after path selection.
2016-10-09 14:41:44 +02:00
Rémi Verschelde afa6f3492c Merge pull request #6711 from Faless/add_go_to_origin_shortcut
Add shortcut to reset cursor position in 3D Editor ( #166 )
2016-10-09 14:38:59 +02:00
Rémi Verschelde 59d92d82a7 Merge pull request #6703 from razvanc-r/fix_node_path
fixes #6695 - MultiNodeEdit edit path in exported NodePath
2016-10-09 14:34:26 +02:00
Rémi Verschelde a3bac99c1c Merge pull request #6701 from Hinsbart/connect_noscript
ConnectionDialog: Don't allow connecting to a Node without a script if target method is invalid.
2016-10-09 14:15:21 +02:00
Rémi Verschelde fb856e532e Merge pull request #6673 from J08nY/issue-update-spinner
Fix #6653, add an option to stop the update spinner from spinning
2016-10-09 14:06:59 +02:00
J08nY 4527fbcfa1
editor_node: add an option to stop the update spinner from spinning, fixes #6653 2016-10-08 22:36:54 +02:00
Pedro J. Estébanez 9b2e2935d0 Refactor node naming APIs used by editor
Make 'name_num_separator' a project setting
Make all node operations separator-aware
2016-10-08 21:49:16 +02:00
Pedro J. Estébanez 88a32c11f1 Fix reparent undo not renaming back 2016-10-08 21:49:15 +02:00
Juan Linietsky 850eaf7ed7 -the new shader language seems to work
-shader editor plugin can edit shaders
-code completion in shader editor plugin
2016-10-07 11:31:18 -03:00
Andreas Haas 36d2dd5318
Project manager: grab focus on ok button after path selection.
Slight usability improvement: grabs focus on the Import/Create button after engine.cfg/path selection.
So then I can just press enter to create the project ^^
2016-10-06 12:48:02 +02:00
Răzvan Cosmin Rădulescu ced8fb4806 fixes #6695 - MultiNodeEdit edit path in exported NodePath 2016-10-05 19:32:51 +02:00
Juan Linietsky cf5778e51a -Added ViewportContainer, this is the only way to make viewports show up in GUI now
-2D editing now seems to work
-Added some functions and refactoring to Viewport
2016-10-05 01:26:35 -03:00
Fabio Alessandrelli 63abe3dcd0 Add shortcut to reset cursor position in 3D Editor ( #166 )
The shortcut will focus the origin after you moved around with shift + mouse3.
The default shortcut is the letter "O", like "F" for focus.
This can be customized in the editor shortcuts menu.

Closes #166
2016-10-04 21:42:11 +02:00
Andreas Haas 5b7021434f
ConnectionDialog: Don't allow connecting to a Node without a script if target method is invalid.
Shows a warning now.
Fixes #6656
2016-10-04 16:05:25 +02:00
Juan Linietsky 22d83bc9f6 Begining of GLES3 renderer:
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Rémi Verschelde 803ccb5c7f Merge pull request #6684 from Hinsbart/save_all
Fix "Save All" option in Script editor.
2016-10-03 12:10:25 +02:00
Rémi Verschelde 735e905c77 Merge pull request #6662 from RandomShaper/export-texture-flags
Respect texture .flags files on export
2016-10-03 12:03:06 +02:00
Rémi Verschelde ad280e7bfc Merge pull request #6640 from Hinsbart/color_picker
Add inline ColorPicker to Script text editor.
2016-10-03 12:00:10 +02:00
Rémi Verschelde 14fa87ce92 Merge pull request #6592 from Hinsbart/anim_zoom
AnimationEditor: zoom using ctrl+wheel
2016-10-03 11:50:33 +02:00
Rémi Verschelde de648e552b Merge pull request #6575 from Geequlim/more_themes
More custom theme support for editor
2016-10-03 11:50:18 +02:00
Rémi Verschelde 44b741dd3c Merge pull request #6554 from pkowal1982/propertyeditortooltips
Show True/False tooltip in property editor for bool values
2016-10-03 11:48:08 +02:00
Rémi Verschelde 90f4e76a46 Merge pull request #6479 from RandomShaper/improve-debug-focus
Improve debug focus behavior
2016-10-03 11:36:01 +02:00
Andreas Haas ac80e68d2f
Fix "Save All" option in Script editor.
Also removes some old code.
fixes #6667
2016-10-02 20:39:15 +02:00
Pedro J. Estébanez 11cbbeb17e Respect texture .flags files on export 2016-09-30 17:41:45 +02:00
volzhs c333659ebc Fix typo for word_wrap 2016-09-30 03:28:05 +09:00
Andreas Haas f81d009525
Add inline ColorPicker to Script text editor.
Adds an option to the script editor context menu that lets you open
a ColorPicker in order to easily edit `Color()` constructors.
To do this, right click on the word `Color` and select `Pick Color`.

A side effect of this change is that the script editor now has its own
context menu instead of re-using the one from TextEdit.
It's now possible to indent left/right and to toggle comments via this menu.
I also felt free to make it more context-sensitive than before:
Now "Cut" and "Copy" will only be shown if text has actually been selected.

I also added default shortcuts for indent left/right. (alt + left/right)

Closes #6232
2016-09-29 09:12:45 +02:00
Ying-Ruei Liang(KK) b40265492c Append selected dir when openning dir with Editorfiledialog 2016-09-26 16:05:22 +08:00
Ying-Ruei Liang(KK) ef1bfd3f2e Show "." in item_list of EditorFiledialog 2016-09-26 16:05:22 +08:00
Andreas Haas 3cce39c2d3
AnimationEditor: zoom using ctrl+wheel
closes #6585
2016-09-23 14:57:54 +02:00
George Marques 0ec2b7baea
Fix crash when disabling main screen plugin 2016-09-21 19:17:55 -03:00
Geequlim fd236a4b6c More custom theme support for editor 2016-09-20 20:41:57 +08:00
Pawel Kowal 623c483eba Show True/False tooltip in property editor for bool values 2016-09-19 23:41:48 +02:00
Rémi Verschelde d47e1f11fe Merge pull request #6549 from Hinsbart/default_layout
Make the choosable default editor layout the same as the actual default

[ci skip]
2016-09-19 18:59:53 +02:00
Andreas Haas a2bff72eee
Make the choosable default editor layout the same as the actual default one.
Fixes #6266
2016-09-19 18:52:08 +02:00
Rémi Verschelde c284ebfb97 Merge pull request #6534 from djrm/icons
New distraction free mode icon
2016-09-18 20:12:12 +02:00
Rémi Verschelde cfa868e900 Merge pull request #6525 from vnen/plugin-bottom-show-hide
Expose bottom panel show/hide for plugins
2016-09-18 20:06:10 +02:00