Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add two missing Null checks | Hein-Pieter van Braam | 2017-08-26 | 1 | -2/+6 |
| | | | | | | | These Null checks were removed in #10581 but actually changed the logic of the functions in this case. This fixes #10654 | ||||
* | Merge pull request #10581 from hpvb/fix-gcc6+ | Rémi Verschelde | 2017-08-25 | 5 | -75/+66 |
|\ | | | | | Make cast_to a static member of Object. | ||||
| * | Convert Object::cast_to() to the static version | Hein-Pieter van Braam | 2017-08-24 | 5 | -75/+66 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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/ | ||||
* | | Implemented, The Amazing Zylann Hack (tm), fixes #10603 | Juan Linietsky | 2017-08-25 | 3 | -0/+19 |
|/ | |||||
* | GDScript: More reliable check if loading a template. | Andreas Haas | 2017-08-24 | 1 | -1/+1 |
| | | | | Prevents showing some useless parse errors in the console. | ||||
* | Fix mismatched signatures for GDScriptLanguage::complete_code | Rémi Verschelde | 2017-08-24 | 1 | -1/+1 |
| | |||||
* | -Code completion for enumerations | Juan Linietsky | 2017-08-24 | 4 | -12/+150 |
| | | | | -Disabled GDNative and GDNativeScript so build compiles again | ||||
* | Changed MethodBind API to request information from methods. It's much claner ↵ | Juan Linietsky | 2017-08-23 | 1 | -6/+6 |
| | | | | | | now. Also changed PropertyInfo to include informatino about class names. | ||||
* | Merge pull request #10542 from karroffel/gdscript-match-index | Rémi Verschelde | 2017-08-23 | 1 | -1/+20 |
|\ | | | | | support enums and nested constants in match statement | ||||
| * | support enums and nested constants in match statement | Karroffel | 2017-08-22 | 1 | -1/+20 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Removed unnecessary returns and break statements | Wilson E. Alvarez | 2017-08-22 | 2 | -2/+4 |
|/ | |||||
* | Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments | Rémi Verschelde | 2017-08-22 | 3 | -21/+7 |
|\ | | | | | Removed unnecessary assignments | ||||
| * | Removed unnecessary assignments | Wilson E. Alvarez | 2017-08-21 | 3 | -21/+7 |
| | | |||||
* | | Merge pull request #10225 from Noshyaar/map | Rémi Verschelde | 2017-08-22 | 2 | -0/+32 |
|\ \ | |/ |/| | GDScript Built-in: add inverse_lerp & range_lerp | ||||
| * | GDScript Built-in: add inverse_lerp & range_lerp | Poommetee Ketson | 2017-08-18 | 2 | -0/+32 |
| | | |||||
* | | Merge pull request #10319 from neikeq/pr-engine-editor-hint | Juan Linietsky | 2017-08-20 | 1 | -1/+2 |
|\ \ | | | | | | | Adds Engine::is_editor_hint() method | ||||
| * | | Removes editor_hint from SceneTree | Ignacio Etcheverry | 2017-08-19 | 1 | -1/+2 |
| | | | |||||
* | | | Add closest_power_of_2 func and implement mix_rate/latency on OS X | Marcelo Fernandez | 2017-08-17 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #10307 from Rubonnek/update-argument-names | Rémi Verschelde | 2017-08-16 | 1 | -3/+3 |
|\ \ \ | | | | | | | | | Updated function argument names | ||||
| * | | | Updated function argument names | Wilson E. Alvarez | 2017-08-12 | 1 | -3/+3 |
| |/ / | |||||
* / / | Revive inspector property evaluation | Pedro J. Estébanez | 2017-08-16 | 1 | -1/+1 |
|/ / | | | | | | | | | | | | | | | | | | | 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. | ||||
* / | Removes type information from method binds | Ignacio Etcheverry | 2017-08-10 | 1 | -1/+1 |
|/ | |||||
* | push variable later when created, to avoid self-referencing as a valid case, ↵ | Juan Linietsky | 2017-08-08 | 1 | -2/+5 |
| | | | | closes #6111 | ||||
* | Implement len() gdscript built-in function for python users, closes #1960 | Juan Linietsky | 2017-08-07 | 2 | -0/+64 |
| | |||||
* | Makes all Godot API's methods Lower Case | Indah Sylvia | 2017-08-07 | 4 | -14/+14 |
| | |||||
* | Fix $a/b being parsed as division | Bojidar Marinov | 2017-07-26 | 1 | -1/+2 |
| | |||||
* | Merge pull request #9731 from Xrayez/gdscript-completion | Rémi Verschelde | 2017-07-25 | 2 | -3/+3 |
|\ | | | | | Update GDScript completion names for Pool*Arrays | ||||
| * | Update GDScript completion names for Pool*Arrays | Andrii Doroshenko (Xrayez) | 2017-07-25 | 2 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | 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! | ||||
* | | fix a regression (GDScript) from e00630b | Karroffel | 2017-07-25 | 2 | -2/+2 |
|/ | | | | | | | | | 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. | ||||
* | Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-call | Rémi Verschelde | 2017-07-25 | 3 | -141/+263 |
|\ | | | | | Make GDScript allow some keywords as identifiers | ||||
| * | Make GDScript allow some keywords as identifiers | Bojidar Marinov | 2017-07-23 | 3 | -141/+263 |
| | | | | | | | | | | Fixes #8085 Added some comments around the use of is_token_literal, as discussed. | ||||
* | | Clang-formatting *.cpp and *.h (some files excluded) | Poommetee Ketson | 2017-07-22 | 2 | -2/+2 |
|/ | |||||
* | -Renamed GlobalConfig to ProjectSettings, makes more sense. | Juan Linietsky | 2017-07-19 | 2 | -14/+14 |
| | | | | -Added system for feature overrides, it's pretty cool :) | ||||
* | Add object type hint for docs | Poommetee Ketson | 2017-07-19 | 1 | -2/+2 |
| | |||||
* | -Reorganized all properties of project settings (Sorry, Again). | Juan Linietsky | 2017-07-17 | 1 | -1/+1 |
| | | | | | (Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too) | ||||
* | Merge pull request #8573 from neikeq/gdfs-completed | Rémi Verschelde | 2017-07-11 | 1 | -0/+34 |
|\ | | | | | Adds "completed" signal to GDFunctionState | ||||
| * | Adds completed signal to GDFunctionState | Ignacio Etcheverry | 2017-06-23 | 1 | -0/+34 |
| | | |||||
* | | Better user expirence with external text editors. | geequlim | 2017-06-27 | 1 | -0/+1 |
| | | | | | | | | | | 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. | ||||
* | | Merge pull request #8783 from bojidar-bg/fix-range-loop-type | Rémi Verschelde | 2017-06-24 | 1 | -2/+2 |
|\ \ | | | | | | | Fix for..in range() resulting in floats instead of ints | ||||
| * | | Reimplement for..in range() so that it always results in ints | Bojidar Marinov | 2017-06-22 | 1 | -2/+2 |
| |/ | | | | | | | Fixes #8278, fixup of bfef8de1bc4f7a7b9617a7b181881129033a0b0e | ||||
* | | Remove methods from code completion which are already exposed by properties, ↵ | Juan Linietsky | 2017-06-23 | 1 | -2/+2 |
| | | | | | | | | makes completion cleaner and more close to the documentation. | ||||
* | | GdScript: Add signal autocompletion to emit_signal function | Mariano Suligoy | 2017-06-23 | 1 | -1/+1 |
|/ | |||||
* | Add ability to use custom script templates. | Andreas Haas | 2017-06-13 | 3 | -0/+20 |
| | | | | | | | | | | 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 | ||||
* | GDScript: Use "is" keyword for type checking. | Andreas Haas | 2017-05-27 | 7 | -8/+12 |
| | | | | | | | | | | | | | | | Replaces the `extends` keyword with `is` in the context of testing for type compatibility. `extends` is still used for declaring class inheritance. Example: ```gdscript extends Node2D func _input(ev): if ev is InputEventKey: print("yay, key event") ``` | ||||
* | Removal of InputEvent as built-in Variant type.. | Juan Linietsky | 2017-05-20 | 2 | -66/+4 |
| | | | | this might cause bugs I haven't found yet.. | ||||
* | Merge pull request #8798 from RandomShaper/gdfs-ext-check | Rémi Verschelde | 2017-05-18 | 2 | -4/+16 |
|\ | | | | | Add extended check option to GDFunctionState::is_valid() | ||||
| * | Add extended check option to GDFunctionState::is_valid() | Pedro J. Estébanez | 2017-05-17 | 2 | -4/+16 |
| | | |||||
* | | Removal of Image from Variant, converted to a Resource. | Juan Linietsky | 2017-05-17 | 2 | -2/+1 |
|/ | |||||
* | Fix #8674, and rename a few things for clarity | Bojidar Marinov | 2017-05-08 | 3 | -10/+16 |
| | |||||
* | Changed indent type settings | Paulb23 | 2017-04-26 | 1 | -1/+1 |
| |