Commit graph

145 commits

Author SHA1 Message Date
Rémi Verschelde
e3155071bc
Merge pull request #13958 from jjjuande/fix_revert_button
Fix the revert button issue with instanced nodes
2017-12-07 00:30:07 +01:00
Juan Linietsky
86fcc39fa9 Fix and rewrite folding logic, closes #14005, closes #13421 2017-12-06 19:07:17 -03:00
Juande
0a5cf37a75 Fix the revert button issue with instanced nodes
The method "check_reload_status" on the file "property_editor.cpp" didn't take into account if the field is a property of an instanced node just like the "update_tree" does. The code that checks this in "update_tree" has been extracted into the method "_is_instanced_node_with_original_property_different" to be also used in "check_reload_status".

Fixes #13415
2017-12-04 14:17:58 +01:00
Unknown
1d26c51856 Some untranslated UI strings 2017-12-02 16:59:45 +07:00
Dmitry Koteroff
45c5a865c2 Small fixes to #13233 2017-11-28 16:53:40 +03:00
Rémi Verschelde
03a2cf2f94
Merge pull request #13240 from Krakean/fix_interpretcomma_as_decimalpoint
Makes possible to interpret comma as decimal point in editor
2017-11-27 00:55:40 +01:00
Dmitry Koteroff
a4109200aa Makes possible to interpret comma as decimal point in editor 2017-11-26 23:08:16 +03:00
Dmitry Koteroff
aa20a84aa9 Implemented a collapse/expand all feature request for Inspector (issue #9427) via popup of "Object properties" button.
Editor Settings->Interface->Editor: added "Expand All Properties" option. Off by default.

Cosmetics fixes due to @Reduz notes.
2017-11-24 14:08:44 +03:00
Rémi Verschelde
6065b2d177
Merge pull request #11940 from GodotExplorer/debugger
Enhanced debugger for godot 3.0
2017-11-20 22:55:49 +01:00
Rémi Verschelde
7b5c447301
Merge pull request #12952 from bojidar-bg/12392-export-enums
Allow exporting enums from GDScript
2017-11-20 09:11:46 +01:00
Ferenc Arn
d28763a4c1 Rename Rect3 to AABB.
Fixes #12973.
2017-11-17 11:01:41 -05:00
Bojidar Marinov
e4a36d0eda
Allow exporting enums from GDScript
Use as `export(E) ...`
Closes #12392
2017-11-17 14:33:36 +02:00
geequlim
c655fc7cd8 Better supported for remote object editing with the inspector with a simple dictionary editor implement 2017-11-17 09:20:33 +08:00
Daniel J. Ramirez
01512efbe6 Removed show type icons option 2017-11-09 19:45:21 -06:00
Jake Larson
5e641153a6 Fixed interface scaling issues with editor action button and value editor popovers 2017-10-27 19:22:52 -05:00
Rémi Verschelde
ad85224ebc Merge pull request #12432 from larsonjj/fix/property_editor_action_buttons
Fix editor action button layout
2017-10-27 13:24:43 +02:00
Jake Larson
6c889a3ab5 Fix editor action button layout 2017-10-27 05:55:56 -05:00
Robin Arys
ae11255710 Fix text margins in value editor pop-up. 2017-10-25 12:47:52 +02:00
Suchaaver Chahal
02c7566b50 keep display int if int range 2017-10-14 12:20:04 -07:00
Suchaaver Chahal
e29931b22a change step to .01 for float 2017-10-09 22:34:29 -07:00
Andreas Haas
dfb6602da0
VisualScript: Fix crash with get_node(). 2017-10-06 21:24:21 +02:00
Andreas Haas
5303efb2fa Merge pull request #11659 from AndreaCatania/prephysics
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
Poommetee Ketson
34ea271380 Merge pull request #11646 from djrm/pr_visual_improvements
Several visual improvements.
2017-10-02 23:49:44 +07:00
AndreaCatania
4537977d6d Renamed fixed_process to physics_process 2017-09-30 16:19:07 +02:00
Andreas Haas
20eb17a685
EditorSettings: Move interface/ properties to interface/editor
Fixes inconsistent behaviour where clicking on the "Interface"
in the Editor Settings wouldn't collapse the category as is the
case for all the other categories.
2017-09-29 18:52:56 +02:00
Daniel J. Ramirez
15986ea343 Several visual improvements.
Added proper label sizing
Improved text editor status bar
Fixed some issues with ItemList and also some style fixes
Added background to color picker samples (the mrcdk fix)
Fixed slider ticks.
Added VS breakpoint and error styleboxes.
2017-09-28 15:00:43 -05:00
Daniel J. Ramirez
b622c92fad Removed most of the custom colors from the interface. 2017-09-25 21:43:20 -05:00
Rémi Verschelde
f577efd47e Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Daniel J. Ramirez
5676c42ae0 Added the ability to revert to initial value in editor settings. 2017-09-24 22:29:59 -05:00
Juan Linietsky
3237e05c36 Ability to convert from SpatialMaterial to ShaderMaterial 2017-09-22 09:20:52 -03:00
Gilles Roudiere
05bb8e0c10 Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) 2017-09-22 11:39:44 +02:00
letheed
5ad9be4c24 Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
2017-09-20 13:11:10 +02:00
sersoong
433da3ef23 fix editor/property_editor.cpp missing TTR 2017-09-15 10:36:48 +08:00
Hein-Pieter van Braam
b2a38854fd Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Daniel J. Ramirez
e3e5dfdaf4 Improved and added some icons 2017-08-29 17:02:55 -05:00
Rémi Verschelde
bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
Rémi Verschelde
565600e844 Cleanup tons of obsolete commented out code
Mostly in EditorNode, dropping some obsolete editor plugins and also a
cleanup of ProjectSettings/EditorSettings.
2017-08-26 17:47:57 +02:00
Andreas Haas
6134d8741d Editor: Add some more translatable strings. 2017-08-25 18:49:45 +02:00
Hein-Pieter van Braam
cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Rémi Verschelde
5627047c32 Merge pull request #10455 from groud/control_margin_fixes
Some control fixes and removed other useless lines
2017-08-20 15:24:00 +02:00
Gilles Roudiere
06256cd778 Some control fixes and removed useless lines 2017-08-19 19:10:00 +02:00
Juan Linietsky
dc62389739 -Properly check limits to objects sent (regarding to size), fixes #9034
-Changed the way objects are marshalled and sent to the debugger
-Editing debugged objects happens in the remote inspector now
2017-08-18 10:59:31 -03:00
Pedro J. Estébanez
fcf52303c5 Fix/improve property evaluator
Evolution of #10366 based on what has been discussed there.

