summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_functions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Refactor "GD" class prefix to "GDScript"Rémi Verschelde2017-11-161-1766/+0
|
* Added new wrap functionsChaosus2017-10-131-0/+22
|
* Changed/Added descriptions in @GDScript. Added examples. Fixed return types ↵William Taylor2017-09-121-2/+2
| | | | | | | of two … (#11146) Doc: Improved descriptions in GDScript docs Added examples and fixed return types of two methods.
* Implement String len()Poommetee Ketson2017-09-111-3/+11
|
* Makes built-in vararg methods actual vararg methodsIgnacio Etcheverry2017-08-291-7/+14
| | | | | - Removes hardcoded parameters from built-in vararg methods and adds METHOD_FLAG_VARARG to them. - Makes EditorHelp display built-in vararg methods correctly.
* DocData and type hints fixesIgnacio Etcheverry2017-08-291-4/+7
| | | | | | | - 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.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Merge pull request #10225 from Noshyaar/mapRémi Verschelde2017-08-221-0/+30
|\ | | | | GDScript Built-in: add inverse_lerp & range_lerp
| * GDScript Built-in: add inverse_lerp & range_lerpPoommetee Ketson2017-08-181-0/+30
| |
* | Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez2017-08-171-1/+1
|/
* Implement len() gdscript built-in function for python users, closes #1960Juan Linietsky2017-08-071-0/+63
|
* Add object type hint for docsPoommetee Ketson2017-07-191-2/+2
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-535/+509
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn2017-01-161-32/+32
| | | | | | than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
* Merge pull request #7532 from tagcup/pcg_prngRémi Verschelde2017-01-161-2/+2
|\ | | | | Replace the existing PRNG (Xorshift31) with (minimal) PCG-32.
| * Replace the existing PRNG (Xorshift31) with (minimal) PCG (XSH-RR variant ↵Ferenc Arn2017-01-151-2/+2
| | | | | | | | | | | | with 32-bit output, 64-bit state). PCG is better than many alternatives by many metrics (see www.pcg-random.org) including statistical quality with good speed.
* | Style: Fix statements ending with ';;'Rémi Verschelde2017-01-161-1/+1
| |
* | Style: Cleanups, added headers, renamed filesRémi Verschelde2017-01-161-1/+1
|/ | | | | | | | | Made sure files in core/ and tools/ have a proper Godot license header when written by us. Also renamed aabb.{cpp,h} and object_type_db.{cpp,h} to rect3.{cpp,h} and class_db.{cpp,h} respectively. Also added a proper header to core/io/base64.{c,h} after clarifying the licensing with the original author (public domain).
* Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-4/+4
|
* Merge pull request #7093 from bojidar-bg/named-colorsRémi Verschelde2017-01-111-0/+37
|\ | | | | Add named colors to GDScript/Visual Script/core.
| * Add named colors to GDScript/Visual Script/core.Bojidar Marinov2016-12-171-0/+37
| | | | | | | | Names and values taken from https://en.wikipedia.org/wiki/X11_color_names
* | Type renames:Juan Linietsky2017-01-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* | Moved JSON functions to built-in to_json, parse_json, validate_jsonJuan Linietsky2017-01-081-0/+74
| |
* | ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-1/+1
| | | | | | | | | | | | | | | | 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()
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ | | | | | | | 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 #6692 from bojidar-bg/add-char-to-gd-vs-scriptRémi Verschelde2016-10-171-0/+15
|\ | | | | Add `String char(int ascii)` function to GDScript and Visual Script
| * Add `String char(int ascii)` function to GDScript and Visual ScriptBojidar Marinov2016-10-031-0/+15
| | | | | | | | Just hope it doesn't crashes with that much pointer math... :smile:
* | Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli2016-10-131-4/+0
| | | | | | | | | | | | Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5.
* | i18n: Fix string that broke msgmergeRémi Verschelde2016-10-091-1/+1
| |
* | Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli2016-10-041-1/+6
|/
* Changed the way the step decimals are computed to a safer way, fixes many ↵Juan Linietsky2016-07-261-1/+1
| | | | issues.
* Removed unused variables (first pass)Rémi Verschelde2016-07-071-1/+0
| | | | Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
* Add @GDScript.type_existsGeequlim2016-06-181-0/+15
|
* Fix type hint for the seed argumentRémi Verschelde2016-06-181-2/+2
| | | | Closes #5260.
* Made many built-in gdscript functions return more descriptive errors, closes ↵Juan Linietsky2016-06-111-21/+49
| | | | #5150
* Fix Color8 constructor using wrong value rangeGeorge Marques2016-06-031-2/+2
| | | | Fix #5015
* GDScript: Fix method info for is_nan and is_infRémi Verschelde2016-05-171-2/+2
| | | As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
* ability to drag scenes from filesystem to tree for instancingJuan Linietsky2016-05-111-1/+1
|
* Revert "Merge pull request #3814 from est31/iterators_for_for"Rémi Verschelde2016-03-011-83/+0
| | | | | This reverts commit adf50568890cefb5fc354dbc1b21c4140bb410f9, reversing changes made to ee2bc87c0ef3cc1a432655ff935e60f32977904d.
* Add xrange builtin functionest312016-02-281-0/+83
| | | | Also update classes.xml in order to document xrange
* Merge pull request #3445 from akien-mga/masterRémi Verschelde2016-01-261-1/+4
|\ | | | | Add missing return for typeof() MethodInfo
| * Add missing return for typeof() MethodInfoRémi Verschelde2016-01-251-1/+4
| |
* | Added var2bytes and bytes2var to convet any variable to bytes and back. ↵Juan Linietsky2016-01-021-0/+66
| | | | | | | | Closes #2075
* | Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
| |
* | small fixes to color8Juan Linietsky2015-12-311-1/+1
| |
* | -Added Color8(r8,g8,b8,a8) function as well as .r8,.g8,.b8,.a8 members to ↵Juan Linietsky2015-12-311-0/+35
| | | | | | | | Color, to deal with colors in the 0-255 range. Closes #2345
* | force thread model to single-safe when running editor, fixes #2387Juan Linietsky2015-12-311-0/+1
| |
* | -Changed var2str and str2var in GDScript to use VariantWriter and VariantParserJuan Linietsky2015-12-311-2/+19
| | | | | | | | -It is now finally possible to parse back a variant from text!
* | replaced :var by :Variant in documentation, fixes #2897Juan Linietsky2015-12-141-2/+2
|/