Commit graph

5185 commits

Author SHA1 Message Date
Rémi Verschelde
931f7d0ebf
Merge pull request #31754 from aole/node-selection-issue-on-node-create-dialog
Fix selecting recent node in CreateDialog
2019-08-30 08:50:24 +02:00
Rémi Verschelde
208dd5b4a6 i18n: Sync translation template with current source 2019-08-29 15:55:33 +02:00
Hugo Locurcio
ef9f234d2b
Tweak the editor window dimming intensity, remove dim fade animation
The fade animation tended to give the editor a "sluggish" feel
when running at lower FPS (which is common in heavy 3D scenes),
so it's probably a good idea to remove it.

This also makes dimming less intense (50% instead of 60%).
2019-08-29 15:54:08 +02:00
Rémi Verschelde
00ec90474c i18n: Sync translations with Weblate
Adds templates for Basque, Irish and Odia.
2019-08-29 15:38:52 +02:00
Hugo Locurcio
2d6033c1a8
Improve more light theme colors in the editor for better readability
This also makes the "pressed icon" color easier to distinguish
on a light theme.

This closes #31763.
2019-08-29 15:11:23 +02:00
Bhupendra Aole
a8a293832e Fix selecting recent node in CreateDialog
If the node name matches exactly as the search, the node should be selected.
This also fixes when the user clicks on recent nodes.

Fixes #24044
2019-08-29 09:07:57 -04:00
Rémi Verschelde
52024c0e90 Android: Extract libs from pre-built APKs when installing build template
Otherwise we would need to include all of them in android_source.zip,
which means building the zip after all libs have been built by SCons
(so it would have to be done via gradle or a manual script).

By extracting it from the pre-built APKs, we save some disk space in
templates archives too.
2019-08-29 13:22:20 +02:00
Rémi Verschelde
b1f294b3ac Android: Improve dialogs about custom build template
The language didn't make it clear that it's installing a *source* template
to the project folder, for later use when compiling custom APKs.

Fixes #28736.
2019-08-29 13:22:20 +02:00
Rémi Verschelde
a6b094cdfc
Merge pull request #31748 from Calinou/add-project-description
Add a project description setting
2019-08-29 11:09:28 +02:00
Rémi Verschelde
65d5003bce
Merge pull request #31611 from Calinou/animation-editor-hsize-cursor
Change mouse cursor when hovering a resize area in the animation editor
2019-08-29 08:50:18 +02:00
Rémi Verschelde
94805cb0bc
Merge pull request #31755 from YeldhamDev/assetlib_minor_cleanup
Minor cleanup of the AssetLib's asset dialog
2019-08-29 08:42:45 +02:00
Michael Alexsander Silva Dias
edc3600560 Minor cleanup of the AssetLib's asset dialog 2019-08-29 02:37:44 -03:00
Michael Alexsander Silva Dias
dd511c411b Major enhancements for the group editor 2019-08-28 21:26:00 -03:00
Hugo Locurcio
5bd01bf637
Add a project description setting
The description is displayed as a tooltip when hovering the project
in the Project Manager. It can span multiple lines.

This partially addresses #8167.
2019-08-28 22:34:29 +02:00
Michael Alexsander Silva Dias
6ce2701abe AssetLib minor fixes and enhancements 2019-08-28 01:36:09 -03:00
Rémi Verschelde
c59da91aad
Merge pull request #31718 from sparkart/fix_projectmanager_keyup
Fixes Keyup Navigation in Project Manager
2019-08-27 20:24:35 +02:00
Rémi Verschelde
d8de8d5e34
Merge pull request #31722 from Calinou/assetlib-improve-image-loading-speed
Improve image loading performance in the asset library
2019-08-27 20:19:17 +02:00
Hugo Locurcio
89c13c3ae9
Display a "broken file" icon for missing images in the asset library
This partially addresses #31683.
2019-08-27 19:45:25 +02:00
Hugo Locurcio
2ed7bf58ba
Improve image loading performance in the asset library
This closes #31614.
2019-08-27 19:41:49 +02:00
Emmanuel Barroga
36e3996677 Fixes Keyup Navigation in Project Manager
This PR fixes the issue of navigation via keyup in the project manager not selecting the first item.
2019-08-27 10:15:37 -07:00
Rasmus Ketelsen
8dfe83406f Added the ability to import scene resources as .tres files 2019-08-27 15:21:20 +02:00
Rémi Verschelde
2f63811c9a
Merge pull request #25656 from bruvzg/macos_multi_instances
[macOS] Add ability to open multiple editor instances and global/dock menu access
2019-08-26 22:04:37 +02:00
Rémi Verschelde
2b202f3dd0
Merge pull request #31659 from Klesomik/master
Fix memory leak in Find in Files
2019-08-26 22:03:44 +02:00
Rémi Verschelde
5883f912b3
Merge pull request #31676 from KoBeWi/this_shader_is_a_history
Clear undo history on shader load
2019-08-26 22:02:53 +02:00
Klesomik
d3c879fe1b Memory leak fixed
In some functions in editor/find_in_files.cpp was detected a memory leak
DirAccess* and FileAccess* were replaced by DirAccessRef and FileAccessRef
DirAccessRef and FileAccessRef are just wrappers for DirAccess* and FileAccess*

