Commit graph

141 commits

Author SHA1 Message Date
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
Juan Linietsky
74d895425d
Merge pull request #23313 from DavidSichma/viewport-reassign
Handling NodePaths in in-place Editor for Resources
2018-11-01 13:59:59 -03:00
David Sichma
4e9c411229 Handling NodePaths in in-place Editor for Resources 2018-10-26 22:16:38 +02:00
Michael Alexsander Silva Dias
f3835282c4 Small capitalization fixes across the editor 2018-10-26 16:11:36 -03:00
Rémi Verschelde
0b2d1364c5
Merge pull request #23038 from DualMatrix/ugly_names
Made NodePath property display path instead of object name if object is not named.
2018-10-25 17:27:05 +02:00
Rémi Verschelde
5d4a073e98
Merge pull request #22885 from neikeq/issue-22122
Hide numeric value for constants in EditorPropertyEnum
2018-10-16 15:01:03 +02:00
Ignacio Etcheverry
57f46f7fcd Fix enum values in the editor and hide enum numeric values in the Inspector
- Hide numeric value of enum constants in the inspector (EditorPropertyEnum)
- EditorPropertyEnum, CustomPropertyEditor: Calculate values of enum constants correctly when only some of these constants have explicit values.
2018-10-15 23:48:54 +02:00
DualMatrix
be52063aaa Made NodePath property display path instead of object name if object is autogenerated.
This is to prevent those ugly and unclear names with the @'s to appear in things like standalone animationplayer nodes.
2018-10-15 23:42:00 +02:00
Rémi Verschelde
451e5fd051
Merge pull request #22915 from fire/visuals-shader-colour-constant-22906
Fix for Visual Shader Editor #22906: Cannot change color on Color Con…
2018-10-11 17:59:35 +02:00
groud
f236507689 Fixes resources name not showing in the inspector 2018-10-11 11:23:48 +02:00
K. S. Ernest (iFire) Lee
6097a5af14 Fix for Visual Shader Editor #22906: Cannot change color on Color Constant
Revert line from 5f2f108908
2018-10-10 13:20:57 -07:00
Guilherme Felipe
a9ec69663f Fix inspector preview
Remove script preview to inspector dock
2018-10-07 10:41:56 -03:00
DualMatrix
19b6e601d8 Added warning when trying to load resource of wrong type in editor.
Added warning when trying to load resource of wrong type in editor.
2018-10-03 14:31:54 +02:00
Rémi Verschelde
879e4d8312
Merge pull request #22364 from YeldhamDev/rect2_inspector_singleline
Make Rect2 EditorProperty obey the horizontal setting
2018-10-02 09:27:40 +02:00
Rémi Verschelde
9258d7b5d0 Fix warnings about uninitialized vars [-Wsometimes-uninitialized]
Fixes the following Clang 7 warnings:
```
drivers/gles3/rasterizer_scene_gles3.cpp:1260:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1280:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1281:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1282:10: warning: variable 'target' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:1286:5: warning: variable 'target' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
editor/editor_properties_array_dict.cpp:982:15: warning: variable 'change_index' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
editor/editor_properties.cpp:2655:6: warning: variable 'lt' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
editor/settings_config_dialog.cpp:367:11: warning: variable 'current_search_box' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
```
2018-10-01 17:33:08 +02:00
Rémi Verschelde
c459fad43c
Merge pull request #22536 from DualMatrix/no_advance
Fixed animation_player not advancing to the next frame when inserting a value.
2018-09-30 22:16:26 +02:00
DualMatrix
9aa83a77ab Fixed editor inspector ranges capping values at 65535.
Fixed editor inspector ranges capping values at 65535.
2018-09-29 17:05:31 +02:00
DualMatrix
5f2f108908 Fixed animation_player not advancing to the next frame when inserting a value.
Fixed animation_player not advancing to the next frame when inserting a value.
2018-09-29 16:44:20 +02:00
Rémi Verschelde
d55491a7b8
Merge pull request #22407 from DualMatrix/step_int
Added step support when exporting integers.
2018-09-28 10:39:50 +02:00
Rémi Verschelde
ea63c9a870 Inspector: Enable wrap for multiline text widget
Fixes #22458.
2018-09-27 09:09:47 +02:00
DualMatrix
0e37829031 Added step support when exporting integers.
Added step support when exporting integers.

