Commit graph

1929 commits

Author SHA1 Message Date
Rémi Verschelde 0928e82027
Merge pull request #29895 from ptrojahn/menukey
Support menu key in TextEdit and LineEdit controls
2019-09-22 21:21:13 +02:00
Hugo Locurcio 471a3ceb77
Improve the debugger shortcut UX
- Display the shortcut in the button tooltips by defining the shortcut
  on the buttons as well.
- Swap "Step Over" and "Step Into" in the Debug menu to match the button
  order in the Debugger bottom panel.
2019-09-22 19:19:53 +02:00
qarmin 50be65bf43 Changed some code found by Clang Tidy and Coverity 2019-09-22 18:45:08 +02:00
Paul Trojahn ba24bc1e04 Support menu key in TextEdit and LineEdit controls
Related to #15542
2019-09-22 12:06:24 +02:00
Tomasz Chabora 5476250356 Initialize snap_target and make sure it disappears 2019-09-20 22:26:26 +02:00
Rémi Verschelde ae3c685042
Merge pull request #32137 from Calinou/vcs-error-if-none-available
Display an error message if no version control systems are available
2019-09-20 20:20:34 +02:00
Rémi Verschelde 712a82a6f6
Merge pull request #32134 from IronicallySerious/fix-global-class-list
Add correct class selection in Select VCS menu
2019-09-20 17:28:39 +02:00
Rémi Verschelde d21b73779f
Merge pull request #32180 from KoBeWi/nein_patsch_rekt
Fix region editor for NinePatchRect
2019-09-20 17:26:52 +02:00
Rémi Verschelde fdc2463a1b
Merge pull request #32150 from luzpaz/typos
Fix misc. source comment typos
2019-09-20 17:09:05 +02:00
luz.paz 91ecd7b6a6 Fix misc. source comment typos
Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
2019-09-19 14:36:52 -04:00
Rémi Verschelde 2add51d082
Merge pull request #31964 from nekomatata/fix-animation-player-error
Fixed switching back to AnimationPlayerEditor with empty animation list
2019-09-19 20:32:05 +02:00
Rémi Verschelde af51fbd994
Merge pull request #32174 from Calinou/2d-editor-display-zoom
Display the current zoom percentage in the 2D editor
2019-09-19 20:14:26 +02:00
Rémi Verschelde 093c1c1a69
Merge pull request #31985 from nekomatata/fix-builtin-script-resource
Fixed resource loading when editing built-in script from resource
2019-09-19 20:07:41 +02:00
Rémi Verschelde fc9985b770
Merge pull request #31961 from YeldhamDev/info_messages
Add informational messages to various editors
2019-09-19 20:06:44 +02:00
Juan Linietsky d81ddaf33e Added skin support and simplified APIs to override bone position. 2019-09-18 19:46:32 -03:00
Hugo Locurcio 95f6f81dc2
Display the current zoom percentage in the 2D editor
This makes it possible for the user to know precisely the current
zoom level. The zoom percentage can be clicked to reset it to 100%
(similar to Firefox).
2019-09-17 20:36:10 +02:00
Tomasz Chabora cf2ae78956 Fix region editor for NinePatchRect 2019-09-17 19:26:20 +02:00
Hugo Locurcio 6df03fe61f
Display an error message if no version control systems are available
This removes the need for a dedicated placeholder entry.