Fixes for issue #31659
2019-08-26 20:48:10 +03:00
Rémi Verschelde
bf8322376c
Merge pull request #31674 from dankan1890/drag&drop_tileset
Added drag and drop to the tileset plugin.
2019-08-26 15:50:25 +02:00
bruvzg
db6d4352ea
[macOS] Add methods to modify global and dock menus. Add ability to open multiple editor/project manager instances, recent/favourite project list to project manager dock menu and opened scene list to editor dock menu. 2019-08-26 16:45:49 +03:00
Tomasz Chabora
766b27662a Clear undo history on shader load 2019-08-26 15:15:29 +02:00
Rémi Verschelde
816ddd7817
Merge pull request #31556 from Chaosus/gles2_inverse
Implemented inverse shader function to GLES2
2019-08-26 13:52:03 +02:00
Rémi Verschelde
1222df0ad0
Merge pull request #31585 from 2shady4u/removeguides
Added button/shortcut for removing all guides
2019-08-26 13:51:10 +02:00
Rémi Verschelde
f6984e8058
Merge pull request #31615 from Calinou/assetlib-improve-loading
Improve loading UX in the asset library
2019-08-26 12:05:11 +02:00
dankan1890
1f560c4679 Added drag and drop to the tileset plugin. 2019-08-26 11:15:19 +02:00
Yuri Roubinski
ac4e6f0041 Fix _get_description param name (visual shaders) 2019-08-25 13:06:16 +03:00
Rémi Verschelde
0d37f198f5
Merge pull request #31628 from merumelu/treeitem-icon-modulate
Tree: fix and expose icon modulation
2019-08-25 10:49:26 +02:00
Yuri Roubinski
1d2e5f281e Fixes for visual shader member filter 2019-08-25 11:01:42 +03:00
Yuri Roubinski
494ea78610 Small performance fix for preview in visual shader 2019-08-25 09:22:09 +03:00
Yuri Roubinski
7f350a2c71 Enhanced preview for a visual shader to show errors 2019-08-25 08:42:21 +03:00
shaderbeast
c6fb6a6a21 Added button/shortcut for removing all guides
Added undo/redo


Correctly added has_meta
2019-08-24 22:58:16 +02:00
merumelu
eac0af5892 Tree: fix and expose icon modulation 2019-08-24 17:37:22 +02:00
Hugo Locurcio
f524dc5da6
Improve loading UX in the asset library
The asset library will now fade when loading pages instead
of displaying a progress bar, which is a more common design pattern
when browsing an online resource's pages.

A "Loading..." text will be displayed before the first page loads.
2019-08-24 03:08:52 +02:00
Hugo Locurcio
bd05d0e71b
Change mouse cursor when hovering a resize area in the animation editor
This also scales the default width of the track name column
on hiDPI displays.
2019-08-23 23:00:38 +02:00
Hugo Locurcio
9eb10f1e4a
Add an editor_description property to Node for documentation purposes
It is implemented using editor-only metadata, in a way similar to
edit locking or Position2D gizmo extents.

This closes #2082.
2019-08-23 15:53:07 +02:00
Rémi Verschelde
2a855a068a
Merge pull request #31589 from Chaosus/minimap_enabled
Make code minimap to be visible by default
2019-08-23 09:38:49 +02:00
Rémi Verschelde
dd6388d3f6
Merge pull request #31588 from Calinou/editor-help-add-horizontal-margins
Add horizontal margins to the editor help based on width
2019-08-23 09:38:37 +02:00
Rémi Verschelde
0cff5d0b30
Merge pull request #30833 from sparkart/fix_inspector_clear_remote_node
Fix Clearing Inspector for Remote Node
2019-08-23 09:13:06 +02:00
Rémi Verschelde
73f1f9b44f
Merge pull request #31586 from SonerSound/issue_31533
Export path is the only path to be saved as a relative path
2019-08-23 08:34:03 +02:00
Rémi Verschelde
2477d414a1
Merge pull request #31111 from Xrayez/script-templates-project
Allow to define and load script templates per project
2019-08-23 08:24:00 +02:00
Rémi Verschelde
739cbf45c3
Merge pull request #31569 from SaracenOne/plugin_shutdown_fix
Fix an exception when trying to close down editor with plugins using autoload singletons
2019-08-23 08:19:29 +02:00
Rémi Verschelde
9262ad45d6
Merge pull request #31548 from Calinou/project-manager-improve-missing
Improve the display of missing projects in the Project Manager
2019-08-23 08:17:27 +02:00
Yuri Roubinski
db7bbbdbc7 Make code minimap to be visible by default 2019-08-23 08:42:15 +03:00
Hugo Locurcio
e564bffd90
Add horizontal margins to the editor help based on width
This decreases the number of characters per line, and therefore
helps make the editor help more readable.
2019-08-23 01:42:29 +02:00
SonerSound
326f856006 Export path is the only path to be saved as a relative path
Also reverts 90b2415343
2019-08-22 22:20:15 +01:00
Andrii Doroshenko (Xrayez)
f013596760 Allow to define and load script templates per project
Previously it was only possible to create custom script templates per
editor instance which could lead to certain name collisions, but now one
can create such templates per project tailored for specific use cases.

The default path to search for custom script templates is defined in
project settings via `editor/script_templates_search_path` setting as
`res://script_templates` path, yet this can be configured per project.

Templates have at most two origins now:

1. Project-specific, defined in `ProjectSettings`, for instance:
    - res://script_templates/
2. Editor script templates, for instance:
    - %APPDATA%/Godot/script_templates/

As script templates can have the same name over different paths,
the override mechanism was also added, enabling project-specific
templates over the editor ones.
2019-08-22 20:51:30 +03:00
Saracen
daf443bcbc Fix an exception when trying to close down editor with plugins enabled. 2019-08-22 16:30:55 +01:00
Hugo Locurcio
0271a5f1d8
Improve the display of missing projects in the Project Manager
- Use a "broken file" icon instead of a "folder" icon for missing
  projects
- Fade out the project icon for missing projects
- Use transparent modulate for grayed out projects as it results in
  better-looking text
- Disable the "Edit", "Run" and "Rename" buttons if at least
  one missing project is selected
- Make double-clicking or pressing Enter do nothing when a missing
  project is selected
- Change the "Open in FileSystem" tooltip accordingly for missing
  projects
- Don't connect the "Open in FileSystem" pressed signal to make the
  button ineffective for missing projects
- Name missing projects as "Missing Project" instead of
  "Unnamed Project"
