summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_functions.cpp
AgeCommit message (Collapse)Author
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-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-22Merge pull request #10225 from Noshyaar/mapRémi Verschelde
GDScript Built-in: add inverse_lerp & range_lerp
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-07Implement len() gdscript built-in function for python users, closes #1960Juan Linietsky
2017-07-19Add object type hint for docsPoommetee Ketson
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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
2017-01-16Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn
than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
2017-01-16Merge pull request #7532 from tagcup/pcg_prngRémi Verschelde
Replace the existing PRNG (Xorshift31) with (minimal) PCG-32.
2017-01-16Style: Fix statements ending with ';;'Rémi Verschelde
2017-01-16Style: Cleanups, added headers, renamed filesRémi Verschelde
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).
2017-01-15Replace the existing PRNG (Xorshift31) with (minimal) PCG (XSH-RR variant ↵Ferenc Arn
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.
2017-01-11Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky
2017-01-11Merge pull request #7093 from bojidar-bg/named-colorsRémi Verschelde
Add named colors to GDScript/Visual Script/core.
2017-01-11Type renames:Juan Linietsky
Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
2017-01-08Moved JSON functions to built-in to_json, parse_json, validate_jsonJuan Linietsky
2017-01-02ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky
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()
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
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!
2016-12-17Add named colors to GDScript/Visual Script/core.Bojidar Marinov
Names and values taken from https://en.wikipedia.org/wiki/X11_color_names
2016-10-17Merge pull request #6692 from bojidar-bg/add-char-to-gd-vs-scriptRémi Verschelde
Add `String char(int ascii)` function to GDScript and Visual Script
2016-10-13Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli
Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5.
2016-10-09i18n: Fix string that broke msgmergeRémi Verschelde
2016-10-04Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli
2016-10-03Add `String char(int ascii)` function to GDScript and Visual ScriptBojidar Marinov
Just hope it doesn't crashes with that much pointer math... :smile:
2016-07-26Changed the way the step decimals are computed to a safer way, fixes many ↵Juan Linietsky
issues.
2016-07-07Removed unused variables (first pass)Rémi Verschelde
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-06-18Add @GDScript.type_existsGeequlim
2016-06-18Fix type hint for the seed argumentRémi Verschelde
Closes #5260.
2016-06-11Made many built-in gdscript functions return more descriptive errors, closes ↵Juan Linietsky
#5150
2016-06-03Fix Color8 constructor using wrong value rangeGeorge Marques
Fix #5015
2016-05-17GDScript: Fix method info for is_nan and is_infRémi Verschelde
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
2016-05-11ability to drag scenes from filesystem to tree for instancingJuan Linietsky
2016-03-01Revert "Merge pull request #3814 from est31/iterators_for_for"Rémi Verschelde
This reverts commit adf50568890cefb5fc354dbc1b21c4140bb410f9, reversing changes made to ee2bc87c0ef3cc1a432655ff935e60f32977904d.
2016-02-28Add xrange builtin functionest31
Also update classes.xml in order to document xrange
2016-01-26Merge pull request #3445 from akien-mga/masterRémi Verschelde
Add missing return for typeof() MethodInfo
2016-01-25Add missing return for typeof() MethodInfoRémi Verschelde
2016-01-02Added var2bytes and bytes2var to convet any variable to bytes and back. ↵Juan Linietsky
Closes #2075
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-12-31small fixes to color8Juan Linietsky
2015-12-31-Added Color8(r8,g8,b8,a8) function as well as .r8,.g8,.b8,.a8 members to ↵Juan Linietsky
Color, to deal with colors in the 0-255 range. Closes #2345
2015-12-31force thread model to single-safe when running editor, fixes #2387Juan Linietsky
2015-12-31-Changed var2str and str2var in GDScript to use VariantWriter and VariantParserJuan Linietsky
-It is now finally possible to parse back a variant from text!
2015-12-14replaced :var by :Variant in documentation, fixes #2897Juan Linietsky
2015-09-20Make dict2inst set internal members of instanceGeorge Marques
Fix #2490
2015-05-09-Added prints() function, fixes #1132, #1859Juan Linietsky
-Tabs work inside built-in log window, fixes #1867
2015-04-18Updated copyright year in all headersJuan Linietsky
2015-04-18-renamed function to get object from instance idJuan Linietsky
-added function to get list of tiles used