Age | Commit message (Collapse) | Author |
|
Since they do pretty much the same thing. The validated_get() was
renamed to get() since that is more performant.
|
|
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.
|
|
Update joy button and stick names, enums and documentation
|
|
|
|
Made serialization of Command toggleable when saving InputEvents.
|
|
Warn about singleton being a Reference
|
|
Made serialization of Command optional. If command is serialized, Control (On Win/Linux) or Meta (on Mac) are not.
Example use case: You are on Windows and you set a shortcut to be Control + E. This would serialize as Command=true and Control=true. If you then run this project on Mac, you would need to press Command AND Control to activate the shortcut - which is not what is intended. Now, you can set store_command to true, and it will only serialize to Command = true (no Control serialized). On Windows, this means Control. On Mac, it means only command.
|
|
|
|
load_from_globals() -> load_from_project_settings()
|
|
|
|
|
|
Before it was being set to the base type instead of the actual return
type.
|
|
doc: Sync classref with Variant utility methods
|
|
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.
|
|
Fix crash in resoure duplicate
|
|
|
|
|
|
Remove unneeded filter on joy_axis()
|
|
Allow HTTPClient to talk to a proxy server
|
|
Remove property groups for Pause Mode and Script
|
|
Allow getting Input "axis" and "vector" values by specifying multiple actions
|
|
Release pressed action if event is removed
|
|
Each of those only grouped 1 property, making them useless.
This closes https://github.com/godotengine/godot-proposals/issues/1840.
|
|
|
|
* Makes request uri accept absolute URL and authority
* Adds Host header only when missing
|
|
|
|
* 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
|
|
Minor clamp and float fixes
|
|
For get_vector, use raw values and handle deadzones appropriately
|
|
|
|
-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
|
|
|
|
KoBeWi/add_an_array_to_another_array_but_with_a_method
Add append_array() method to Array class
|
|
Improve/fix packed data API
|
|
Change DocData comparators for MethodDoc and ArgumentDoc to get a better
ordering of constructors.
|
|
|
|
Make sure operators appear in the docs too
|
|
Fix duplicate variant constructor typo.
|
|
Add "operator" and "constructor" qualifiers to make it easier to
see in the docs.
|
|
|
|
The underscore prefix was used to avoid the conflict between the `RID` class
name and the matching enum value in `Variant::Type`.
This can be fixed differently by prefixing uses of the `RID` class in `Variant`
with the scope resolution operator, as done already for `AABB`.
|
|
Color: Fix -Wtype-limits GCC warning after refactoring
|
|
Warning from GCC 10.2.0 with `warnings=extra`:
```
./core/math/color.h: In member function 'int32_t Color::get_r8() const':
./core/typedefs.h:107:42: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
107 | #define CLAMP(m_a, m_min, m_max) (((m_a) < (m_min)) ? (m_min) : (((m_a) > (m_max)) ? m_max : m_a))
| ~~~~~~^~~~~~~~~
./core/math/color.h:201:49: note: in expansion of macro 'CLAMP'
201 | _FORCE_INLINE_ int32_t get_r8() const { return CLAMP(uint32_t(r * 255.0), 0, 255); }
| ^~~~~
```
Also some code consistency changes while at it.
|
|
|
|
|
|
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
|
|
-Discern between named, indexed and keyed
-Get direct access to functions for typed GDScript and GDNative bindings
-Small changes to some classes in order to work with the new setget binder
|
|
Increase the default HTTPClient download chunk size to 64 KiB
|
|
Add `Image.load_bmp_from_buffer()` for run-time BMP image loading
|
|
This improves download speeds at the cost of increased memory usage.
This change also effects HTTPRequest automatically.
See #32807 and #33862.
|