2019-08-22 17:06:02 +02:00
Michael Alexsander Silva Dias
c5b45c9f09 Cleanup and minor changes in FileSystem Dock 2019-08-22 10:24:51 -03:00
Rémi Verschelde
7978e9071b
Merge pull request #31302 from Paulb23/issue_4881_code_minimap
Add minimap to text_edit
2019-08-22 13:15:43 +02:00
Rémi Verschelde
2e5ba32b4b
Merge pull request #31545 from groud/add_smart_snapping_display
Displays smart snapping guides when snapped
2019-08-22 13:12:09 +02:00
Rémi Verschelde
4ab4d4a59b
Merge pull request #31489 from iwek7/removeRenameRootOption
Showing only working options in filesystem dock menu
2019-08-22 11:56:48 +02:00
Rémi Verschelde
d2f5c43ad9
Merge pull request #31502 from thimenesup/patch-1
Expose SceneTreeDock::get_tree_editor() to GDScript
2019-08-22 11:55:49 +02:00
Yuri Roubinski
4dcee2035a Implemented inverse shader function to GLES2 2019-08-22 08:22:49 +03:00
Paulb23
0cea72273f Add minimap to text_edit 2019-08-21 23:48:46 +01:00
Gilles Roudière
692a78db19 Displays smart snapping guides when snapped 2019-08-21 22:15:51 +02:00
Rémi Verschelde
3bd49dabfa
Merge pull request #31535 from KoBeWi/TileMove
Edit TileMap only with TOOL_SELECT
2019-08-21 21:18:39 +02:00
Rémi Verschelde
e132c36261
Merge pull request #31539 from Calinou/improve-editor-strings
Tweak a few strings displayed in the editor for consistency
2019-08-21 21:09:36 +02:00
Tomasz Chabora
9520d9706a Edit TileMap only with TOOL_SELECT 2019-08-21 20:56:15 +02:00
Hugo Locurcio
3ae0306a1f
Tweak a few strings displayed in the editor for consistency 2019-08-21 19:33:29 +02:00
Hugo Locurcio
e1b9004b0f
Rename FileDialog's folder icon custom color to folder_icon_modulate
The custom color introduced in be8d569744
had the same name as the "folder" icon, which could cause conflicts
in the generated documentation.

The new name is also more self-explanatory.
2019-08-21 18:43:01 +02:00
Rémi Verschelde
99980d856b
Merge pull request #29871 from Faless/crypto/initial_pr
More Crypto, SSL server, crt/key as Resource, HashingContext
2019-08-21 18:03:03 +02:00
Fabio Alessandrelli
fc411115f5 Fix Network Editor Settings setup. 2019-08-21 17:12:33 +02:00
Fabio Alessandrelli
ce5a3f56a6 Rewrite StreamPeerSSL with SSLContext helper class
connect_to_stream now accepts optional parameter to specify which
certificates to trust.
Implement accept_stream (SSL server) with key/cert parameters to specify
the RSA key and X509 certificate resources.
2019-08-21 16:59:38 +02:00
Hugo Locurcio
a350fd4a57
Draw 3D collision shape/raycast gizmos in grayscale when disabled
This makes them easier to distinguish from their enabled counterparts,
as is already done in the 2D editor.
2019-08-21 15:32:51 +02:00
iwek7
2b8d65761c Improvements and fixes of filesystem dock 2019-08-21 11:13:50 +02:00
Rémi Verschelde
51def4dab9
Merge pull request #31523 from nekomatata/show-warning-loading
EditorNode::show_warning displays a console warning during project loading
2019-08-21 10:05:24 +02:00
PouleyKetchoupp
a735afac95 EditorNode::show_warning displays a console warning instead of failing during project load
Fixes #31522
2019-08-21 09:05:30 +02:00
Rémi Verschelde
7b37321ae3
Merge pull request #31499 from nekomatata/fix-new-project-metadata
Setting project metadata doesn't fail when project_metadata.cfg doesn't exist
2019-08-21 08:54:32 +02:00
PouleyKetchoupp
b49226e085 Support for file not found in ConfigFile::Load and handle a few specific cases
EditorSettings::set_project_metadata: creates project_metadata.cfg if it doesn't exist
EditorPlugin::get_config: removed (not used)

Fixes #31444
2019-08-21 08:32:55 +02:00
thimenesup
79a4930501
Expose SceneTreeDock::get_tree_editor()
This can be useful for plugins that rely on some signals emitted by it, Like my Networked Scene Editor plugin https://github.com/thimenesup/GodotNetworkedSceneEditor
2019-08-20 18:06:21 +02:00
Rémi Verschelde
bb5bf8ef49
Merge pull request #31498 from KoBeWi/setter_getter_radar
Include setters and getters in help search
2019-08-20 17:11:17 +02:00
Tomasz Chabora
e068fbbb20 Include setters and getters in help search 2019-08-20 15:37:22 +02:00
Rémi Verschelde
a4377ca465
Merge pull request #31356 from Calinou/improve-project-manager-ui
Improve the project manager UI
2019-08-20 12:55:15 +02:00
Rémi Verschelde
e84d83ce78
Merge pull request #31492 from Calinou/file-dialog-color-folders
Use a different color for folder icons in file dialogs
2019-08-20 12:51:31 +02:00
Rémi Verschelde
e6c4ef3455
Merge pull request #31486 from KoBeWi/typos_must_die
Fix various typos and style errors in text
2019-08-20 12:50:12 +02:00
Rémi Verschelde
5d8951764a
Merge pull request #31466 from Calinou/improve-2d-path-editors
Improve the appearance of 2D path editors
2019-08-20 12:45:47 +02:00
Rémi Verschelde
4e760096a9
Merge pull request #31443 from Calinou/editor-use-minimum-window-size
Define a minimum window size in the editor and project manager
2019-08-20 12:42:58 +02:00
Hugo Locurcio
be8d569744
Use a different color for folder icons in file dialogs
This makes them easier to distinguish from files for quick
visual grepping.

