Juan Linietsky
8963ca3d17
Fix code completion for new getnode syntax
2017-01-08 03:01:52 -03:00
Juan Linietsky
8b912d1115
-Fix bugs related to PoolVector crashes
...
-Added ability to request nodes using $Name in GDScript :)
2017-01-08 02:04:53 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
0f7af4ea51
-Changed most project settings in the engine, so they have major and minor categories.
...
-Changed SectionedPropertyEditor to support this
-Renamed Globals singleton to GlobalConfig, makes more sense.
-Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-05 09:16:00 -03:00
Juan Linietsky
9e477babb3
-GDScript support for accessing properties directly
...
-Added code lookup and code completion support for properties too
2017-01-04 17:37:45 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
dcc4ee21c1
Revert expression reduction from #7390
...
Fixes #7412 .
2017-01-02 20:01:27 +01:00
Rémi Verschelde
caddbbe174
Merge pull request #7390 from bojidar-bg/gdscript-assign-error
...
Disallow assignment to constants and expressions
2017-01-02 15:54:43 +01:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
Bojidar Marinov
0b077162a3
Disallow assignment to constants and expressions
...
Fixes #6221 , fixes #6824
2016-12-29 12:31:19 +02:00
Rémi Verschelde
7751a933a9
Merge pull request #6802 from henriquelalves/master
...
Added small modification on gdscript parser to allow users insert '+' before variables
2016-11-11 10:55:26 +01:00
Bojidar Marinov
074bcb2a7b
Make GDScript parser ignore floating strings in class definition
...
Fixes #1320
2016-11-03 12:26:38 +02:00
Rémi Verschelde
817dd7ccbb
style: Fix PEP8 blank lines issues in Python files
...
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
97c8508f5e
style: Start applying PEP8 to Python files, indentation issues
...
Done with `autopep8 --select=E1`, fixes:
- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-01 00:33:51 +01:00
Henrique L. Alves
6a4b4c7db4
Added small modification on parser for '+'
2016-10-22 14:26:48 -02:00
Rémi Verschelde
cf3ba3379f
Merge pull request #6564 from SuperUserNameMan/gdscript_opcode_line_opcode_breakpoint
...
fixes #6487 , GDscript compiler ignores OPCODE_LINE and OPCODE_BREAKPOINT in Release mode
2016-10-22 12:45:46 +02:00
Rémi Verschelde
e96c49f849
Merge pull request #6850 from akien-mga/pr-scsub-shebang
...
SCsub: Add python shebang as a hint for syntax highlighting
2016-10-17 20:13:18 +02:00
Rémi Verschelde
fc8ccd5b8c
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Rémi Verschelde
31e0e95362
Merge pull request #6692 from bojidar-bg/add-char-to-gd-vs-script
...
Add `String char(int ascii)` function to GDScript and Visual Script
2016-10-17 09:40:39 +02:00
Rémi Verschelde
da09c6131b
modules: Clone env in each module
...
This allows to pass include paths and flags only to a given thirdparty
library, thus preventing conflicts between their files (e.g. between
opus and openssl which both provide modes.h.
This also has the nice effect of making the compilation command smaller
for each module as it no longer related to all other modules, only the
final linking brings them together.
This however requires adding manually the ogg include path in opus
and vorbis when building against the builtin ogg, since it is no longer
in the global env.
Also simplified template 'thirdparty_<module>_sources' to
'thirdparty_sources'.
"Core" modules like cscript, gdscript, gridmap, ik and virtual_script
still use the main env_modules, but it could be changed if need be.
2016-10-15 11:50:41 +02:00
Rémi Verschelde
5e373c2a69
Merge pull request #6813 from Faless/fix_6801_bis
...
Re-Allow absolute paths, make them behave correctly
2016-10-14 18:14:05 +02:00
Pedro J. Estébanez
1b3dcac281
Adapt overlooked instances of zero-based column numbers
2016-10-13 12:57:14 +02:00
Fabio Alessandrelli
11349a786b
Revert "Add warning when (pre)loading paths with leading / ( #4280 - #3106 )"
...
Also closes : #6801
This reverts commit e59820ac94
.
2016-10-13 11:49:22 +02:00
Rémi Verschelde
f3106cddb3
Merge pull request #6775 from RandomShaper/one-based-col-numbers
...
Make text column numbers one-based
2016-10-11 09:09:49 +02:00
Rémi Verschelde
3df507d696
Merge pull request #6694 from bojidar-bg/gdscript-newline-functions
...
Allow for linebreaks in function calls and definitions and yeild/signal.
2016-10-11 09:06:14 +02:00
Pedro J. Estébanez
2f80965845
Make text column numbers one-based
...
Make one-based the column number on the code editor
Make one-based the column number for GDScript error messages
Make one-based the column number for shader code error messages
2016-10-10 11:56:45 +02:00
Rémi Verschelde
2fb5a00305
i18n: Fix string that broke msgmerge
2016-10-09 18:11:55 +02:00
Rémi Verschelde
5f7f73c6ae
Merge pull request #6730 from Faless/fix_export_crash_error
...
Throw an error when exporting a resource class
2016-10-09 14:44:10 +02:00
Fabio Alessandrelli
ee7df2c89a
Throw an error when exporting a resource class
...
"export var tex = Texture"
will now throw an error to avoid crashing the editor:
"Exported constant not a type or resource"
Fixes #6719 . Closes #6729
2016-10-06 20:24:32 +02:00
Fabio Alessandrelli
e59820ac94
Add warning when (pre)loading paths with leading / ( #4280 - #3106 )
2016-10-04 16:07:45 +02:00
Bojidar Marinov
16a0e4b235
Allow for linebreaks in function calls and definitions and yeild/signal.
...
(Plus maybe a few other things)
2016-10-03 21:40:18 +03:00
Bojidar Marinov
513c0265c4
Add `String char(int ascii)` function to GDScript and Visual Script
...
Just hope it doesn't crashes with that much pointer math... 😄
2016-10-03 19:17:54 +03:00
yg2f
217e09c79d
Fixes #6487 , GDscript compiler ignores OPCODE_LINE and OPCODE_BREAKPOINT in Release mode
...
When godot is in release mode, GDscript compiler does not generate
bytecodes for OPCODE_LINE and OPCODE_BREAKPOINT anymore.
This optimizes GDscript execution speed when the script contains a lot
of comments in blocs executed in loops.
Fixes #6487
2016-09-20 13:54:17 +02:00
George Marques
5ef64aae58
Fix build for templates
2016-09-12 22:40:46 -03:00
Juan Linietsky
37f1e86108
Do ctrl-click on any code identifier to go to definiton or help page.
2016-09-12 10:53:31 -03:00
Juan Linietsky
78f92dbcb9
Merge pull request #6281 from bojidar-bg/gdscript-ternary-operator
...
Ternary operator in GDScript (a if x else b)
2016-09-11 18:40:46 -03:00
Juan Linietsky
b83350f4b2
Added constants from types in code completion, somehow this was never added.
...
Stuff like Label.ALIGN_CENTER or Mesh.PRIMITIVE_TRIANGLES did not complete..
2016-09-11 12:20:28 -03:00
Juan Linietsky
fc61eb37ce
Merge pull request #5920 from 29jm/fix-warnings
...
Fix some more warnings
2016-09-10 12:21:02 -03:00
Juan Linietsky
e6dc95e499
Merge pull request #6292 from bojidar-bg/gdscript-add-enums
...
Adds enums to GDScript
2016-09-10 11:59:51 -03:00
Juan Linietsky
828e1c092f
Renamed the bind_native functions to bind_vararg, should make it show the documentation more clearly and also make it easier to bind to C#
2016-09-07 19:39:57 -03:00
Răzvan Cosmin Rădulescu
00e743b76a
Clean up GDScript template
2016-09-05 19:58:04 +02:00
Bojidar Marinov
88430f0962
Add enum naming, by assinging a given enum's values to a Dict
2016-08-27 15:56:51 +03:00
Bojidar Marinov
4ee82a2c38
Adds enums to GDScript
...
Fixes #2966
2016-08-27 15:27:02 +03:00
Juan Linietsky
9c6175db11
More visual script work
...
-Block switches to 2d/3d editor if editing visual script
-Added cast node in flow control
-Added ability to do RPC in visual script
-Comment nodes
-Fix bug with inverted cable in connecting backwards
-Copy and paste nodes, including from different scripts
2016-08-25 17:45:20 -03:00
Bojidar Marinov
9f66f59477
Ternary operator in GDScript (a if x else b)
...
Fixes #1961
2016-08-25 21:23:03 +03:00
Juan Linietsky
ad8f208bdb
Proper function/property selection in visual script editing for property.
...
This one has an ordered list, built-in description, search, etc.
2016-08-23 19:29:07 -03:00
Juan Linietsky
1add52b55e
Brand new networked multiplayer
2016-08-19 16:48:41 -03:00
Johan Manuel
a4674bda47
Fix some comparisons between signed and unsigned integers
2016-08-13 13:21:35 +02:00
Johan Manuel
67b29e3b9e
Fix some warnings about misleading indentation
2016-08-13 13:21:35 +02:00
Johan Manuel
046f94d3ac
Remove some unused variables
2016-08-13 13:21:35 +02:00