Commit Graph

118 Commits

Author SHA1 Message Date
SonerSound 90b2415343 Export path may now be written as a relative path
If the target directory does not exist, it will be recursively created.

Export paths are now saved as a relative to the projects base directory

Renamed relative_to function to final_path_from_relative which takes a relative path and outputs the final path from a string that represents a directory.
Added relative_path_from_final which takes in a final path and outputs a relative path if possible. If not possible it outputs the relative path that represents the current directory.
If the target directory does not exist when exporting the project, then it is recursively created.

Removed final_path_from_relative function

Changed DirAccess into DirAccessRef for automatic object destruction
2019-06-30 19:13:49 +01:00
Rémi Verschelde f8df412512
Merge pull request #24156 from AnaDenisa/master
Add option to input value in EditorPropertyEasing. Fixes #8449
2019-06-29 15:34:24 +02:00
LikeLakers2 facafeb19a Fix an EditorPropertyResource bug where clicking on the flat buttons would not select the property in the inspector 2019-06-28 19:23:57 -04:00
AnaDenisa 13279a7da7 Add option to input value manually in EditorPropertyEasing
Double-clicking on the EditorPropertyEasing widget (e.g. for the Light
Attenuation parameter) shows an EditorSpinSlider to set the value manually.

Fixes #8449.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2019-06-28 12:25:19 +02:00
qarmin 4e5310cc60 Some code changed with Clang-Tidy 2019-06-26 15:08:25 +02:00
JohnJLight 38d3bfe971 Made use of semicolons more consitent, fixed formatting 2019-06-19 15:24:31 +02:00
Rémi Verschelde cce2e4b07c
Merge pull request #22301 from YeldhamDev/button_popup_highlight
Enable toggle behaviour for buttons that trigger popups
2019-04-25 17:47:23 +02:00
Juan Linietsky 04847ef5f9 Added ability for multiple images to be imported as an atlas
This adds support for groups in the import system, which point to a single file.
Add property hint for saving files in file field
2019-04-19 15:56:34 -03:00
Rémi Verschelde c8994b56f9 Style: Apply new changes from clang-format 8.0
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0,
so contributors can keep using those versions for now (they will not undo those
changes).
2019-04-09 17:09:48 +02:00
Rémi Verschelde b319168db2
Merge pull request #26122 from vixelz/allow-embedding-gdscript-defined-resources
Include global class resources in Resource property inspector
2019-04-06 13:11:00 +02:00
Rémi Verschelde fc081ebe10
Merge pull request #26954 from willnationsdev/refresh
Add a getter for the EditorInspector
2019-04-05 16:41:02 +02:00
Anish 8ee31ace34 Prevents crash on loading unrecognized resources.
Editor crashes on trying to load resources with no loaders.
Simple check on the resource loader prevents using a null
resource loader.

