Commit Graph

126 Commits

Author SHA1 Message Date
Juan Linietsky
09883dba75 few bugs fixed thanks to explicit bool constructor and clang.
explicit bool constructor has thus now been removed, as it served it's mission!
2017-08-05 21:43:10 -03:00
Daniel J. Ramirez
d07a20641e Do not allow multiple data connections to the same data input slot, fixes #6357.Improved curve rendering when nodes are close. 2017-07-27 16:39:53 -05:00
Rémi Verschelde
8ac170fe37 Merge pull request #9764 from Noshyaar/pr-fix2
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Poommetee Ketson
9f7b85f7b8 Add object type hint for docs 2017-07-23 18:57:03 +07:00
Rémi Verschelde
594d64e990 Merge pull request #9765 from Noshyaar/pr-clang
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-23 13:16:48 +02:00
Rémi Verschelde
580011744f Merge pull request #9758 from vnen/fix-vs-return
VS: Fix return value for user-defined functions
2017-07-23 13:09:12 +02:00
Rémi Verschelde
deb8dc9373 Merge pull request #9741 from vnen/fix-vs-customnode
Fix issues with custom nodes in visual script
2017-07-23 13:06:03 +02:00
Rémi Verschelde
b965e260c7 Merge pull request #9706 from djrm/theme_fixes
Icons can now be added inside line edits (Search icon).
2017-07-23 13:03:53 +02:00
Poommetee Ketson
ceb9ade0ef Clang-formatting *.cpp and *.h (some files excluded) 2017-07-22 18:14:08 +07:00
George Marques
eac1ad1bef VS: Fix return value for user-defined functions 2017-07-22 01:15:55 -03:00
George Marques
4a3a63eb7d Update a VS custom node when its script changes 2017-07-21 23:45:57 -03:00
George Marques
62a62a4300 Fix issues with custom nodes in visual script
- Doesn't crash anymore.
- Inputs are properly transferred.
2017-07-21 00:05:56 -03:00
Juan Linietsky
35000d1713 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Daniel J. Ramirez
63aa5b9941 Icons can now be added inside line edits (Search icon).
Fixed window title bar margins.

fixed compilation error
2017-07-19 13:23:16 -05:00
Juan Linietsky
04f5f84904 -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
Daniel J. Ramirez
89c8439993 Improvements and fixes for the default theme.
Added customizable border size and window highlight.
2017-07-16 13:23:59 -05:00
Rémi Verschelde
e5cab81aae Some more typo fixes for "threshold"
Looks like @reduz really does not like that word.
2017-07-15 12:01:46 +02:00
ducdetronquito
cf10dfd48a [#7212] Fixed missing 'Variant' return values in documentation. 2017-07-11 13:25:51 +02:00
Juan Linietsky
b0c39a1a34 -Many fixes to VisualScript, fixed property names, etc.
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Rémi Verschelde
ade41350c4 Merge pull request #9360 from GodotExplorer/pr-external-editor-language-check
Better user experience with external text editors.
2017-06-27 08:15:54 +02:00
geequlim
512d752ea3 Better user expirence with external text editors.
Implements open_in_external_editor for subclasses of ScriptLanguage.
Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
2017-06-27 12:55:16 +08:00
Juan Linietsky
23ac5bc34d -Fixed SCREEN_TEXTURE and other related 2D shader parameters.
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Andreas Haas
22e98d42a5 Add ability to use custom script templates.
Templates will be loaded from .godot/script_templates
For now they're disabled for GDNative.

Ideas for further improvements:

- Add a "Save as Template" option to the script editor, as it can normally only save to res://
- Support more placeholders / custom placeholders
2017-06-13 20:03:08 +00:00
Rémi Verschelde
7014d26f49 Merge pull request #9038 from AlexHolly/rect2-rename-pos
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
alexholly
9533bd3099 renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
Paulb23
68e2e63e3e Added members overview 2017-05-29 12:56:33 +01:00
Juan Linietsky
e113ce6546 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
8d37f9d38f Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
2017-05-20 07:16:11 +02:00
Juan Linietsky
1190043076 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
volzhs
2df87edf89 Revert "Add new editor and default theme (WIP)"
This reverts commit d08fe30020.
2017-05-03 06:19:15 +09:00
Daniel J. Ramirez
d08fe30020 Add new editor and default theme (WIP) 2017-04-27 08:04:57 +02:00
Rémi Verschelde
aaba3ab22b Merge pull request #8417 from neikeq/hello-there
External editor improvements and fixes
2017-04-20 02:20:04 +02:00
Paulb23
b14c037cc9 Convert indent on save 2017-04-18 12:30:52 +01:00
Ignacio Etcheverry
f1fcfd4ac9 External editor improvements and fixes
Notable changes:

- Now ScriptLanguages have the option to override the global external editor setting.
If `ScriptLanguage::open_in_external_editor()` returns `ERR_UNAVAILABLE` (which it does by default), then the global external editor option will be used.
- Added formatting to the external editor execution arguments. Now it's possible to write something like this: `{project} -g {file}:{line}:{col}`.
- `VisualScript::get_member_line()` now can return the line of functions (well, it returns the id of the _Function_ node of the function). I guess there is nothing else we can get a "line" from.

Fixes:

- Fixes a bug where `ScriptEditor::script_goto_method()` would not work if the script is not already open in the built-in editor.
- Fixes wrong DEFVAL for `cursor_set_column` and `cursor_set_line` in TextEdit.
- `Script::get_member_line()` now returns -1 ("found nothing") by default.
2017-04-17 01:51:30 +02:00
Sergey Pusnei
b1ce8cbc2a 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
db85b6c88f Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
Rémi Verschelde
6f331b564e Fix typos in source code using codespell
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Ray Koopa
0537d4ac91 Make Create New Node dialog resizable and burninate old dialog 2017-03-18 11:21:50 +01:00
Rémi Verschelde
cf1590bb62 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
4ac67c3c30 Add a bunch of missing Godot headers in own files 2017-03-05 15:47:28 +01:00
Rémi Verschelde
9ec232d436 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
Rémi Verschelde
4c68cc305f Merge pull request #7930 from tagcup/missing_fixme_comments
Added missing FIXMEs in PR #7878

[ci skip]
2017-03-02 23:32:48 +01:00
Ferenc Arn
f6290a267e Added missing FIXMEs in PR #7878 2017-03-02 16:13:01 -06:00
Rémi Verschelde
a1f5a8b5a8 Merge pull request #7878 from RebelliousX/else
Bunch of missing `else` statements and general logic
2017-02-28 23:03:10 +01:00
Rémi Verschelde
8b06539a81 Merge pull request #7787 from SaracenOne/nan_and_inf
Inf and NaN support added to GDScript
2017-02-28 23:00:30 +01:00
Saracen
c38ec226ef Inf and NaN support added to GDScript. 2017-02-28 21:52:33 +00:00
Thaer Razeq
3b0adcf2c5 Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs
- Remove some checks (always false: unsigned never < 0)
- Fix some if statements based on reviews.
- Bunch of missing `else` statements
2017-02-28 07:52:02 -06:00
Juan Linietsky
3fcd90eeec -renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Hein-Pieter van Braam
9484bdcc3d Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer

This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Rémi Verschelde
876d9988e1 Merge pull request #7784 from hpvb/kill-scs-macro
Remove use of _SCS
2017-02-13 11:11:01 +01:00