summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2017-09-03Fixes language overridden external editorsIgnacio Etcheverry
2017-09-02Fix typos 'a' and 'an'Poommetee Ketson
2017-09-02Fix use of unitialized variablesHein-Pieter van Braam
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-08-29Merge pull request #10745 from neikeq/fix-docdata-and-stuffJuan Linietsky
DocData and virtual method type hints fixes
2017-08-29Makes built-in vararg methods actual vararg methodsIgnacio Etcheverry
- Removes hardcoded parameters from built-in vararg methods and adds METHOD_FLAG_VARARG to them. - Makes EditorHelp display built-in vararg methods correctly.
2017-08-29DocData and type hints fixesIgnacio Etcheverry
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-28-Some fixes to code completion.Juan Linietsky
-Fix getter in code completion being displayed when it shouldn't -Clean up preview generation for editors and exposed it as editor plugin
2017-08-27-Moved script run to editor, removed from projectJuan Linietsky
-fixed to code completion -fix shader crash bug reported by tagcup
2017-08-27Fix a crash in gdscript callbacksHein-Pieter van Braam
This fixes a crash running the 'goltorus' project.
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-26Add two missing Null checksHein-Pieter van Braam
These Null checks were removed in #10581 but actually changed the logic of the functions in this case. This fixes #10654
2017-08-25Merge pull request #10581 from hpvb/fix-gcc6+Rémi Verschelde
Make cast_to a static member of Object.
2017-08-25Implemented, The Amazing Zylann Hack (tm), fixes #10603Juan Linietsky
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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-24GDScript: More reliable check if loading a template.Andreas Haas
Prevents showing some useless parse errors in the console.
2017-08-24Fix mismatched signatures for GDScriptLanguage::complete_codeRémi Verschelde
2017-08-24-Code completion for enumerationsJuan Linietsky
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-23Changed MethodBind API to request information from methods. It's much claner ↵Juan Linietsky
now. Also changed PropertyInfo to include informatino about class names.
2017-08-23Merge pull request #10542 from karroffel/gdscript-match-indexRémi Verschelde
support enums and nested constants in match statement
2017-08-22Removed unnecessary returns and break statementsWilson E. Alvarez
2017-08-22support enums and nested constants in match statementKarroffel
The initial version of the pattern matcher in GDScript does not allow matching on nested identifiers, only one identifiers available in the current scope. With the introduction of enums to GDScript that's a huge missing feature. This commit makes the parser accept indexed constants and variables to properly support enums.
2017-08-22Merge pull request #10340 from Rubonnek/remove-unnecessary-assignmentsRémi Verschelde
Removed unnecessary assignments
2017-08-22Merge pull request #10225 from Noshyaar/mapRémi Verschelde
GDScript Built-in: add inverse_lerp & range_lerp
2017-08-21Removed unnecessary assignmentsWilson E. Alvarez
2017-08-20Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky
Adds Engine::is_editor_hint() method
2017-08-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-18GDScript Built-in: add inverse_lerp & range_lerpPoommetee Ketson
2017-08-17Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez
2017-08-16Merge pull request #10307 from Rubonnek/update-argument-namesRémi Verschelde
Updated function argument names
2017-08-16Revive inspector property evaluationPedro J. Estébanez
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-12Updated function argument namesWilson E. Alvarez
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-08push variable later when created, to avoid self-referencing as a valid case, ↵Juan Linietsky
closes #6111
2017-08-07Implement len() gdscript built-in function for python users, closes #1960Juan Linietsky
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-07-26Fix $a/b being parsed as divisionBojidar Marinov
2017-07-25Merge pull request #9731 from Xrayez/gdscript-completionRémi Verschelde
Update GDScript completion names for Pool*Arrays
2017-07-25fix a regression (GDScript) from e00630bKarroffel
This removes `not` from the variable safe list of keywords. Before that this was a valid expression: self.!(some_arg) The other fix is just a forgotten boolean negation.
2017-07-25Update GDScript completion names for Pool*ArraysAndrii Doroshenko (Xrayez)
Notice: GDScript tokenizer used the old PoolFloatArray name. Renamed PoolFloatArray to PoolRealArray. Moved "project_settings.h" down one line to comply with the clang-format rules. Fixes #9638 Closed pull request #9714 because I messed up with commits, sorry!
2017-07-25Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-callRémi Verschelde
Make GDScript allow some keywords as identifiers
2017-07-23Make GDScript allow some keywords as identifiersBojidar Marinov
Fixes #8085 Added some comments around the use of is_token_literal, as discussed.
2017-07-22Clang-formatting *.cpp and *.h (some files excluded)Poommetee Ketson
2017-07-19-Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky
-Added system for feature overrides, it's pretty cool :)
2017-07-19Add object type hint for docsPoommetee Ketson
2017-07-17-Reorganized all properties of project settings (Sorry, Again).Juan Linietsky
(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-11Merge pull request #8573 from neikeq/gdfs-completedRémi Verschelde
Adds "completed" signal to GDFunctionState
2017-06-27Better user expirence with external text editors.geequlim
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-24Merge pull request #8783 from bojidar-bg/fix-range-loop-typeRémi Verschelde
Fix for..in range() resulting in floats instead of ints
2017-06-23Remove methods from code completion which are already exposed by properties, ↵Juan Linietsky
makes completion cleaner and more close to the documentation.