Age | Commit message (Collapse) | Author |
|
|
|
Fixes #34541
Renamed MAX_DIGITS to MAX_DECIMALS, since it only changes the
amount of digits after the decimal point.
Increased MAX_DECIMALS to 32, and made String::num use
MAX_DECIMALS consistently. If -1 is passed as
decimal precision to String::num, it now gets changed to
the correct precision based on the number's magnitude,
instead of using printf default(which is 6)
String::num_real also calculates the correct precision now.
Also made the types used in floating-point math more
consistent in a few places.
|
|
|
|
|
|
|
|
|
|
This is not user accessible anymore so it does not need to be show in
documentation.
|
|
Clarify that code in `assert()` should avoid side effects
|
|
Change DocData comparators for MethodDoc and ArgumentDoc to get a better
ordering of constructors.
|
|
|
|
|
|
|
|
Cross-reference GDScript `load` and `ResourceLoader.load` in classref
|
|
|
|
The GDScript `load` mention is moved from the class `ResourceLoader`
description to the `ResourceLoader.load` method description instead,
where it is more likely to be found.
|
|
|
|
|
|
This makes them display in a nicer way in the editor help.
(The title will display instead of the full URL.)
|
|
This closes #19315.
|
|
Improve JSON-related documentation
|
|
This closes https://github.com/godotengine/godot-docs/issues/3848.
|
|
|
|
|
|
The input to smoothstep is not actually a weight, and the decscription
of smoothstep was pretty hard to understand and easy to misinterpret.
Clarified what it means to be approximately equal.
nearest_po2 does not do what the descriptions says it does. For one,
it returns the same power if the input is a power of 2. Second, it
returns 0 if the input is negative or 0, while the smallest possible
integral power of 2 actually is 1 (2^0 = 1). Due to the implementation
and how it is used in a lot of places, it does not seem wise to change
such a core function however, and I decided it is better to alter the
description of the built-in.
Added a few examples/clarifications/edge-cases.
|
|
Also a few minor API changes like adding AABB.abs()
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
|
|
|
|
|
|
Properly expose classes that we actually want accessible.
|
|
Seems like this was overlooked in PR #31142. See also issue #17082.
|
|
A few extra renames for classes which were missed in last week's PRs.
|
|
Add a practical example for `@GDScript.linear2db()`
|
|
One of its most common applications in games is for volume sliders.
See https://www.dr-lex.be/info-stuff/volumecontrols.html for
more information.
|
|
This closes https://github.com/godotengine/godot-docs/issues/2589.
|
|
Handle removal of Pool*Array types and other recent changes.
|
|
Replaced by 'step_decimals' in 3.2 via #21425.
|
|
|
|
doc: Drop unused 'category' property from header
|
|
Fix signals Variant arguments incorrectly listed as Nil.
Fixes #12520.
|
|
We already removed it from the online docs with #35132.
Currently it can only be "Built-In Types" (Variant types) or "Core"
(everything else), which is of limited use.
We might also want to consider dropping it from `ClassDB` altogether
in Godot 4.0.
|
|
Busywork but it's good for our completion rate :)
|
|
Fix documentation for yield
|
|
* Adds description for `ord()`
* Adds relationship description between `char()` and `ord()`
* Describes the argument of `char()` as Unicode code point instead of ASCII code
* Fixes wrong interval notation in `randi()` description
|
|
#33872 PR was misleading as i though inheritance from GDScriptFunctionState was optional.
|
|
|
|
|
|
|
|
|
|
|
|
The current consensus in the Godot documentation is to avoid using
type hints unless they're relevant to the behavior explained.
|
|
Added some missing documentation about yield() being able to wait for a function also. I cant believe something like that was missing from the docs, it would have saved me so much time (and others i assume).
|