Commit graph

281 commits

Author SHA1 Message Date
Andreas Haas 8361b1ce07 Add ability to use custom script templates.
Templates will be loaded from .godot/script_templates
For now they're disabled for GDNative.

Ideas for further improvements:

- Add a "Save as Template" option to the script editor, as it can normally only save to res://
- Support more placeholders / custom placeholders
2017-06-13 20:03:08 +00:00
Juan Linietsky 831860695c Fix empty shader related crash, closes #8314 2017-06-12 19:23:37 -03:00
Juan Linietsky 42b2d52c88 Properly adjust the visible editor rect and make limits respected, closes #8328 2017-06-12 16:19:12 -03:00
Andreas Haas 5f1603ca45
EditorSettings: Default game window placement to Centered.
Fixes #8890
2017-06-12 21:06:37 +02: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
Zher Huei Lee 9ecdf522bd Added EditorPlugin.remove_import_plugin()
Allows addons with import extensions to clean up properly on
removal.
2017-06-11 17:18:22 +08:00
Fabio Alessandrelli b76275ab12 Fix network/debug/remote_port editor setting not working properly 2017-06-10 23:34:35 +02:00
Fabio Alessandrelli fc1368bee0 Editor now shows error when debug port is in use 2017-06-10 23:34:24 +02: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
Rémi Verschelde 7a3d557622 Merge pull request #9089 from nunodonato/autoopennew
Automatically edit new project after creating it in project manager. Fixes #9075
2017-06-08 07:39:09 +02:00
Rémi Verschelde 7570d9589d Merge pull request #9085 from groud/fix-audio-bus-buttons
Fix: audio buses buttons hard to see if pressed or not
2017-06-08 07:38:38 +02:00
Rémi Verschelde 932694e759 Merge pull request #9092 from Noshyaar/pr-run
Fix unsaved scene not running after save
2017-06-08 07:36:24 +02:00
Rémi Verschelde 606b4ee9df Merge pull request #9051 from toger5/fixedScriptEditorListSeperation
fixed spacing for script editor script list
2017-06-08 07:34:27 +02:00
Rémi Verschelde 89a7fb3530 Merge pull request #9090 from nunodonato/autorun
Run project after selecting main scene. Fixes #9077
2017-06-08 07:32:31 +02:00
Poommetee Ketson 6b7021ad90 Fix unsaved scene not running after save 2017-06-08 11:38:31 +07:00
Nuno Donato 1ab0a779d8 Run project after selecting main scene. Fixes #9077 2017-06-07 23:31:53 +01:00
Nuno Donato 9fd41416a9 Automatically open new project after creating it in project manager.
Fixes #9075
2017-06-07 22:50:24 +01: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
Gilles Roudiere 0e5daa7436 Fix: audio buses buttons hard to see if pressed or not 2017-06-07 19:38:03 +02:00
Andreas Haas 5f5d629c8a Merge pull request #9070 from Noshyaar/pr-help2
Fix Script Editor stealing focus on class search text changed
2017-06-07 18:59:37 +02:00
toger5 50e5c7f980 fixed overlapping of temp. colors (script editor)
+ added a little bit more spacing to the scripts in the script list.
the temp colors now expand to the vseperation, instead of having the same size than the stylebox
2017-06-07 02:41:08 -07:00
toger5 9774c8260f added style for panel class 2017-06-06 21:11:13 -07:00
Poommetee Ketson 6e1bcb2b44 Fix Script Editor stealing focus on class search text changed 2017-06-07 07:46:26 +07:00
Rémi Verschelde b21e68c8bc Merge pull request #9007 from noshyaar/pr-about
AboutBox: update copyright, add contributors list
2017-06-05 16:49:50 +02: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
Rémi Verschelde f09f1456b3 Merge pull request #9050 from vnen/fix-run-window-size
Update window size property names for editor run
2017-06-05 08:52:58 +02:00
Juan Linietsky 40959acef2 Quick access list to subresources on RMB 2017-06-05 00:12:19 -03:00
Juan Linietsky 01198cb896 Removed stupid right arrow to edit resource. Now simply click it.. 2017-06-04 20:35:45 -03:00
George Marques 18d7ab21df
Update window size property names for editor run 2017-06-04 19:55:24 -03:00
toger5 c33eff4bf9 project manager, fixed siing of sort button 2017-06-04 13:54:19 -07: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
Andreas Haas d58a58402e Merge pull request #8971 from noshyaar/pr-help
EditorHelp: Help>Class now switch to script editor
2017-06-01 21:04:11 +02:00
Poommetee Ketson db439308e6 About: add contributors list 2017-06-01 18:15:15 +07:00
Ferenc Arn 6a9c990da7 Add ETC1/ETC2 compression support though etc2comp.
Remove rg-etc1 code. Also updated travis to use ubuntu 14.04.