Now you can refer to the relevant object either by `self` or `s`.
No conflicts with a potential `tool` script attached to the object.
Proper cleanup since a dummy object is used to have an instance and the temporary script dies with it.
2017-08-17 02:17:18 +02:00
Rémi Verschelde
b1ecaaa22b Merge pull request #10307 from Rubonnek/update-argument-names
Updated function argument names
2017-08-16 17:17:56 +02:00
Pedro J. Estébanez
ae2d449047 Revive inspector property evaluation
GDScript was restricted to parse only scripts beginning with __res://__ or __user://__ to avoid templates from being parsed. I've made that a bit less inclusive by allowing scripts with an empty path to be parsed too, which doesn't conflict and is needed for this to work.

Also I've removed the `this` variable of the generated script and made the relevant object to be the one the script instance refers to, so you can use `self` instead.

Now, with the shorter 3.0-style syntax, you can write things like: `self.position.x + 10`

Closes #9500.
2017-08-16 03:01:41 +02:00
kubecz3k
129ebca41d Merge pull request #9889 from groud/control_enhancements
Control node enhancements
2017-08-15 22:55:49 +02:00
Juan Linietsky
a4f9c95169 Small fix for problem of nodes losing type, this is not good enough to solve a core reimport problem, but so far fixes #8116 2017-08-15 16:28:34 -03:00
Gilles Roudiere
0d35d4d53b Replace GUI anchor type by a float between 0 and 1 2017-08-13 21:20:13 +02:00
Wilson E. Alvarez
428f03cf06 Updated function argument names 2017-08-12 15:12:49 -04:00
Rémi Verschelde
066fb4d5f9 Merge pull request #10238 from Hinsbart/resource_rmb
Inspector: Right click on resource opens sub-menu.
2017-08-11 10:42:29 +02:00
Rémi Verschelde
afecc6ae0b Merge pull request #10114 from kubecz3k/nodepath-click
NodePath option to find target in editor node tree
2017-08-11 10:34:17 +02:00
Andreas Haas
9d593481f6
Inspector: Right click on resource opens sub-menu.
Fixes #9052
2017-08-10 21:02:31 +02:00
Daniel J. Ramirez
273d2ab9d4 Several ui improvements (mostly margins)
Improved colors

