summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'Rémi Verschelde2019-08-172-2/+2
| | | | | | | | | | The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is (conditionally defines the error message). There are a few ERR_EXPLAINC calls for C-strings where String is not included which can stay as is to avoid adding additional _MSGC macros just for that. Part of #31244.
* Export: Remove temp files from cache after exportRémi Verschelde2019-08-121-0/+4
| | | | | | | | | So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
* Merge pull request #31227 from profan/fix/err-explain-usagesRémi Verschelde2019-08-096-52/+22
|\ | | | | Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", "modules/gdnative", "modules/gdscript" directories.
| * Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", ↵Robin Hübner2019-08-096-52/+22
| | | | | | | | "modules/gdnative", "modules/gdscript" directories.
* | Expression before 'is' may be nullCameron Reikes2019-08-091-0/+4
|/
* Merge pull request #31041 from 2shady4u/masterRémi Verschelde2019-08-051-0/+1
|\ | | | | Mark class_name line as safe in editor
| * Mark class_name line as safe in editorshaderbeast2019-08-021-0/+1
| |
* | Add a reference to pow to the description of exp.Kaligule2019-07-291-0/+1
| | | | | | | | | | | | | | | | | | This might be especially usefull since godot script doesn't support ** or ^ as operators, so beginners might search for the exponential function, when what they really need is the pow function. This is exactly what happened to me and since I couldn't find helpfull information in the documentation I had to look it up online, where I found the answer on a helpfull [reddit thread](https://www.reddit.com/r/godot/comments/3mvwz0/how_do_i_do_exponents_in_godot/). @akien-mga told me how to reference methods here: godotengine#30909
* | Merge pull request #30849 from bojidar-bg/7898-mixed-indentationRémi Verschelde2019-07-272-2/+40
|\ \ | | | | | | Disallow using of both tabs and spaces for indentation in the same file
| * | Disallow using of both tabs and spaces for indentation in the same fileBojidar Marinov2019-07-262-2/+40
| | | | | | | | | | | | Closes #7898
* | | Inspector: Make default float step configurableRémi Verschelde2019-07-231-1/+1
|/ / | | | | | | | | | | | | | | | | | | Also allow lifting the decimal step formatting with a hint range step of 0. A new `range_step_decimals()` is added for this to avoid breaking compatibility on the general purpose `step_decimals()` (which still returns 0 for an input step of 0). Supersedes #25470. Partial fix for #18251.
* | doc: Sync classref with current sourceRémi Verschelde2019-07-221-33/+33
| |
* | Merge pull request #30693 from Chaosus/lerp_angleRémi Verschelde2019-07-203-0/+37
|\ \ | | | | | | Added lerp_angle built-in function
| * | Added lerp_angles built-in functionChaosus2019-07-203-0/+37
| | | | | | | | | | | | | | | Co-authored-by: Xrayez <https://github.com/Xrayez> Co-authored-by: DleanJeans <https://github.com/DleanJeans>
* | | Merge pull request #30576 from qarmin/lgtm_coverageRémi Verschelde2019-07-202-4/+0
|\ \ \ | |/ / |/| | Changed some code reported by LGTM and Coverity
| * | Changed some code showed in LGTM and Coverageqarmin2019-07-202-4/+0
| | |
* | | Add integer posmod and rename default arg namesAaron Franke2019-07-183-22/+69
| | | | | | | | | | | | | | | "posmod" is the integer version of "fposmod". We do not need a "mod" because of the % operator. I changed the default arg names from "x" and "y" to "a" and "b" because they are not coordinates. I also changed pow's arg names to "base" and "exp". Also, I reorganized the code in the VS built-in funcs switch statement.
* | | Merge pull request #30648 from NilsIrl/useless_castsRémi Verschelde2019-07-181-2/+2
|\ \ \ | | | | | | | | Remove useless casts to String
| * | | Remove useless casts to StringNils ANDRÉ-CHANG2019-07-171-2/+2
| | | |
* | | | Fix stack underflows when yielding twiceBojidar Marinov2019-07-171-49/+1
|/ / / | | | | | | | | | | | | Also, refactor GDScriptFunctionState::_signal_callback, removing some excessive repetition. Fixes #30269.
* | | Merge pull request #30567 from NilsIrl/static_func_inside_classRémi Verschelde2019-07-161-0/+4
|\ \ \ | | | | | | | | Show static functions inside classes in method list
| * | | Show static functions inside classes in method listNils ANDRÉ-CHANG2019-07-151-0/+4
| |/ /
* / / Fix unreachable code detection in match statementsShiqing2019-07-131-2/+19
|/ /
* / Use base `Color()` constructors instead of `Color::html()`Hugo Locurcio2019-07-081-2/+2
|/ | | | | This results in slightly smaller binaries (-17 KB for an editor binary) as no strings need to be allocated.
* Merge pull request #30352 from bojidar-bg/28727-enum-value-checkRémi Verschelde2019-07-061-0/+3
|\ | | | | Fix parsing of enums allowing for juxtaposed identifiers
| * Fix parsing of enums allowing for juxtaposed identifiersBojidar Marinov2019-07-051-0/+3
| | | | | | | | Fixes #28727
* | Parse more informations for code completionGeequlim2019-07-042-76/+145
| |
* | Merge pull request #30289 from bojidar-bg/29586-class-name-constantRémi Verschelde2019-07-032-10/+15
|\ \ | | | | | | Fix inheriting from class_name messing up constants
| * | Fix inheriting from class_name messing up constantsBojidar Marinov2019-07-032-10/+15
| |/ | | | | | | Fixes #29586
* / Fix parsing of arguments in constant expressionsBojidar Marinov2019-07-032-21/+13
|/ | | | Fixes #8006
* Merge pull request #28884 from vnen/yield-resume-stackRémi Verschelde2019-07-011-8/+41
|\ | | | | Keep GDScript functions in stack while yielding
| * Show function name in debugger stack traceGeorge Marques2019-05-141-2/+2
| | | | | | | | | | Also show script and line when the instance is gone when resuming from yield.
| * Keep GDScript functions in stack while yieldingGeorge Marques2019-05-141-6/+39
| | | | | | | | | | | | | | | | | | | | This prevents GDScript functions from leaving the stack too soon when they are resuming from yield, allowing the ones expecting it to finish to know the caller. Helps debugging cases when you use: `yield(function_which_yields(), "completed")` since now it shows the call that resumed that function.
* | Merge pull request #29980 from Dentrax/directed-by-qarminRémi Verschelde2019-07-011-2/+2
|\ \ | | | | | | Fix some editor crashes
| * | fix some crashesFurkan Türkal2019-07-011-2/+2
| | |
* | | Merge pull request #30126 from qarmin/remove_unnecessary_codeRémi Verschelde2019-07-012-3/+1
|\ \ \ | | | | | | | | Remove unnecessary code and add some error explanations
| * | | Remove unnecessary code and add some error explanationsqarmin2019-07-012-3/+1
| | | |
* | | | Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-1/+1
|\ \ \ \ | | | | | | | | | | Replace ` + "/" + ` with `String::file_add()`
| * | | | Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-1/+1
| | | | |
* | | | | Merge pull request #30177 from hbina/use_FALLTHROUGH_macroRémi Verschelde2019-06-291-4/+8
|\ \ \ \ \ | | | | | | | | | | | | Applied some of FALLTHROUGH macro usage from #30122
| * | | | | Many fallthrough switch cases now have the FALLTHROUGH macro to tell the ↵hbina0852019-06-291-4/+8
| | |/ / / | |/| | | | | | | | | | | | | compiler that this is intended.
* | | | | Add support for creating editor icons per moduleAndrii Doroshenko (Xrayez)2019-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functionality is similar to how `doc_classes` are retrieved per module. The build system will search for custom icons path defined per module via `get_icons_path()` method in `config.py` or default icons path. If such paths don't exist, only the editor's own icons will be built. Most module icons were moved from editor/icons to respective modules.
* | | | | Merge pull request #30134 from Calinou/doc-proofreadRémi Verschelde2019-06-281-82/+79
|\ \ \ \ \ | | | | | | | | | | | | Proofread and improve the whole class reference
| * | | | | Proofread and improve the whole class referenceHugo Locurcio2019-06-271-82/+79
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
* / / / / Fixed regression bug caused in #30095 and actually fix the issue it was ↵unknown2019-06-281-19/+7
|/ / / / | | | | | | | | | | | | supposed to fix(#26850)
* | | | Merge pull request #29941 from qarmin/redundant_code_and_othersRémi Verschelde2019-06-274-10/+7
|\ \ \ \ | | | | | | | | | | Remove redundant code, possible NULL pointers and others
| * | | | Some code changed with Clang-Tidyqarmin2019-06-264-10/+7
| | |/ / | |/| |
* | | | Fixed parser treating compound assignment the same as assignment which gave ↵unknown2019-06-261-2/+1
| | | | | | | | | | | | | | | | wrong argument usage count
* | | | Extends wrapi/wrapf docsChaosus2019-06-251-0/+16
|/ / /
* | | Merge pull request #29866 from ↵Rémi Verschelde2019-06-191-27/+35
|\ \ \ | | | | | | | | | | | | | | | | akien-mga/nothing-that-surrounds-us-is-object-all-is-subject GDScript: Improve error on Object to Object invalid argument calls