Fixes #8457.
2017-05-31 18:59:00 -05:00
Juan Linietsky a134f58fb3 rewritten PBR implementation to make it friendlier with Blender 2017-05-31 20:29:56 -03:00
Poommetee Ketson ef7d1b1571 EditorHelp: Help>Class now switch to script editor 2017-05-31 23:54:54 +07:00
Juan Linietsky 5567e898d1 Several fixes related to PBR and Environment 2017-05-30 08:56:19 -03: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
Rémi Verschelde c814d65fae Merge pull request #8966 from voithos/path2d-bezier-handle-fix
Fix moving path controls in edit mode.
2017-05-28 10:04:56 +02:00
Rémi Verschelde 8125bbba59 Merge pull request #8968 from noshyaar/pr-bug2
CreateDialog: fix activating recent item creates node selected in search result
2017-05-28 09:29:51 +02:00
Poommetee Ketson db64fcdd5f CreateDialog: fix activating recent item creates node selected in search result 2017-05-28 13:40:08 +07:00
Poommetee Ketson 9fb90d7aea CreateDialog: select root if search exactly match 2017-05-28 12:53:11 +07: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 d8381ef28f Merge pull request #8956 from mcanders/mcanders/ProfilerInputFix
Fix incorrect input event reference in editor_profiler.cpp
2017-05-27 11:36:54 +02:00
Rémi Verschelde 9130f0a89f Merge pull request #8955 from mcanders/mcanders/AnimationEditorInputFix
Fix incorrect input event reference in animation_editor.cpp
2017-05-27 11:35:48 +02:00
Rémi Verschelde 94edf16272 Merge pull request #8929 from nunodonato/themecolors
Added color presets for easy theme switching
2017-05-27 11:25:43 +02:00
Rémi Verschelde 2b25147450 Merge pull request #8928 from nunodonato/helpmenu
Added an help menu
2017-05-27 11:25:09 +02:00
Carter Anderson 49c00bd19b Fix incorrect input event reference in editor_profiler.cpp 2017-05-27 04:17:05 -05:00
Carter Anderson 3b05f2c74f Fix incorrect input event reference in animation_editor.cpp 2017-05-27 04:05:15 -05: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 fa5aa11898 Added color presets for easy theme switching
Also tweaked the default colors (darker and less satured)
2017-05-26 17:16:15 +01: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
Rémi Verschelde ef66f8451c Merge pull request #8901 from tagcup/path_editor_plugin
Revive PathEditorPlugin.
2017-05-26 07:58:13 +02: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
Rémi Verschelde 6a332b3575 Merge pull request #8895 from nunodonato/newdefaultcolors
Improved default colors for the new theme
2017-05-25 08:40:11 +02:00
Rémi Verschelde cda7ced681 Merge pull request #8891 from nunodonato/newmenu
Join text menus on the top-left, move shortcut buttons to new locations (Preliminary work towards achieving the changes discussed in #8865.)
2017-05-25 08:39:19 +02:00
Rémi Verschelde 6d0809b095 Merge pull request #8869 from Hinsbart/errors
Fix errors on engine startup.
2017-05-25 08:37:48 +02: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
Nuno Donato 78781355ac Join text menus on the top-left, move shortcut buttons to new location 2017-05-24 22:08:07 +01:00
Nuno Donato 5c65547804 Improved default colors for the new theme
Colors inspired from solarized themes.
Also moved the theme settings to the Interface category.
2017-05-24 21:41:56 +01:00
George Marques 86ef71fc95
Fix crash when interacting with the 2d editor 2017-05-23 11:03:17 -03:00
Rémi Verschelde a77e53b0a5 Merge pull request #8872 from volzhs/editor-theme-lineedit
Fix disabled style of LineEdit
2017-05-23 08:42:52 +02:00
volzhs de9fb136b1 Fix disabled style of LineEdit 2017-05-23 14:36:07 +09:00
Andreas Haas 4d8e45de17
Fix errors on engine startup.
Fixes a bunch of the most spammy console errors introduced by recent refactorings:

- `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead.
- `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one.
- Some methods have been moved from `Texture` to `Image`, but the old bindings were still there.
- A few `name == ""` errors related to duplicating nodes.
2017-05-22 20:50:59 +02:00
Rémi Verschelde ab938a930f Merge pull request #8863 from volzhs/editor-theme-new-node
Show description box on create new node window
2017-05-22 15:17:07 +02:00
Rémi Verschelde 712fcbebfb Merge pull request #8861 from volzhs/editor-theme-filedialog
Show disabled item with proper color on FileDialog of editor theme
2017-05-22 15:16:39 +02:00
volzhs fab3c4308c Show description box on create new node window 2017-05-22 21:39:10 +09:00
volzhs ea78bcbe60 Show disabled item with proper color on FileDialog of editor theme
Fix #8635
2017-05-22 20:07:13 +09: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 871b6b5517 Merge pull request #8716 from Hinsbart/import-plugins
Bring back EditorImportPlugin
2017-05-18 13:08:07 +02:00
Rémi Verschelde 787dad5ac4 Adapt tutorials (Godot Docs) icon to new design 2017-05-17 21:22:01 +02:00
Rémi Verschelde 519df0d34d Use new Godot icon consistently everywhere 2017-05-17 19:53:59 +02:00
Rémi Verschelde c3baf5eb3c Fix two typos from previous commit
Also cleanup comments on variant types.
2017-05-17 18:45:56 +02:00
Juan Linietsky 98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
Rémi Verschelde 76289b5d5a Merge pull request #8761 from noshyaar/pr2
AssetInstaller: fix toggling dir bug, scan after install
2017-05-15 08:01:32 +02:00
Rémi Verschelde 2065d30414 Merge pull request #8717 from damianday/master
Fix natural sorting order in EditorFileDialog, FileDialog and EditorFileSystemDirectory
2017-05-15 07:54:02 +02:00
Poommetee Ketson 3ee1952e39 AssetInstaller: fix toggling dir bug, scan after install 2017-05-14 20:23:28 +07:00
Rémi Verschelde e883cdafa6 Merge pull request #8719 from Hinsbart/settings_case
Project Settings: Use capitalized properties.
2017-05-12 18:23:45 +02:00
Rémi Verschelde 14989caf14 Merge pull request #8702 from josempans/bug_fixing
Fix click area for bool parameter
2017-05-12 18:19:43 +02:00
Rémi Verschelde 5e318493d1 Merge pull request #8699 from Faless/ipv6_disabled
Fix Editor/Debugger connection problems.
2017-05-12 18:19:24 +02:00
Damian Day f2564ca97f Fix natural sorting order in EditorFileDialog, FileDialog and EditorFileSystemDirectory
Make EditorFileDialog, FileDialog and EditorFileSystemDirectory alphanumerical sorting more natural

Added a new method 'naturalnocasecmp_to' and comparator 'NaturalNoCaseComparator' to String.

Fixes #8712.
2017-05-12 13:02:25 +01:00
Andreas Haas c04604461d
Bring back EditorImportPlugin
This adds a new implementation of the EditorImportPlugin class, allowing to leverage the new importing system via tool scripts.
Will be especially useful when used together with GDNative, to support formats like fbx :)
2017-05-12 12:46:25 +02:00
Andreas Haas 162068640b Project Settings: Use capitalized properties.
There's been some inconsistency between the ProjectSettings and EditorSettings:
One would use "snake_case_properties", the other "Capitalized Properties".

This fixes that by also using capitalized properties for the project settings.
(It's actually the default, so the line setting it to false was just removed..)


Was there a strong reason for using snake_case here in the first place?
2017-05-11 22:54:54 +02:00
Jose M Pan 02f02972e8 Fix click area for bool parameter
This fixes the issue #8551: VisualScript: can't change bool parameter in
function call
2017-05-09 14:35:48 -03:00