aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Disallow assignment to constants and expressionsBojidar Marinov2016-12-291-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #6221, fixes #6824
* | | | | | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-0113-13/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | | | Merge pull request #6802 from henriquelalves/masterRémi Verschelde2016-11-112-2/+6
|\ \ \ \ \ | |/ / / / |/| | | | Added small modification on gdscript parser to allow users insert '+' before variables
| * | | | Added small modification on parser for '+'Henrique L. Alves2016-10-222-2/+6
| | | | |
* | | | | Make GDScript parser ignore floating strings in class definitionBojidar Marinov2016-11-031-1/+10
| | | | | | | | | | | | | | | | | | | | Fixes #1320
* | | | | style: Fix PEP8 blank lines issues in Python filesRémi Verschelde2016-11-011-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde2016-11-011-2/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #6564 from ↵Rémi Verschelde2016-10-221-2/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | SuperUserNameMan/gdscript_opcode_line_opcode_breakpoint fixes #6487, GDscript compiler ignores OPCODE_LINE and OPCODE_BREAKPOINT in Release mode
| * | | | Fixes #6487, GDscript compiler ignores OPCODE_LINE and OPCODE_BREAKPOINT in ↵yg2f2016-09-201-2/+4
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge pull request #6850 from akien-mga/pr-scsub-shebangRémi Verschelde2016-10-171-0/+2
|\ \ \ \ | | | | | | | | | | SCsub: Add python shebang as a hint for syntax highlighting
| * | | | SCsub: Add python shebang as a hint for syntax highlightingRémi Verschelde2016-10-171-0/+2
| | | | | | | | | | | | | | | | | | | | Also switch existing shebangs to "better" /usr/bin/env python.
* | | | | Merge pull request #6692 from bojidar-bg/add-char-to-gd-vs-scriptRémi Verschelde2016-10-172-0/+16
|\ \ \ \ \ | |/ / / / |/| | | | Add `String char(int ascii)` function to GDScript and Visual Script
| * | | | Add `String char(int ascii)` function to GDScript and Visual ScriptBojidar Marinov2016-10-032-0/+16
| |/ / / | | | | | | | | | | | | Just hope it doesn't crashes with that much pointer math... :smile:
* | | | modules: Clone env in each moduleRémi Verschelde2016-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #6813 from Faless/fix_6801_bisRémi Verschelde2016-10-142-12/+0
|\ \ \ \ | | | | | | | | | | Re-Allow absolute paths, make them behave correctly
| * | | | Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli2016-10-132-12/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5.
* / | | Adapt overlooked instances of zero-based column numbersPedro J. Estébanez2016-10-131-5/+5
|/ / /
* | | Merge pull request #6775 from RandomShaper/one-based-col-numbersRémi Verschelde2016-10-111-1/+1
|\ \ \ | | | | | | | | Make text column numbers one-based
| * | | Make text column numbers one-basedPedro J. Estébanez2016-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge pull request #6694 from bojidar-bg/gdscript-newline-functionsRémi Verschelde2016-10-111-2/+30
|\ \ \ \ | | | | | | | | | | Allow for linebreaks in function calls and definitions and yeild/signal.
| * | | | Allow for linebreaks in function calls and definitions and yeild/signal.Bojidar Marinov2016-10-031-2/+30
| | |/ / | |/| | | | | | | | | | (Plus maybe a few other things)
* | | | i18n: Fix string that broke msgmergeRémi Verschelde2016-10-091-1/+1
| |/ / |/| |
* | | Merge pull request #6730 from Faless/fix_export_crash_errorRémi Verschelde2016-10-091-0/+10
|\ \ \ | | | | | | | | Throw an error when exporting a resource class
| * | | Throw an error when exporting a resource classFabio Alessandrelli2016-10-061-0/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | "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
* / / Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli2016-10-042-1/+14
|/ /
* | Fix build for templatesGeorge Marques2016-09-122-0/+6
| |
* | Do ctrl-click on any code identifier to go to definiton or help page.Juan Linietsky2016-09-125-1/+482
| |
* | Merge pull request #6281 from bojidar-bg/gdscript-ternary-operatorJuan Linietsky2016-09-113-14/+125
|\ \ | | | | | | Ternary operator in GDScript (a if x else b)
| * | Ternary operator in GDScript (a if x else b)Bojidar Marinov2016-08-253-14/+125
| | | | | | | | | | | | Fixes #1961
* | | Added constants from types in code completion, somehow this was never added.Juan Linietsky2016-09-111-1/+12
| | | | | | | | | | | | Stuff like Label.ALIGN_CENTER or Mesh.PRIMITIVE_TRIANGLES did not complete..
* | | Merge pull request #5920 from 29jm/fix-warningsJuan Linietsky2016-09-102-3/+3
|\ \ \ | | | | | | | | Fix some more warnings
| * | | Fix some comparisons between signed and unsigned integersJohan Manuel2016-08-131-2/+2
| | | |
| * | | Fix some warnings about misleading indentationJohan Manuel2016-08-131-2/+2
| | | |
| * | | Remove some unused variablesJohan Manuel2016-08-131-1/+1
| | | |
* | | | Merge pull request #6292 from bojidar-bg/gdscript-add-enumsJuan Linietsky2016-09-103-0/+111
|\ \ \ \ | | | | | | | | | | Adds enums to GDScript
| * | | | Add enum naming, by assinging a given enum's values to a DictBojidar Marinov2016-08-271-0/+20
| | | | |
| * | | | Adds enums to GDScriptBojidar Marinov2016-08-273-0/+91
| | |/ / | |/| | | | | | | | | | Fixes #2966
* | | | Renamed the bind_native functions to bind_vararg, should make it show the ↵Juan Linietsky2016-09-072-2/+2
| | | | | | | | | | | | | | | | documentation more clearly and also make it easier to bind to C#
* | | | Clean up GDScript templateRăzvan Cosmin Rădulescu2016-09-051-7/+5
| | | |
* | | | More visual script workJuan Linietsky2016-08-252-0/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | -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
* | | Proper function/property selection in visual script editing for property.Juan Linietsky2016-08-232-0/+38
| | | | | | | | | | | | This one has an ordered list, built-in description, search, etc.
* | | Brand new networked multiplayerJuan Linietsky2016-08-1910-62/+253
| | |
* | | Merge pull request #6055 from eska014/native-bind-rettypeRémi Verschelde2016-08-081-1/+1
|\ \ \ | | | | | | | | Allow documenting unexposed return types in bind_native_method
| * | | Allow documenting unexposed return types in bind_native_methodeska2016-08-061-1/+1
| | | | | | | | | | | | | | | | Document return type of `Object.call` and `GDScript.new`
* | | | Merge pull request #6045 from bojidar-bg/extends-on-placeholdersRémi Verschelde2016-08-081-2/+1
|\ \ \ \ | | | | | | | | | | Fix #5891 by not expecting the script instance to be a GDInstance
| * | | | Fix #5891 by not expecting the script instance to be a GDInstanceBojidar Marinov2016-08-051-2/+1
| | | | | | | | | | | | | | | | | | | | It could be a placeholder instance as well
* | | | | Added a simpler way to do sub-functions in both visual and gdscript with the ↵Juan Linietsky2016-08-082-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subcall node. With this, visual script is almost done (missing registering custom nodes from addon). All this is probably pretty broken, too and needs a lot of testing.
* | | | | Added yield() signal smart autocompletion.Juan Linietsky2016-08-063-1/+34
| | | | |
* | | | | Likely with bugs and with some features are missing, as well as profiler ↵Juan Linietsky2016-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | support, but VisualScript should be more or less done!
* | | | | VisualScript can now execute visual scripts, but there is no debugger or ↵Juan Linietsky2016-08-052-3/+10
|/ / / / | | | | | | | | | | | | profiler yet.