This closes #32135.
2019-09-14 22:14:00 +02:00
Twarit 50da1b7d15 Add correct class selection in Select VCS menu 2019-09-14 21:06:52 +05:30
Hugo Locurcio c2bcc3f700
Use the same axis colors consistently in the 2D and 3D editors 2019-09-13 14:08:41 +02:00
PouleyKetchoupp d53ddc5baa Fixed resource loading when editing built-in script from resource
Fixes #27380
2019-09-07 16:54:01 +02:00
PouleyKetchoupp a701d4e940 SpriteFramesEditor improvements around deleting animations
- Reorganized buttons layout to make it clearer between deleting animation & frame
- Added a confirmation popup for deleting an animation
- Fixed errors on selecting an animation after deleting one
2019-09-06 11:11:12 +02:00
Emmanuel Barroga 0048468658 Add ability to reorder animation frames via drag and drop
Allows you to reorder the frames of the animation by dragging the frames around.
2019-09-05 17:08:17 -07:00
Michael Alexsander Silva Dias fd0dace4b5 Small fixes for the Tile/GridMap editors 2019-09-04 16:54:05 -03:00
Rémi Verschelde e205cbbd06
Merge pull request #31967 from nekomatata/fix-builtin-script-scene
Load scene if needed when editing recent built-in script
2019-09-04 21:23:12 +02:00
PouleyKetchoupp ad499f234f Load scene if needed when editing recent built-in script
Fixes #31966
2019-09-04 19:14:47 +02:00
Yuri Roubinsky aadbb66dc2
Merge pull request #31926 from Chaosus/vs_switch
Some improvements for Switch node in visual shaders
2019-09-04 19:21:54 +03:00
PouleyKetchoupp b01d07e049 Fixed switching back to animation player editor with no animation to select
Fixes #31959
2019-09-04 18:18:25 +02:00
Michael Alexsander Silva Dias 5f3a55acb7 Add informational messages to various editors 2019-09-04 12:37:11 -03:00
Chaosus89 bf3024c172 Added missing OUTPUT_IS_SRGB and FRONT_FACING to visual shaders 2019-09-04 18:24:44 +03:00
Rémi Verschelde 855a465c87
Merge pull request #31956 from IronicallySerious/add-vcs-copyright
Add copyright headers to VCS integration
2019-09-04 14:48:13 +02:00
Bojidar Marinov 6c4407bae4
Add overriden properties to the documentation
Fixes #31855
2019-09-04 15:21:40 +03:00
Twarit 444ba61aac Add copyright headers to vcs integration 2019-09-04 16:47:26 +05:30
Rémi Verschelde 5d162798cd
Merge pull request #31619 from Calinou/assetlib-improve-sort-fields
Improve sorting options in the asset library
2019-09-04 01:26:15 +02:00
Rémi Verschelde 4967f303f5
Merge pull request #31461 from IronicallySerious/add-vcs-integration
VCS integration for Godot Editor
2019-09-04 01:09:24 +02:00
Twarit 07e3be3deb Add version control editor plugin
Provides the editor with all the VCS GUI and extracts the data from the
upcoming VCS API to cater to the project with VCS interaction.
2019-09-03 19:58:32 +05:30
Hugo Locurcio a4a0295154
Improve sorting options in the asset library
The reverse sorting options are now integrated in the list of
sorting options, making the "Reverse" button unnecessary.
This pattern tends to be easier to discover by users.

