summaryrefslogtreecommitdiff
path: root/core/variant
AgeCommit message (Collapse)Author
2021-02-16Use Vector3.UP as a default value for look_at's up vectorAaron Franke
2021-02-16Added signed_angle_to for Vector3JestemStefan
2021-02-04Change sort_custom/bsearch_custom to use Callableskobewi
2021-02-01Replace ColorN and from HTML with a string constructorAaron Franke
2021-01-28Unify URI encoding/decoding and add to C#Aaron Franke
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
2021-01-28Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke
Also add BinToInt to C#
2021-01-27Merge pull request #45489 from aaronfranke/coreRémi Verschelde
Type consistencies in core
2021-01-26Type consistencies in coreAaron Franke
2021-01-26Renamed String.ord_at to unicode_atYuri Roubinsky
2021-01-26Remove Quat set methods in favour of constructorsMarcel Admiraal
2021-01-11Merge pull request #44427 from briansemrau/fix-variant-bitand-validated-evalRémi Verschelde
Fix bitwise-and eval not updating return type
2021-01-05Merge pull request #44661 from AndreaCatania/AndreaCatania-patch-5Rémi Verschelde
Fixes: GDscript min and max are inverted
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-28Merge pull request #44586 from madmiraal/rename-stepifyRémi Verschelde
Rename Math::stepify to snapped
2020-12-28Merge pull request #44149 from madmiraal/rename-tangent-orthogonalRémi Verschelde
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-28Rename Math::stepify to snappedMarcel Admiraal
2020-12-28Rename Rect2 and Rect2i grow_margin() to grow_side()Marcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-27Add helper count function to VariantGeorge Marques
To get counts of items before getting the list, which is useful for GDNative so users can pre-allocate the buffer with the correct size without having to get the list twice.
2020-12-24Fixes: GDscript min and max are invertedAndrea Catania
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarraysRémi Verschelde
Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
2020-12-19Rename Rect2 and Rect2i clip() to intersection()Marcel Admiraal
2020-12-17packed*arrays are pass by ref now. support duplicate and update documentationJordan Schidlowsky
2020-12-17Fix crash parsing a serialized ReferencePedro J. Estébanez
2020-12-16Fix bitwise-and eval not updating return typeBrian Semrau
2020-12-15Merge pull request #44406 from vnen/variant-ptr-constructRémi Verschelde
Add PtrConstruct template to use in Variant constructors
2020-12-15Change template order in method_ptrcall.hGeorge Marques
To be consistent with the enum in Variant so missing types can be more easily spotted.
2020-12-15Add PtrConstruct template to use in Variant constructorsGeorge Marques
Since the PtrToArg::encode requires the value to be constructed previously. With PtrConstruct this is not required.
2020-12-10Fix object check on Variant key checkerGeorge Marques
2020-12-10Use pointer parameters in Variant function pointersGeorge Marques
Instead of references. This is needed because those function pointers are used in GDNative which needs to work with plain C, which doesn't support passing parameters by reference.
2020-12-07Improve argument names for core typesAaron Franke
2020-12-06Rename Vector2.tangent() to Vector2.orthogonal()Marcel Admiraal
2020-12-03Fix subtracting colors and quatsTomasz Chabora
2020-11-30Fix VariantInternal initialization and setting of objectGeorge Marques
- Initialize Object pointer to nullptr so it's not used by mistake. - When setting an Object check if it's a reference so refcounting works as intended.
2020-11-26[Complex Text Layouts] Implement TextServer interface. Implement Fallback ↵bruvzg
TextServer.
2020-11-25Merge pull request #43864 from vnen/fix-print-utilitiesRémi Verschelde
Fix prints and printt functions printing as errors
2020-11-25Fix prints and printt functions printing as errorsGeorge Marques
2020-11-25Core: Always enable ptrcall, remove PTRCALL_ENABLED defineRémi Verschelde
ptrcall is now also used to optimize calls in GDScript, on top of the existing use by the GDNative and Mono modules. It no longer makes sense to make it optional.
2020-11-23Initialize class/struct variables with default values in core/ and drivers/Rafał Mikrut
2020-11-23Merge pull request #43725 from vnen/gdscript-typed-vm-2Rémi Verschelde
GDScript: Typed VM Take 2
2020-11-21Add extra functions to VariantInternalGeorge Marques
- Allow getting an opaque pointer, no matter the type (for ptrcall). - Allow setting object pointer and id directly. - Allow initializing the data given a type, to allow properly setting return types on ptrcalls.
2020-11-20Variant: Merge get() and validated_get()George Marques
Since they do pretty much the same thing. The validated_get() was renamed to get() since that is more performant.
2020-11-20Fix variant getters not setting return typeGeorge Marques
The validated getters were only setting the value without changing the type, leading to wrong results. This uses the same path used for methods to the same purpose.
2020-11-18Fix return type on builtin validated callsGeorge Marques
Before it was being set to the base type instead of the actual return type.
2020-11-17doc: Sync classref with Variant utility methodsRémi Verschelde
Copied relevant documentation from the original `@GDScript` built-ins, which will likely be removed in a future commit. Various fixups to `variant_utility.cpp` while working on this.
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-11Refactor variant built-in methods yet again.reduz
* Using C-style function pointers now, InternalMethod is gone. * This ensures much better performance in typed code. * Renamed builtin_funcs to utility_funcs, to avoid naming confusion
2020-11-10Create Variant built-in functions.reduz
-Moved Expression to use this, removed its own. -Eventually GDScript/VisualScript/GDNative need to be moved to this. -Given the JSON functions were hacked-in, removed them and created a new JSONParser class -Made sure these functions appear properly in documentation, since they will be removed from GDScript
2020-11-10Merge pull request #43398 from ↵Rémi Verschelde
KoBeWi/add_an_array_to_another_array_but_with_a_method Add append_array() method to Array class