summaryrefslogtreecommitdiff
path: root/core/variant_call.cpp
AgeCommit message (Collapse)Author
2018-08-23Added max() and min() functions to array to return greater or lesser element ↵Juan Linietsky
(or null if data is not of compatible type or empty array). Closes #15697
2018-08-21Merge pull request #21253 from aaronfranke/plane-constantsRémi Verschelde
Rename Plane constants, add to Mono
2018-08-21Rename Plane constants, add to MonoAaron Franke
But I'm not tagging PR as [Core] or [Mono] due to it being a minor change anyway.
2018-08-21Remove circle/diamond and NodePath String constantsRémi Verschelde
They were introduced in #14704 but need more discussion IMO, they don't strike me as core features that would have to be registered in Variant directly. Moreover, they currently break the documentation XML as string constants end up encoded as e.g. `value=""..""`.
2018-08-16add project method to Vector2/3Thomas Herzog
2018-08-15Merge pull request #20945 from neikeq/dict-erase-retboolRémi Verschelde
Dictionary: remove erase_checked(key), make erase(key) return bool
2018-08-14Dictionary: remove erase_checked(key), make erase(key) return boolIgnacio Etcheverry
2018-08-14Fix int(String) != int(int) conversionChaosus
2018-07-31Allow some non-integer built-in constants in gdscriptBernhard Liebl
2018-07-26Merge pull request #18282 from aaronfranke/better-mathfRémi Verschelde
[Core] [Mono] Fix Color missing int export methods, added 64-bit
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25Expose 64-bit Color methods to GDScript and fix/update Color XML docAaron Franke
2018-05-28Sync classref with current sourceRémi Verschelde
Also fix binding of Basis.slerp
2018-05-23Merge pull request #14715 from Krakean/string_add_rsplit2Max Hilbrunner
Added rsplit() method to String class
2018-05-12Add SLERP to Vector{2,3}, optimize Quat's Vector3 rotation.tagcup
Also even out Basis and Quat APIs a little.
2018-05-04Vector3::round, Vector2::round & Vector2::ceil methods were added.Alexander Alekseev
Now both structs (Vector2 & Vector3) have round, floor & ceil methods. (see #18603)
2018-05-01Merge pull request #16649 from ibrahn/visual-script-release-crashRémi Verschelde
fix for segfault when using CallBasic in visual script on release build
2018-04-17add string trim_prefix trim_suffix lstrip and rstrip methodsbosak
2018-03-13Duplicate Arrays and Dictionaries when instancing scene in editorBojidar Marinov
Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes #13971
2018-03-07Bring back Vector2.cross()Bernhard Liebl
2018-02-19Merge pull request #15563 from poke1024/gdscript-shuffleRémi Verschelde
Add shuffle() method to Array
2018-02-19Merge pull request #15852 from poke1024/color_hsvRémi Verschelde
Add Color.from_hsv()
2018-02-12fix for segfault when using CallBasic in visual script on release buildIbrahn Sahir
2018-02-03Fix broken variant call of Vector3.snappedTimur Celik
2018-01-30Fix wrong return type of xform functionsPoommetee Ketson
2018-01-18Add Color.from_hsv()Bernhard Liebl
2018-01-10Add shuffle() method to Arraypoke1024
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-03Merge pull request #15220 from ibrahn/variantcall-defargs-fixRémi Verschelde
fix VariantCall default parameter ordering
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-31fix VariantCall default parameter orderingIbrahn Sahir
2017-12-17Dictionary::copy -> ::duplicateWill Nations
2017-12-15Added rsplit() for String classDmitry Koteroff
Docs updated
2017-12-15Added third argument for String.split() function (see issue #14349)Dmitry Koteroff
Remove negative limit, leave only positive and make it reflect behaviour like in Python Also limit renamed to maxsplit to match Python one. Also docs updated. Fix indent
2017-12-09Merge pull request #13347 from Noshyaar/hang_in_thereRémi Verschelde
Rect2: add function returning same rect with positive w and h
2017-12-07Style: Apply new clang-format 5.0 style to all filesRémi Verschelde
2017-11-28Rect2: add function returning same rect with positive w and hPoommetee Ketson
2017-11-25Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky
wrong function, leading to unnecesary copy on writes and reduced performance.
2017-11-22Make tween able to be used as before (without the need for ":...")Bojidar Marinov
Fixes #13174
2017-11-22Merge pull request #12371 from donkeybonks/color-lighten-darkenRémi Verschelde
Add Color.lighten and Color.darken (like LESS.css or SASS) #2
2017-11-22Merge pull request #13151 from akien-mga/basis-vector3-constructorRémi Verschelde
Properly implement Basis constructor using Vector3 of Euler angles
2017-11-21Merge pull request #12284 from bojidar-bg/allow-subproperty-setRémi Verschelde
Allow for getting/setting "dotted" properties of objects
2017-11-21Properly implement Basis constructor using Vector3 of Euler anglesRémi Verschelde
Fixes #13104.
2017-11-21Allow for getting/setting indexed properties of objects using get/set_indexedBojidar Marinov
Performance is around the same as using pure set() through GDScript.
2017-11-21Add Color.lightened and Color.darkened (like LESS.css or SASS)Kyle Van Berendonck
2017-11-21Add bsearch and bsearch_custom to Arraypoke1024
2017-11-17Rename Rect3 to AABB.Ferenc Arn
Fixes #12973.
2017-11-05Fixed dedent() binding did not return resultZher Huei Lee
2017-11-01Added String::dedent() to remove text indentationZher Huei Lee
This functions similarly to Python's textwrap.dedent() It's also been applied to doc_data.cpp to remove extra whitespace while parsing the XML.
2017-10-30Added difference between function which return value or notЗахаров Андрей
Now ADDFUNC with suffix R add function with return value. It was changed because addfunc considers that the function doesn't return a value if it returns NIL.