This can also be used in projects by setting the FileDialog "folder"
color. The default value (`Color(1, 1, 1)`) has no visual impact,
for compatibility with existing projects.
2019-08-20 00:10:27 +02:00
Tomasz Chabora
7e075029c8 Fix various typos and style errors in text 2019-08-19 20:43:42 +02:00
Fabio Alessandrelli
c19871af6d Move CryptoCore to it's own folder.
Crypto classes will be placed in core/crypto.
2019-08-19 16:31:05 +02:00
Hugo Locurcio
558e93f069
Improve the appearance of 2D path editors
- Add new handle icons for path/polygon editors
- Add smooth path point icons and curve tangent icons
- Use a gray color for tangent lines in the Path2D and Path editors
- Use antialiasing for Path2D lines
2019-08-18 22:27:01 +02:00
Michael Alexsander Silva Dias
c19a66d72f Simplify structure of preview text in visual shader editor 2019-08-18 13:27:08 -03:00
Rémi Verschelde
ef37f00525
Merge pull request #31453 from Chaosus/vs_code_preview
Added code preview to visual shader
2019-08-18 17:32:49 +02:00
Rémi Verschelde
9cd58b6916
Merge pull request #31449 from Chaosus/vs_global_expression
Added global expressions to visual shaders
2019-08-18 17:31:39 +02:00
Yuri Roubinski
808e44df6d Added code preview to visual shader 2019-08-18 17:28:19 +03:00
Rémi Verschelde
2920c8fbaa
Merge pull request #31447 from Calinou/spatial-editor-use-shortcut-tooltips
Use shortcut tooltips in the spatial editor
2019-08-18 16:07:05 +02:00
Rémi Verschelde
fb5e8b509b
Merge pull request #31448 from Calinou/improve-snap-object-to-floor
Improve "Snap Object to Floor" functionality
2019-08-18 11:07:12 +02:00
Rémi Verschelde
d154e55f45
Merge pull request #31442 from KoBeWi/grounded_grabber
Update Slider grabber position when using mouse wheel
2019-08-18 11:03:28 +02:00
Rémi Verschelde
7f7e0f9dfc
Merge pull request #31439 from YeldhamDev/node_dock_minor_improvements
Minor improvements to the Node dock
2019-08-18 11:02:50 +02:00
Rémi Verschelde
5c853a45e6
Merge pull request #31423 from Calinou/improve-node-signal-group-tooltip
Improve the scene tree signals/groups tooltip
2019-08-18 10:55:16 +02:00
Yuri Roubinski
e3b43771aa Added global expressions to visual shaders 2019-08-18 08:49:56 +03:00
Michael Alexsander Silva Dias
96a256557c Minor improvements to the Node dock 2019-08-17 23:05:58 -03:00
Hugo Locurcio
78878fbc97
Improve "Snap Object to Floor" functionality
- Display an error message if no selected nodes could be snapped
- Only register an undo/redo action if at least one node
  could be snapped
- Increase the maximum snapping height to 20
- Increase the negative snapping limit to 0.2
2019-08-18 01:50:25 +02:00
Hugo Locurcio
35ad0475c3
Use shortcut tooltips in the spatial editor
This makes the tooltips display the correct shortcuts in case
they are changed, as is done automatically by `set_shortcut()`.

Button shortcuts are now used to apply shortcut actions,
which makes for cleaner code.
2019-08-17 23:39:28 +02:00
Rémi Verschelde
cc9f2a2d8b
Merge pull request #31401 from aaronfranke/no-init-scripts
Allow plugins to not have an init script
2019-08-17 22:09:17 +02:00
Hugo Locurcio
c0eee235c4
Define a minimum window size in the editor and project manager
This prevents most UI elements from overlapping or being cut off
as a result of the window being too small.

This closes #20669.
2019-08-17 21:56:59 +02:00
Tomasz Chabora
8a0e6e23a7 Update Slider grabber position when using mouse wheel 2019-08-17 21:12:05 +02:00
Hugo Locurcio
c62302a432
Improve the scene tree signals/groups tooltip
The tooltip now displays the number of connections and groups
that are assigned to the hovered node.
2019-08-17 14:20:16 +02:00
Hugo Locurcio
cef7ca4abb
Improve the project manager UI
This incorporates many suggestions from #31342.

This also revises the search behavior to be simpler and more efficient:

- Searching will now search in both the project name and path. A project
  will be displayed if either of these match the search term.
- If the search term contains a "/", the whole path will be used to match
  the search term. Otherwise, only the last path component will be used.
2019-08-17 13:48:25 +02:00
Rémi Verschelde
d3153c28f0 Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'
The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is
(conditionally defines the error message).

There are a few ERR_EXPLAINC calls for C-strings where String is not included
which can stay as is to avoid adding additional _MSGC macros just for that.

Part of #31244.
2019-08-17 13:31:22 +02:00
Braden Bodily
71d71d55b5 Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages

Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?),
core/os/memory.cpp,
drivers/png/png_driver_common.cpp,
drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
2019-08-17 12:33:15 +02:00
Rémi Verschelde
40640a01dc
Merge pull request #31424 from Calinou/improve-animation-editor-timeline
Improve timeline drawing in the animation editor
2019-08-17 12:05:42 +02:00
Rémi Verschelde
fe8f73c939
Merge pull request #31422 from sparkart/attachscript_by_scripteditor
Adds Attaching Script via Script Editor
2019-08-17 11:55:48 +02:00
Rémi Verschelde
be42f1bf6c
Merge pull request #31399 from Calinou/box-selection-add-borders
Add an outline to box selection rectangles for better visibility
2019-08-17 11:26:05 +02:00
Rémi Verschelde
c7a7163dff
Merge pull request #31398 from KoBeWi/1000_ways_to_make_scene
Allow to create scene from FileSystem dock
2019-08-17 11:25:33 +02:00
Hugo Locurcio
a341c65f65
Improve timeline drawing in the animation editor
A small arrow-like icon is now drawn at the top of the timeline.
The timeline is now also wider as to be more visible.
2019-08-17 00:20:21 +02:00
Emmanuel Barroga
c9445a0faa Adds Attaching Script via Script Editor
Allows you to attach a script by dragging the name in the script list of the script editor to the node in the scene tree.
2019-08-16 12:22:18 -07:00
Aaron Franke
ceb61fb784
Allow plugins to not have an init script 2019-08-15 17:52:07 -04:00
Hugo Locurcio
108f9646f5
Add an outline to box selection rectangles for better visibility
This also refactors selection box color definitions
to avoid repetition.
2019-08-15 22:27:32 +02:00
Tomasz Chabora
cedee8281b Allow to create scene from FileSystem dock 2019-08-15 19:47:21 +02:00
Hugo Locurcio
bfce99bc98
Set the low processor mode sleep editor settings to require a restart
These settings are only read when the editor starts.
2019-08-15 19:14:14 +02:00
Rémi Verschelde
b24228e03b
Merge pull request #31391 from Calinou/improve-particles-emission-editor-errors
Improve error reporting in the Particles emission point creation dialog
2019-08-15 18:17:54 +02:00
Rémi Verschelde
983e348fe9
Merge pull request #31387 from Daw11/assets-image-autoselect
Automatically select the first image of the assets page
2019-08-15 18:16:55 +02:00
Rémi Verschelde
97dcdd1a6b
Merge pull request #31381 from sparkart/fix_projectmanager_buttons
Fixes ProjectManager Buttons Not Updating
2019-08-15 18:13:42 +02:00
Hugo Locurcio
63d45136dc
Improve error reporting in the Particles emission point creation dialog
- Display an error message if the selected node doesn't
  extend from Spatial