This wasn't possible before and was kinda unclear see #21441
2018-09-24 18:26:39 +02:00
Michael Alexsander Silva Dias
b8f946f118 Make Rect2 EditorProperty obey the horizontal setting 2018-09-23 16:00:48 -03:00
willnationsdev
5436abefe4 Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
luz.paz
08bde5b2de Misc. typos
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12 21:39:17 -04:00
volzhs
192beed068 Make better look for bitmask 2018-09-05 10:49:48 +09:00
Juan Linietsky
0d0cf2e948 Change how path properties are presented, so they can be edited. Fixes #20709 2018-08-23 11:45:54 -03:00
Rémi Verschelde
661c9ece7c Add PROPERTY_HINT_PLACEHOLDER_TEXT for String properties
Use it to provide a better example for application identifiers
on Android, iOS and macOS, where users thought they *had* to use
this as a magic token.
2018-08-20 13:48:05 +02:00
Rémi Verschelde
8bc9986db4
Merge pull request #21155 from ordigdug/fix-colorpicker-popup
Fixes colorpicker popup immeditately closing when interacting with co…
2018-08-18 22:48:29 +02:00
DualMatrix
8ad251b331 Fixed text entry is going in reverse
Fixed text entry is going in reverse, this undoes what seems to be a mistake in #20400 and fixes #21061
2018-08-18 20:23:54 +02:00
ordigdug
17b439844d Fixes colorpicker popup immeditately closing when interacting with colorpicker property in a subinspector. Fixes #19559 2018-08-18 11:47:14 -04:00
Rémi Verschelde
ba47f15b78 Fix crash assigning script to a Resource
We were dereferencing the wrong identifier, which could be NULL.
Fixes #19289, supersedes and closes #20985.
2018-08-16 15:40:06 +02:00
Juan Linietsky
c72cab1293
Revert "Open visual editor when "open editor" button in the inspector is pressed" 2018-08-14 15:35:21 -03:00
Rémi Verschelde
bbdb6cf16e
Merge pull request #20400 from OliPerraul/oliperraul/20332/fix_defects_with_editor_export_dict
Fixed a number of issues related to the Dictionary export property for the editor
2018-08-14 16:15:43 +02:00
Juan Linietsky
254eb46de3 Several improvements to inspector.
-Added optional horizontal/vertical modes for vector editing (default false for vec2, true for vec3)
-Some clean ups with fonts and styles
2018-08-07 12:22:46 -03:00
Hein-Pieter van Braam
5c88bc66e3 Undo an accidental revert.
Sorry for the history pollution. I was testing something on this branch
and forgot to reset befor pushing the security update.

This reverts commit 2ef66def46.
2018-07-29 04:14:57 +02:00
Hein-Pieter van Braam
2ef66def46 Revert "Open visual editor when "open editor" button in the inspector is pressed."
This reverts commit 0ae400f523.
2018-07-28 21:16:20 +02:00
oliperraul
dc2df7a146 Fixed a number of issues related to the Dictionary export property for the editor
* Fixed a problem when buttons were deleted on the same frame they were pressed (inside update_property)
* Prevent usage of nul key for a dictionary.
* Provide symetry in the interface for both the array property and dictionary property by first clicking on the field to instantiating the dictionary.
	Array (Nil), Array (size 0), Array (size 1)
	Dictionary (Nil), Array (size 0), Array (size 1)
