Juan Linietsky
3c0059650d
Added StringName as a variant type.
...
Also changed all relevant properties defined manually to StringName.
2020-02-21 14:25:29 +01:00
Juan Linietsky
69c95f4b4c
Reworked signal connection system, added support for Callable and Signal objects and made them default.
2020-02-20 08:24:50 +01:00
Juan Linietsky
3205a92ad8
PoolVector is gone, replaced by Vector
...
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
2020-02-18 10:10:36 +01:00
Juan Linietsky
cf8c679a23
ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits.
2020-02-12 14:24:54 -03:00
Juan Linietsky
e1b3444415
Bugfixes and ability to better specify filter and repeat modes everywhere.
...
Removes antialiased flag for draw_* methods.
2020-02-11 11:53:28 +01:00
Juan Linietsky
3f335ce3d4
Texture refactor
...
-Texture renamed to Texture2D
-TextureLayered as base now inherits 2Darray, cubemap and cubemap array
-Removed all references to flags in textures (they will go in the shader)
-Texture3D gone for now (will come back later done properly)
-Create base rasterizer for RenderDevice, RasterizerRD
2020-02-11 11:53:26 +01:00
Aaron Franke
5e1dad3b28
Use int64_t for EditorPropertyInteger and warn when out of double range
2020-01-15 23:39:49 -05:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Haoyu Qiu
078c0d75f2
Cleans up headers included in editor_node.h
2019-12-24 21:46:05 +08:00
Rafał Mikrut
ed1c4bc77d
Removed unused variables, add some constants numbers
2019-12-10 05:13:02 +01:00
Rémi Verschelde
8e76c5701b
Merge pull request #32997 from Calinou/editor-color-picker-add-tooltip
...
Add a tooltip to Color properties in the editor inspector
2019-11-07 13:18:27 +01:00
Hugo Locurcio
66bfa92e84
Add a tooltip to Color properties in the editor inspector
...
This makes it possible to view a color's raw R/G/B/A values
without clicking the ColorPickerButton.
2019-10-22 23:22:20 +02:00
Anubhab Ghosh
4972ef801a
Add clear menu entries for extending and replacing scripts
2019-10-23 01:57:17 +05:30
Michael Alexsander
a0866716ed
Make the the resource menu button fallback to the Object icon instead of Node
2019-10-21 11:26:58 -03:00
Michael Alexsander
22b9510558
Make resource editor fallback to Object icon if none is found
2019-10-14 16:36:00 -03:00
David Sichma
f7d9f070e1
Increased step precision
...
Results in nicer numbers for float properties like 20.0 instead of
20.000001
2019-10-13 00:29:53 +02:00
Joe Morton
c017f3405e
Set tooltip to an empty string when clearing
...
Format
Remove string conversion
2019-10-06 17:29:11 +01:00
Rémi Verschelde
dec10dd776
Merge pull request #32051 from qarmin/some_error_explanation
...
Added some obvious errors explanations
2019-09-25 11:51:54 +02:00
qarmin
17732fe698
Added some obvious errors explanations
2019-09-25 10:28:50 +02:00
Hugo Locurcio
21222fb478
Make editor inspector easing lines use the accent color when dragged
...
This makes their visual feedback more consistent with other controls.
This also makes easing lines slightly more subtle by decreasing
their opacity by 10%.
2019-09-06 16:11:26 +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
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
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
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
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
Rémi Verschelde
d844e30614
Inspector: Make default float step configurable
...
Also allow lifting the decimal step formatting with a hint range step
of 0. A new `range_step_decimals()` is added for this to avoid breaking
compatibility on the general purpose `step_decimals()` (which still
returns 0 for an input step of 0).
Supersedes #25470 .
Partial fix for #18251 .
2019-07-23 17:31:38 +02:00
Rémi Verschelde
d15cf7b672
Merge pull request #30576 from qarmin/lgtm_coverage
...
Changed some code reported by LGTM and Coverity
2019-07-20 12:00:13 +02:00
qarmin
6cbaf7662f
Changed some code showed in LGTM and Coverage
2019-07-20 08:09:57 +02:00
Michael Alexsander Silva Dias
df9c890022
Make multiline text edit grab focus when popping up
2019-07-19 14:32:23 -03:00
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
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