- Display the selected node name in error messages to provide
  additional context when relevant
- Clarify error messages
- Use the standard editor warning dialog
2019-08-15 16:01:39 +02:00
Davide Busterna
7434966f10 Automatically select the first image of the assets page 2019-08-15 13:43:00 +02:00
Emmanuel Barroga
1f5dc0ea3b Fixes ProjectManager Buttons Not Updating
Fixes buttons in ProjectManager not updating to disabled after deleting projects.
2019-08-14 18:30:42 -07:00
Rémi Verschelde
d998daeaa7
Merge pull request #31375 from Calinou/add-auto-editor-font-hinting
Add an "Auto" editor font hinting setting to match OS font rendering
2019-08-15 02:54:29 +02:00
Michael Alexsander Silva Dias
22e9544582 Fix matches result in the code search not appearing when the quantity is 0 2019-08-14 20:43:26 -03:00
Hugo Locurcio
c940d29973
Add an "Auto" editor font hinting setting to match OS font rendering
The "Auto" setting picks the font hinting setting that best matches
the operating system's font rendering settings.
This font hinting setting is now the default.
2019-08-14 15:57:07 +02:00
Rémi Verschelde
188a10df8b
Merge pull request #31263 from Chaosus/vs_plugin
Plugin support for visual shaders
2019-08-14 15:52:21 +02:00
Yuri Roubinski
33e9fce1bb Plugin support for visual shaders 2019-08-14 15:52:27 +03:00
Rémi Verschelde
6c607c3564
Merge pull request #31266 from IAmActuallyCthulhu/pr/remove-redundant-author-comments
Remove redundant author doc comments
2019-08-14 13:45:54 +02:00
Tomasz Chabora
bd9a0a3236 Fix Project Manager not remembering sorting option 2019-08-14 13:09:04 +02:00
Rémi Verschelde
1387c683d4
Merge pull request #31329 from KoBeWi/vscode_ftw
Tweak the behavior of search/replace bar
2019-08-14 11:42:18 +02:00
Rémi Verschelde
8995d95da0
Merge pull request #31347 from neikeq/monodevelop-addin
C#: Add Ide Connection library and server for the editor
2019-08-14 11:39:41 +02:00
Rémi Verschelde
6fedb2bf28
Merge pull request #31362 from Calinou/icons-use-lanczos-filtering
Use Lanczos filtering for variable-sized images such as project icons
2019-08-14 11:36:54 +02:00
Emmanuel Barroga
e89c4c22de Add scrollwheel input to spin slider
Adds the ability to adjust the editor's spin slider using the mouse scrollwheel.
2019-08-13 22:10:10 -07:00
Rémi Verschelde
5ff2688064
Merge pull request #31357 from YeldhamDev/theme_editor_fixup_fixup
Regression fixup to the theme editor
2019-08-14 00:57:13 +02:00
Hugo Locurcio
8f2bcfd909
Use Lanczos filtering for variable-sized images such as project icons
This results in better-looking icons with less artifacts
induced by downscaling.
2019-08-13 22:08:23 +02:00
Rémi Verschelde
fcec358840
Merge pull request #31355 from nekomatata/fix-select-prev-freeze
Fixed freeze on search previous
2019-08-13 20:47:45 +02:00
Michael Alexsander Silva Dias
b7c2bcff76 Regression fixup to the theme editor 2019-08-13 15:43:07 -03:00
PouleyKetchoupp
6a842fbb6d Fixed freeze on search_prev (missing condition for searching from a previous result, now the same as search_next)
Fixes #31328
2019-08-13 19:42:42 +02:00
Tomasz Chabora
72c40c788f Tweak the behavior of search/replace bar 2019-08-13 17:18:13 +02:00
Rémi Verschelde
f8574da2c2
Merge pull request #31338 from Calinou/reorganize-menus
Reorganize various menus for consistency and conciseness
2019-08-13 16:52:42 +02:00
Michael Alexsander Silva Dias
95a8b2b5d9 Make the script search have a proper matches counter 2019-08-13 09:29:49 -03:00
Rémi Verschelde
985955d5b4
Merge pull request #31326 from Calinou/template-manager-disable-download-dev
Only display download buttons in the template manager when available
2019-08-13 13:22:08 +02:00
Hugo Locurcio
9e1c23a353
Reorganize various menus for consistency and conciseness
- Clean up the recent scripts dialog to match the recent scenes dialog
- Add "..." at the end of shortcuts that cause a modal dialog to appear

This closes #31148.
2019-08-13 11:52:10 +02:00
Hugo Locurcio
5c29b063d1
Only display download buttons in the template manager when available
Development builds don't have official export templates available.
Clicking the "Download" or "Re-Download" button resulted in an error
while fetching the list of mirrors.

This hides the download-related features when using a development build.
2019-08-13 11:39:18 +02:00
Rémi Verschelde
a476a5b71e
Merge pull request #31317 from sparkart/master
Fix Right-Click Menu Deselecting  Edits Content
2019-08-13 08:25:38 +02:00
Michael Alexsander Silva Dias
3d86ef74e7 Add "Find in Files..." to the text editor 2019-08-12 11:49:45 -03:00
Rémi Verschelde
2b11594766
Merge pull request #31319 from Xrayez/script-lang-icons
Display language icons in script create dialog
2019-08-12 16:21:24 +02:00
Andrii Doroshenko (Xrayez)
bd9852b982 Display language icons in script create dialog 2019-08-12 15:31:03 +03:00
Rémi Verschelde
37a16fee05 Export: Remove temp files from cache after export
So far we left most temporary files lying around, so this attempts to
fix that.