The "Downloads" sorting option was also removed as it's not
implemented in the backend.
2019-09-03 15:16:58 +02:00
Chaosus89 a79d8e3b8f Some improvements for Switch node in visual shaders 2019-09-03 15:11:02 +03:00
Rémi Verschelde dd7c4c62ab
Merge pull request #31782 from aole/persist-ColorPicker-color-mode
Persist ColorPicker color mode
2019-09-03 12:36:04 +02:00
Rémi Verschelde 037237f518
Merge pull request #31898 from Calinou/animation-editor-add-precise-snapping
Implement precise snapping in the animation editor
2019-09-02 22:12:41 +02:00
Rémi Verschelde e206050380
Merge pull request #31890 from Calinou/curve-editor-add-snapping
Implement snapping in the Curve editor
2019-09-02 22:12:25 +02:00
Rémi Verschelde 169c1dc9ef
Merge pull request #31906 from Calinou/assetlib-refresh-once
Refresh the asset library only once on startup
2019-09-02 22:05:29 +02:00
Hugo Locurcio 6f915d386a
Refresh the asset library only once on startup
This avoids unnecessary calls to the API when switching between tabs
in the editor or project manager.
2019-09-02 20:08:55 +02:00
Michael Alexsander Silva Dias ab6daed467 Add icon for the ruler tool 2019-09-02 11:45:03 -03:00
Hugo Locurcio 55b9c6804c
Implement precise snapping in the animation editor
Holding Shift while snapping is enabled will now make snapping
4 times as precise.
2019-09-02 15:55:44 +02:00
Hugo Locurcio f07fc5b434
Implement snapping in the Curve editor
Holding Ctrl will snap the selected point/tangent by increments
of 10% of the curve's width/height. Holding Shift as well will snap
by increments of 2.5% instead.
2019-09-02 14:00:22 +02:00
Rémi Verschelde 220ff5baf2
Merge pull request #31829 from KoBeWi/one_tool_to_ruler_2d
Add 2D ruler tool
2019-09-02 10:34:09 +02:00
Tomasz Chabora 05e5faa876 Add 2D ruler tool 2019-09-01 18:36:41 +02:00
Cykyrios ed00313a0b Reorganize & rename text editor settings categories
Add Navigation category for scroll and minimap settings.
Rename Line Numbers category to Appearance.
Rename Open Scripts category to Script List.
Rename "Draw Minimap" setting to "Show Minimap" (this is more consistent with other settings).

Reorder settings by category in code_editor.cpp to match settings list
2019-09-01 13:33:37 +02:00
Chaosus89 8fd8589547 Fix resizer icon visiblity on light theme in GraphNode 2019-09-01 09:12:26 +03:00
Rémi Verschelde 3fdf85cd9b
Merge pull request #31794 from Calinou/editor-increase-line-spacing
Increase line spacing in the editor help and asset library descriptions
2019-08-31 22:09:15 +02:00
Rémi Verschelde 7cf58a7f66
Merge pull request #31808 from qarmin/crash_audioogg
Fix crash when AudioStreamOGGVorbis is empty
2019-08-31 22:08:37 +02:00
Bhupendra Aole 1de3ec911f Default ColorPicker color mode setting
There is a new setting for Default ColorPicker color mode in Editor Settings->Interface->Inspector. Initially this setting will be RGB. Editor ColorPicker will always start with mode defined in this settiing.
Fixes #30755 and #30754
2019-08-31 00:34:33 -04:00
qarmin 2cd2197362 Fix crash when AudioStreamOGGVorbis is empty 2019-08-30 20:01:14 +02:00
merumelu e2459479de Editor: remove TOOLS_ENABLED guards
For code  inside editor/ `#ifdef TOOLS_ENABLED`
is always true so those checks are redundant.
2019-08-30 19:02:46 +02:00
Hugo Locurcio d6984f7311
Increase line spacing in the editor help and asset library descriptions
This makes for more readable text.
2019-08-30 15:08:24 +02:00
Chaosus89 19d449ec4c Fix few icons in SpatialEditor which don't update when theme changed 2019-08-30 11:26:01 +03: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 6ce2701abe AssetLib minor fixes and enhancements 2019-08-28 01:36:09 -03: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
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
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
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
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
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
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
Yuri Roubinski 4dcee2035a Implemented inverse shader function to GLES2 2019-08-22 08:22:49 +03:00
Gilles Roudière 692a78db19 Displays smart snapping guides when snapped 2019-08-21 22:15:51 +02:00
Tomasz Chabora 9520d9706a Edit TileMap only with TOOL_SELECT 2019-08-21 20:56:15 +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
Tomasz Chabora 7e075029c8 Fix various typos and style errors in text 2019-08-19 20:43:42 +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
Yuri Roubinski e3b43771aa Added global expressions to visual shaders 2019-08-18 08:49:56 +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
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
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
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
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
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
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