Fixes: #27385
2019-03-25 02:32:21 +05:30
Will Nations c1b247e4d5 Add EditorInspector getter. Update Sub-Inspectors. 2019-03-12 02:15:15 -05:00
George Marques 25f9aee005
Allow class_name scripts to have nested inheritance 2019-03-09 00:47:27 -03:00
Juan Linietsky 5f079e2ef9 -Make tileset and meshlibrary edit in a separate inspector, fixes #26671
-Made relationship lines appear based on theme settings, not previous hack
-Fix drawing of relationship lines (was broken)
-Fix double initialization of theme settings
2019-03-06 12:12:42 -03:00
Juan Linietsky 5b77aa6bea Ensure shader is not set if code did not change 2019-03-04 19:39:06 -03:00
Juan Linietsky 21289c6fea Some clean up to previous commit. 2019-03-04 17:11:49 -03:00
Juan Linietsky 472c94ce3e Remove the "Open Editor" button, it will open automatically. 2019-03-04 16:50:21 -03:00
Juan Linietsky 7f63b0e8cd Added a workaround to avoid crashes due to how TileSet editor works, fixes #23672
Also fixed a few uninitialized memory variables.
2019-02-22 17:42:29 -03:00
Vixelz 03f7a724ed Include global class resources in Resource property inspector
Much like how script defined global classes can be created from the
"New Resource..." button in the FileSystem panel, this allows the
creation of script defined resources to be embedded.
2019-02-21 18:16:49 +00:00
Rémi Verschelde 5585420e79 Fix EditorPropertyInteger and EditorPropertyEnum support for 64-bit int
Fixes #26116 and fixes #22004, thanks @kiidmale.
2019-02-21 13:30:29 +01:00
marxin 8d51618949 Add -Wshadow=local to warnings and fix reported issues.
Fixes #25316.
2019-02-20 19:44:12 +01:00
qarmin fa629cdd2c Fix big text window in TextEdit 2019-02-16 10:48:23 +01:00
Juan Linietsky 98ffb6b37e Instantiate global classes properly, fixes #20857 2019-01-27 18:18:54 -03:00
Juan Linietsky 853f985b63 Make sub-inspectors not listen to node removals, since they never edit nodes. Fixes #23554 2019-01-25 15:14:56 -03:00
Juan Linietsky 541422a4a2 Clean up and fix issues after merging #21701 , closes #21104 2019-01-18 13:01:24 -03:00
Juan Linietsky 580bebda52
Merge pull request #21701 from AlexHolly/fix-multiselect-proptery-change
Fix multiselect change property
2019-01-18 12:37:50 -03:00
Juan Linietsky 5e709baba1 Fix keying resource properties, closes #24690 2019-01-17 12:30:34 -03:00
Juan Linietsky 95a5803c92 wtf 2019-01-14 15:52:43 -03:00
Juan Linietsky 91290f0ded Added a flag to specify an exported node path must be supplied from scene root, fixes #24412 2019-01-14 15:46:56 -03:00
Rémi Verschelde 0b48484d49 Add EditorPropertyRID as read-only label showing RID
Fixes #24827.
2019-01-14 11:50:42 +01:00
Rémi Verschelde d8c40bccbb
Merge pull request #24831 from clayjohn/fix_nested_docs_tooltip
Make tooltips display for nested resources
2019-01-08 09:11:03 +01:00
clayjohn 9d162f9fbe make tooltips display for subinspectors 2019-01-07 20:38:03 -08:00
Rémi Verschelde ac8ae09bc3 i18n: Sync translation template with current source
Misc fixes to source strings.
2019-01-07 16:57:52 +01:00
Rémi Verschelde b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Dawid Wdowiak 131001a4fb Fixed a property warning when loading a correct resource type
Fixed warning when loading a correct resource type to a property that could take more than one resource type.
2018-12-30 19:04:49 +01:00
Gleb Mineev 2e4752bdba #23231: make resource changes in a nested inspector undoable 2018-12-13 22:35:16 +01:00
Michael Alexsander Silva Dias 8f9447310d Enable toggle behaviour for buttons that trigger popups 2018-12-11 19:23:26 -02:00
Rémi Verschelde 4191e5316b
Merge pull request #22437 from DualMatrix/wrong_prop_warning
Added warning when trying to load resource of wrong type in editor.
2018-12-07 23:17:43 +01:00
Rémi Verschelde 9b78147bce
Merge pull request #22535 from DualMatrix/editor_value_cap
Fixed editor inspector ranges capping values at 65535.
2018-12-07 23:15:48 +01:00
Rémi Verschelde a0a9553cbe
Merge pull request #23673 from marcelofg55/export_path_3
Export Path now has a folder icon to select the path
2018-12-06 15:33:04 +01:00
MrCdK 9c91cc00ea Arrays now parse the hint_string in the new inspector.
Also, if a hint_string is given, when changing the size of an Array the new elements are initialized to the default value of that type hint.
2018-12-03 19:05:22 +01:00
Alexander Holland 66d8ce0c05 Fix multiselect change property 2018-11-24 10:13:14 +01:00
Juan Linietsky 894163a945 Make it smarter to infer paths from history data, closes #20005 2018-11-21 09:22:47 -03:00
Rémi Verschelde 90dd3774a3
Merge pull request #23802 from JFonS/add_save_option
Add Save option to resource property menu
2018-11-20 14:15:31 +01:00
Juan Linietsky 079c2630e2 Make sure RMB also works for resource editor in inspector, fixes #18994 2018-11-18 21:30:08 -03:00
JFonS dbca3b81ba Add Save option to resource property menu 2018-11-18 15:17:04 +01:00
Juan Linietsky 7c00f0599e Add proper warnings when attempting to create a ViewporTexture in a resource that is not fit for it. Closes #16006. 2018-11-14 11:33:39 -03:00
Marcelo Fernandez e49a090919 Export Path now has a folder icon to select the path 2018-11-12 16:04:58 -03:00
Rémi Verschelde 91e5782795
Merge pull request #23311 from YeldhamDev/editor_capitalization_fix
Small capitalization fixes across the editor
2018-11-01 21:37:33 +01:00