I added a helper method to DirAccess to factor out the boilerplate of
creating a DirAccess, checking if the file exists, remove it or print
an error on failure.
2019-08-12 13:31:59 +02:00
Emmanuel Barroga
26c5bac428 Fix Right-Click Menu Deselecting Edits Content
Right-clicking a property to open the context menu deselects the text field. This causes the context menu to be useless because it doesn't have anything to edit.
2019-08-12 03:39:27 -07:00
Rémi Verschelde
e23f5e6415
Merge pull request #31315 from fstiewitz/fix-find-in-files-crash
Fix crash on right click in "Find in Files" panel
2019-08-12 12:13:02 +02:00
IAmActuallyCthulhu
82b9557803
Remove redundant author doc comments 2019-08-12 04:26:38 -05:00
Rémi Verschelde
b18747af4b
Merge pull request #31179 from KoBeWi/code_editor_magic
Add Evaluate Selection option to Script Editor
2019-08-12 11:19:26 +02:00
Fabian Stiewitz
f330add2b8 fix(find_in_files): crash when selecting with RMB
in replace mode, if no search result has been selected and RMB is pressed on a checkbox, the editor
crashes in editor/find_in_files.cpp:712 because item is NULL
2019-08-12 11:05:06 +02:00
Rémi Verschelde
6c8434a98d
Merge pull request #31251 from YeldhamDev/text_editor_goto_full
Move "Go to Line..." from "Edit" to "Go To" in text editor
2019-08-12 10:00:47 +02:00
Rémi Verschelde
72670788bb
Merge pull request #31249 from Calinou/tweak-multiline-text-popup-size
Tweak the size of the multiline text edit popup dialog
2019-08-12 10:00:19 +02:00
Rémi Verschelde
a1dde73372
Merge pull request #31247 from YeldhamDev/theme_editor_fixup
Minor fixups to the theme editor
2019-08-12 09:59:29 +02:00
miwanczuk
7254284efd Adds support for undo/redo for in-editor color picker 2019-08-10 00:46:31 +02:00
Michael Alexsander Silva Dias
68ce87fbab Move "Go to Line..." from "Edit" to "Go To" in text editor 2019-08-09 17:23:42 -03:00
Hugo Locurcio
ca42541020
Tweak the size of the multiline text edit popup dialog
This caps its size on large displays. This in turn prevents lines from
becoming very long, which could hamper text readability.
2019-08-09 22:03:25 +02:00
Michael Alexsander Silva Dias
1c872c75db Minor fixups to the theme editor 2019-08-09 16:26:43 -03:00
Tomasz Chabora
9fbba73dd5 Improve node Change Type option 2019-08-09 16:31:31 +02:00
Rémi Verschelde
5f77e6958d
Merge pull request #31225 from YeldhamDev/editor_help_matches
Show matches found when searching the docs
2019-08-09 10:17:50 +02:00
Rémi Verschelde
76d1183178
Merge pull request #31223 from creikey/fix-csg-crash
Button object used after pressed is called
2019-08-09 10:10:11 +02:00
Rémi Verschelde
24a6b3f382
Merge pull request #31222 from YeldhamDev/editplugins_cosmetic_changes
Minor cosmetic changes in some editor plugins
2019-08-09 10:07:14 +02:00
Rémi Verschelde
6bb2717005
Merge pull request #31220 from YeldhamDev/goto_single_menu
Move "Go to Function/Line" to "Go To" menu
2019-08-09 09:38:10 +02:00
Michael Alexsander Silva Dias
790f9f628c Show matches found when searching the docs 2019-08-09 04:09:22 -03:00
Rémi Verschelde
806c315a05
Merge pull request #31193 from creikey/cpuparticles-gizmo
Add particles icon to CPUParticles
2019-08-09 09:06:49 +02:00
Cameron Reikes
c69ff6833c Button object used after pressed is called
- by queueing for deletion node can call own cleanup methods
2019-08-08 19:34:23 -07:00
Michael Alexsander Silva Dias
eeb9268800 Minor cosmetic changes in some editor plugins 2019-08-08 23:22:33 -03:00
Michael Alexsander Silva Dias
31584dd511 Move "Go to Function/Line" to "Go To" menu 2019-08-08 22:36:51 -03:00
Cameron Reikes
345fcb96a2 Add particles icon to CPUParticles 2019-08-08 16:28:01 -07:00
Rémi Verschelde
460226cb71
Merge pull request #31042 from iwek7/fixColorPickerInEditor
Fixes color picker in code editor - it now only changes one color
2019-08-08 22:03:14 +02:00
Rémi Verschelde
19f41bd224
Merge pull request #31212 from YeldhamDev/script_editor_icon_update
Update icons in script editor when theme changes
2019-08-08 21:59:49 +02:00
Yuri Roubinski
6c8a55aa0d Fix incorrect search member in visual shaders 2019-08-08 22:19:42 +03:00
iwek7
e7b07e1e58 Fixes color picker in code editor - now it only changes one color 2019-08-08 19:12:13 +02:00
Michael Alexsander Silva Dias
7bb7b77a07 Update icons in script editor when theme changes 2019-08-08 13:39:53 -03:00
Rémi Verschelde
f53fdbe108
Merge pull request #31087 from Calinou/editor-improve-light-theme-colors
Improve light theme colors in the editor for better readability
2019-08-08 16:00:52 +02:00
Rémi Verschelde
6362330350
Merge pull request #31178 from Chaosus/vs_copy_between_graphs
Allow copy/paste nodes between vertex/fragment/light modes in vshaders
2019-08-08 13:49:18 +02:00
Rémi Verschelde
67a9f2646b
Merge pull request #31196 from bojidar-bg/31115-asset-library-save-error
Handle all download errors in the asset library
2019-08-08 10:50:39 +02:00
Bojidar Marinov
2b08cc16f1
Handle all download errors in the asset library
Addresses part of #31115
2019-08-08 10:06:26 +03:00
Michael Alexsander Silva Dias
699afca7ef Fix error when going to a text file by clicking in a result from "Find in files" 2019-08-07 23:06:33 -03:00
Tomasz Chabora
282deb9a7a Add Evaluate Selection option to Script Editor 2019-08-08 00:28:33 +02:00
Yuri Roubinski
5e9052fae3 Allow copy/paste nodes between vertex/fragment/light modes in visual shaders 2019-08-07 16:46:47 +03:00
Rémi Verschelde
ba541bceca
Merge pull request #31077 from qarmin/coverity_bugs
Change some code proposed by Coverity and Cppcheck
2019-08-07 13:49:33 +02:00
qarmin
e0b5b21863 Add some code changes/fixes proposed by Coverity and Clang Tidy 2019-08-07 12:54:30 +02:00
Rémi Verschelde
a909efeb12
Merge pull request #31173 from sparkart/search_in_tscn
Fix Find in Files Not Working Properly
2019-08-07 11:56:18 +02:00
Rémi Verschelde
f5f16e57fd
Merge pull request #30804 from hbina/fix_issue_30160
Fixed crash when making subresource unique in inspector dock
2019-08-07 11:43:16 +02:00
Emmanuel Barroga
0d8c7c30a0 Fix Find in Files Not Working Properly
When using the "Find in Files" option to search in non-script files (e.g. .tscn), the search does not work properly.
2019-08-06 23:57:14 -07:00
Rémi Verschelde
78e84c29e6
Merge pull request #31057 from Chaosus/vs_mix_improvements
Some improvements to Mix visual shader function
2019-08-07 08:22:08 +02:00
Hanif Bin Ariffin
befc2c0894 add forgotten calls to inspector_dock->update(...).
I believe many calls to the said function was mistakenly left out leading to InspectorDock having a pointer to deleted values.
As such, this commit introduces many such calls to inspector_dock where I believe is appropriate...
2019-08-06 18:02:36 -04:00
Rémi Verschelde
52cfb5f579
Merge pull request #31121 from willnationsdev/plugin-select-editor
Let EditorPlugins set editor/distraction-free mode
2019-08-06 16:43:49 +02:00
Will Nations
2e3264259b Let EditorPlugins set editor/distraction-free mode 2019-08-06 08:48:00 -05:00
Hugo Locurcio
4a28657cf5
Tweak range steps in the animation editor
This makes the step of the "frame" SpinBox larger, so that clicking
on the SpinBox arrows will make the number increase in a visible manner.
Previously, the full number was being cut off due to the SpinBox
being narrow.