* Allow to press enter to confirm a string in line edi.
2018-07-28 14:17:56 -04:00
Rémi Verschelde
578c8fc1e5 Fix layer 2-line tooltips used as name in inspector
Fixes #20288.
2018-07-28 10:27:19 +02:00
Tiger Caldwell
5421e46a43 Fixed Issue #20399 2018-07-25 18:50:12 -04:00
K. S. Ernest (iFire) Lee
23744d8064 Add editor property type so that inspector can search for objects. This is a regression. 2018-07-25 12:54:35 -07:00
Rémi Verschelde
76bfe14e00
Merge pull request #20117 from ordigdug/inspector-fix-inconsistencies-with-exported-enums
Fix -new inspector- Inconsistencies with exported enums - Fixes remai…
2018-07-19 18:18:20 +02:00
Juan Linietsky
911febb41f Improvements to vector fields, show axis in color with a background 2018-07-18 22:27:39 -03:00
ordigdug
afb4dfab22 Fix -new inspector- Inconsistencies with exported enums - Fixes remaining issues in #19534 2018-07-18 20:01:03 -04:00
Juan Linietsky
43dc050947 Several improvements to editor inspector usability and style 2018-07-18 19:37:41 -03:00
Rémi Verschelde
71b18acb05
Merge pull request #20220 from volzhs/texture-size
Fix preview texture size on Inspector
2018-07-17 18:04:19 +02:00
volzhs
d551f81874 Fix preview texture size on Inspector 2018-07-17 23:08:47 +09:00
Rémi Verschelde
634ce7917e Inspector: Add bit/value info to layer tooltip
Fixes #20213.
2018-07-17 14:33:22 +02:00
Thomas Herzog
103524e6b7
Merge pull request #20112 from nunodonato/openvisualeditorbutton
Open visual editor when "open editor" button in the inspector is pressed
2018-07-16 15:42:57 +02:00
Juan Linietsky
f6ce73f724 Visual Shaders are back. 2018-07-14 18:16:18 -03:00
Nuno Donato
0ae400f523 Open visual editor when "open editor" button in the inspector is pressed.
Fixes #20111
2018-07-12 12:41:22 +01:00
Max Hilbrunner
073e77454d
Merge pull request #19713 from volzhs/fix-crash-nodepath-animation-edit
Fix crash when assigning a node on editing animation key
2018-07-05 04:20:40 +02:00
Max Hilbrunner
43748f67be
Merge pull request #19351 from guilhermefelipecgs/fix_reversed_text
Fixes to the new inspector
2018-07-05 03:50:31 +02:00
Guilherme Felipe
709948aa5a Fixes to the new inspector
- Fix inspector dock not updating tree for main resource;
- Fixes the inspector input text reverted during typing;
- Add method bind for "refresh" used by MultiNodeEdit;
2018-07-04 20:08:45 -03:00
Max Hilbrunner
beefe98974
Merge pull request #19635 from bojidar-bg/19158-exported-array-new-inspector
Add proper type information to array property
2018-07-03 15:47:02 +02:00
Juan Linietsky
eeab3502d5 Changes to how node paths are selected from property, allowing setting a hint. 2018-06-27 20:50:25 -03:00
volzhs
b4f60ae3ac Fix crash when assigning a node on editing animation key 2018-06-22 14:48:49 +09:00
Juan Linietsky
0a1c1c660f -Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
2018-06-18 22:12:08 -03:00
Bojidar Marinov
8ecef3496c
Add proper type information to array property
Part of #19158
2018-06-18 22:24:31 +03:00
Guilherme Felipe
262c78ed97 Fix Rect2 properties typo 2018-06-04 19:16:17 -03:00
Rémi Verschelde
5ac70d96d0
Merge pull request #19115 from firefly2442/cppcheck-defensive
cppcheck - defensive programming on i index check order
2018-05-25 11:57:28 +02:00
volzhs
70e04ae26f Use relative node path when assigning a node on inspector 2018-05-23 23:43:47 +09:00
firefly2442
b22c1dd0f7 cppcheck - defensive programming on i index check order 2018-05-23 00:15:35 -06:00
Juan Linietsky
9b567cc549 Dictionary editing support in inspector 2018-05-19 17:57:44 -03:00
Juan Linietsky
eded061668 Dictionary editing does the comeback to the inspector, fixes #19046 2018-05-19 16:10:19 -03:00
Juan Linietsky
c5182a580a Working Drag & Drop again in inspector 2018-05-17 19:41:49 -03:00
Juan Linietsky
4b5227ff77 -Ability to open resources in the same window
-Plenty of fixes and improvements to new inspector
-Fixes that were needed to make inspector work better
2018-05-17 18:03:05 -03:00
Guilherme Felipe
35024d4e7b Add missing copyright headers 2018-05-16 14:50:44 -03:00
Juan Linietsky
dfd1331690 Allow editing of some unbound properties when hinted (or no range hinted) 2018-05-16 09:13:41 -03:00
Juan Linietsky
005b69cf6e -New inspector.
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)

-
2018-05-15 17:14:31 -03:00