Added some missing icons
2017-08-08 11:44:37 -05:00
Jakub Grzesik
87b881c6fd NodePath option to find target in editor node tree 2017-08-08 13:06:24 +02:00
Indah Sylvia
5ae78fdf6a Makes all Godot API's methods Lower Case 2017-08-07 18:24:35 +07:00
Juan Linietsky
475e8b28b2 keep default exported script values unless overriden, closes #8127 2017-08-06 09:33:59 -03:00
Rémi Verschelde
3a3915b726 Merge pull request #9990 from GodotExplorer/pr-fix-stretch-ratio
Fix errors with stretch ratio
2017-07-31 14:05:56 +02:00
Geequlim
0b11062d93 Fix property type expose of Control.stretch_ratio.
Fix set integer value from inspector to round instead of floor.
2017-07-31 14:15:38 +08:00
Rémi Verschelde
5549407308 Revert "PropertyEditor: display "Off" if property is false"
This reverts commit 5adb94e726.
It was actually not a bug, see discussion on #9898.
2017-07-30 22:08:26 +02:00
Poommetee Ketson
93f0177737 PropertyEditor: Fix easing_curve blocking popup input 2017-07-29 17:38:16 +07:00
Poommetee Ketson
5adb94e726 PropertyEditor: display "Off" if property is false 2017-07-27 13:12:28 +07:00
Juan Linietsky
25678b1876 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Rémi Verschelde
5a42bbaace Merge pull request #9482 from Noshyaar/pr-ramp
Fix shrunk ColorPickers
2017-07-18 07:52:32 +02:00
Poommetee Ketson
668d00ff2d Fix ColorPicker to use theme constants 2017-07-18 09:43:16 +07:00
Juan Linietsky
bbada82f80 -Reorganized all properties of project settings (Sorry, Again).
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Poommetee Ketson
68fdcc4f83 Fix duplicated resource_local_to_scene 2017-07-09 13:26:10 +07:00
Juan Linietsky
d41978eb63 Usability improvements for folding. Unfortunately SpatialMaterial broke compatibility. 2017-06-25 18:57:28 -03:00
Juan Linietsky
760cdbe1a3 -Added folding to property editor, persistent on objects it edits
-Some changes to tree to support this properly
2017-06-25 17:31:22 -03:00
Poommetee Ketson
443e58e88c ColorPicker: fix DPI, hue & color update issues 2017-06-20 04:00:05 +07:00
Mariano Suligoy
f5185e7ba6 Fix ColorPicker's screen pick functionality 2017-06-19 09:23:57 -03:00
alexholly
935f730170 renamed all Rect3.pos to Rect3.position 2017-06-09 15:54:02 +02:00
Rémi Verschelde
f8d7670e82 Merge pull request #9038 from AlexHolly/rect2-rename-pos
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
Juan Linietsky
01198cb896 Removed stupid right arrow to edit resource. Now simply click it.. 2017-06-04 20:35:45 -03:00
alexholly
a3c90b0293 renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
Juan Linietsky
5b3709d309 Removal of InputEvent as built-in Variant type..
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Rémi Verschelde
231511b2a6 Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
2017-05-20 07:16:11 +02:00
Juan Linietsky
98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
Jose M Pan
02f02972e8 Fix click area for bool parameter
This fixes the issue #8551: VisualScript: can't change bool parameter in
function call
2017-05-09 14:35:48 -03:00
volzhs
bb81293047 New customizable editor theme 2017-05-09 17:46:54 +09:00
Rémi Verschelde
5a6ccce97d Merge pull request #8612 from magyar123/pr-show-dict-contents
Make property editor display dictionaries (read only)
2017-05-02 11:33:05 +02:00
Rémi Verschelde
82fa41bce3 Merge pull request #8541 from RandomShaper/opt-out-capitalization
Add setting to opt-out of capitalization in property inspectors
2017-05-02 11:25:27 +02:00
mbalint12
a542372642 Make property editor display dictionaries (read only) 2017-05-01 14:25:47 +02:00
Pedro J. Estébanez
7b315dc666 Add setting to opt-out of capitalization in the property inspector 2017-04-27 08:46:16 +02:00
Andreas Haas
c530d8f43c
Fix recognition of resource extensions.
Also removes a related debug print.
2017-04-26 23:07:23 +02:00
Rémi Verschelde
367f21e123 Merge pull request #8359 from volzhs/script-filename-master
Show script filename instead of thumbnail
2017-04-20 02:09:21 +02:00
Andreas Haas
065261cceb Merge pull request #8389 from volzhs/inspector-button-margin-master
Make buttons closer in Inspector panel
2017-04-14 17:52:18 +02:00
volzhs
79182ced83 Make buttons closer in Inspector panel 2017-04-14 00:03:54 +09:00
volzhs
10608c0993 Show script filename instead of thumbnail 2017-04-12 00:07:35 +09:00
volzhs
c3e6759ca1 Prevent to take too much space for long vertical texture 2017-04-11 20:37:22 +09:00
Sergey Pusnei
8589ca3903 Rename [gs]et_pos to [gs]et_position for Controls
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Rémi Verschelde
df61dc4b2b Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
volzhs
6ac4969cdd Fix crash when change project settings 2017-04-03 17:57:50 +09:00
Ray Koopa
c0c4ba4e94 Make Create New Node dialog resizable and burninate old dialog 2017-03-18 11:21:50 +01:00
Rémi Verschelde
5dbf1809c6 A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?

I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon

A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format

A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
49c065d29c Refactoring: rename tools/editor/ to editor/
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00
Renamed from tools/editor/property_editor.cpp (Browse further)