This also makes the "step" SpinBox allow for more precise input.
2019-08-06 12:25:53 +02:00
Yuri Roubinski
d0dc195da8 Some improvements to Mix visual shader function 2019-08-06 08:06:49 +03:00
Hugo Locurcio
8b12498f8b
Improve snapping in the animation editor
Snapping can now be toggled temporarily by holding the Ctrl key.
Toggling timeline snapping is now done with the "Snap" checkbox rather
than by setting the animation's "Step" setting to 0.

The timeline cursor can no longer exit the animation's boundaries
if the animation's "Step" is set to 0.
2019-08-06 01:44:10 +02:00
Rémi Verschelde
fa35a73f0a
Merge pull request #31116 from sparkart/add_quit_shortcut
Add Shortcut Settings for Quitting Editor
2019-08-05 22:02:11 +02:00
Emmanuel Barroga
8e4ae09639 Add Shortcut Settings for Quitting Editor
Adds the ability to change the shortcut keys in Editor Settings for quitting the editor.
2019-08-05 11:53:42 -07:00
merumelu
dcd551bf78 Remove Editor dependency from SceneTree 2019-08-05 19:46:23 +02:00
Rémi Verschelde
4d5534e2e8
Merge pull request #31081 from Calinou/animation-editor-larger-keyframes
Make keyframes easier to select in the animation editor
2019-08-05 16:44:39 +02:00
Yuri Roubinski
43ee35431e Fix opening of sub-resource properties in visual shaders 2019-08-05 17:13:02 +03:00
Rémi Verschelde
7c3805019d
Merge pull request #31085 from sparkart/fix_redundant_navpolygons
Fix Redundant Navigation Polygons
2019-08-05 09:43:35 +02:00
Rémi Verschelde
7d5ad99cde
Merge pull request #31063 from rzllmr/fix-tilemap-order
Fix row-column-swap in TileMap palette
2019-08-05 08:12:14 +02:00
Rémi Verschelde
d9bba94d60
Merge pull request #31053 from aaronfranke/vector2i-cleanup
Some minor Vector2i usage cleanup
2019-08-05 08:08:57 +02:00
Rémi Verschelde
00efb61fbd
Merge pull request #31048 from Calinou/fix-gizmo-size-low-viewport-height
Fix 3D manipulator the gizmo growing too large on small viewports
2019-08-05 08:07:13 +02:00
Hugo Locurcio
1e4398c345
Improve light theme colors in the editor for better readability
This tweaks existing color conversions and adds new conversions
for animation track icon colors.
2019-08-05 01:53:45 +02:00
Emmanuel Barroga
6c83550dfc Fix Redundant Navigation Polygons
When adjusting the vertices of a navigation polygon, the tile editor would create a duplicate navigation polygon.  So each time you made an adjustment, another copy of the polygon would be created.
2019-08-04 16:09:57 -07:00
Hugo Locurcio
6e2c27f84f
Make keyframes easier to select in the animation easier
Keyframe SVG icons are now 10×10 instead of 8×8 (except for
Bezier-related icons). This makes them easier to select
since the empty space is part of the clickable area.

Selected keyframes are now also visually larger to make them
easier to distinguish from unselected keyframes.

This closes #27276.
2019-08-04 20:19:51 +02:00
Ignacio Etcheverry
0b94203a79 C#: Add Ide Connection library and server for the editor
This will be used for communicating between the Godot editor and external IDEs/editors, for things like opening files, triggering hot-reload and running the game with a debugger attached.
2019-08-04 01:57:53 +02:00
rzllmr
653039151a Fix row-column-swap in TileMap palette
Due to the TileSet coordinates using x for columns and y for rows, the
columns are assigned to the rows in the TileMap palette and distort the
order. Thus the default sorting algorithm prioritizing x is replaced
with a custom one prioritizing y.

Fixes #24751
2019-08-03 21:32:13 +02:00
Yuri Roubinski
8a0767d883 Return back spacer for non-expression nodes in visual shader 2019-08-03 18:54:04 +03:00
Aaron Franke
1a06496f45
Some Vector2i usage cleanup
Replace casting Vector2 -> Vector2i -> Vector2 with a simple call to .floor(), and some minor fixes.
2019-08-03 01:11:05 -07:00
Hugo Locurcio
20154d3b2a
Fix 3D manipulator the gizmo growing too large on small viewports
This closes #27112. This closes #19116.
2019-08-03 03:01:32 +02:00
Rémi Verschelde
045ab51ae5
Merge pull request #31033 from Chaosus/shader_button
Added link to docs for shader editor
2019-08-02 16:30:43 +02:00
Yuri Roubinski
770ce20ea3 Added link to docs for shader editor 2019-08-02 17:09:04 +03:00
Tomasz Chabora
b1af799b16 Select found text in Script Editor 2019-08-02 15:00:26 +02:00
Rémi Verschelde
69e6dc9164
Merge pull request #31015 from Calinou/improve-gizmo-axis-colors
Improve the gizmo axis colors and increase the manipulator opacity
2019-08-02 11:22:27 +02:00
Rémi Verschelde
46986321c1
Merge pull request #31001 from KoBeWi/come_back_script
Add Reopen Closed Script option in Script Editor
2019-08-02 11:18:21 +02:00
Hugo Locurcio
d57680cf34
Improve the gizmo axis colors and increase the manipulator opacity
The new colors should make it easier to see the manipulator gizmo.
Highlighted gizmos are now fully opaque (instead of being white),
keeping the color information while a gizmo is highlighted.

This also adds a setting hint for the manipulator gizmo opacity
editor setting.

Axis colors were taken from Blender 2.80.

This partially addresses #16154.
2019-08-01 14:30:35 +02:00
Tomasz Chabora
5718599bd2 Add Reopen Closed Script option in Script Editor 2019-08-01 13:32:30 +02:00
Rémi Verschelde
3a6102a6f7
Merge pull request #31010 from Chaosus/vs_fix_expression
Some visual fixes for Expression node in visual shaders
2019-08-01 10:50:33 +02:00
Chaosus
82e2efe591 Some visual fixes for Expression node 2019-08-01 11:03:23 +03:00
Rémi Verschelde
b755cf1a2d
Merge pull request #31004 from Kanabenki/fix-undo-close-scene
Don't add unsaved scene to previous scenes list when closing a tab
2019-08-01 08:45:36 +02:00
Kanabenki
648313ab8a Don't add unsaved scene to previous scenes list 2019-07-31 23:49:16 +02:00
Chaosus
8b4c538ab2 Expose several GLES3 built-ins to GLES2 2019-07-31 19:00:10 +03:00
Chaosus
f704506807 Implement copy/paste in visual shaders 2019-07-31 12:43:29 +03:00
Silvano Cerza
d8dae84c9a Fixed remote scene tree not collapsing 2019-07-30 15:11:13 +02:00
Rémi Verschelde
7d76f3b393
Merge pull request #30944 from YeldhamDev/bottom_panel_icon_simplify
Make the expand icon in the bottom panel always be the same
2019-07-30 09:27:33 +02:00
Rémi Verschelde
9da24f7e3d
Merge pull request #30938 from nobuyukinyuu/2d-editor-zoom-p1
Changes default canvas_item_editor coarse zoom level from 1.5 to sqrt(2)
2019-07-30 00:57:43 +02:00
Rémi Verschelde
ffab25c95a
Merge pull request #27952 from Kanabenki/undo-close-tab
Add Undo Close Tab option in tabs context menu
2019-07-30 00:26:48 +02:00
nobuyuki_nyuu
3f516622c3 Changes default coarse 2d zoom level from 1.5 to sqrt(2). 2019-07-29 17:12:03 -05:00
Michael Alexsander Silva Dias
d6988b7d2b Make the expand icon in the bottom panel always be the same 2019-07-29 18:08:05 -03:00
Rémi Verschelde
b697121d75
Merge pull request #30895 from clayjohn/gles2-shader-funcs
Added round function to gles2
2019-07-29 22:43:26 +02:00
Rémi Verschelde
10c015b730 i18n: Sync translation template with current source 2019-07-29 21:40:51 +02:00
Rémi Verschelde
1babc23d95 i18n: Sync translations with Weblate 2019-07-29 21:40:01 +02:00
clayjohn
3f25dde6b4 added round function to gles2 2019-07-29 11:17:08 -07:00
Rémi Verschelde
5d172d5d9a
Merge pull request #30918 from Chaosus/fix_crash
Fix filter crash in EditorFileDialog for MeshLib/TileSet conversion
2019-07-29 13:25:11 +02:00
Chaosus
aec53acd7d Fix filter crash in EditorFileDialog for MeshLib/TileSet conversion 2019-07-29 13:43:08 +03:00
Rémi Verschelde
5ad1abed47
Merge pull request #30877 from JosephCatrambone/master
Bugfix GLTF import: Do not reindex when blend shapes are present.
2019-07-29 09:56:25 +02:00
Rémi Verschelde
698d87bdeb
Merge pull request #30879 from Calinou/simplify-font-editor-settings
Simplify editor settings related to font hinting and antialiasing
2019-07-29 09:55:08 +02:00
Bojidar Marinov
68b5f101c7
Make it so that 2D viewport does not pan while editing tilemaps
Fixes #30875
2019-07-28 17:00:05 +03:00
homer666
4553f2e6b8 Update "Sorting Order" dropdown in Editor Settings 2019-07-28 17:40:06 +10:00
Hugo Locurcio
6c374f91dd
Simplify editor settings related to font hinting and antialiasing
A single setting is now used to control the font hinting/antialiasing
settings of both main and code fonts. This means there are 2 settings
in total (instead of 4).

Font settings were also reordered for clarity.
2019-07-28 01:10:51 +02:00
Joseph Catrambone
c2e91005ef Bugfix in GLTF import: Flipping boolean check. Reindexing should _NOT_ happen when blend shapes are present. 2019-07-27 14:34:54 -07:00
Kanabenki
a8ac739a5e Add Undo Close Tab option in tabs context menu 2019-07-27 16:51:24 +02:00
Rémi Verschelde
e4ec59b6ae
Merge pull request #30763 from Calinou/editor-add-version-info
Display version information in the editor at all times
2019-07-26 19:08:42 +02:00
Rémi Verschelde
39579d2a6d
Merge pull request #30839 from Calinou/simplify-dim-editor-settings
Simplify editor settings related to window dimming
2019-07-26 18:55:31 +02:00