summaryrefslogtreecommitdiff
path: root/doc/classes/@GlobalScope.xml
AgeCommit message (Collapse)Author
2023-05-18Document MIDI zero velocity quirkvoidshine
(cherry picked from commit 06d02928b76c7af82f12de482a509bf82dcc2892)
2023-05-18Fix property usage docs referring to removed network flagkleonc
(cherry picked from commit fc92ee6bf4b546893b9bf2960a436d56251b0994)
2023-05-12Make acos and asin safelawnjelly
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input. The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe. (cherry picked from commit 50c5ed4876250f785be54b8f6124e7663afa38dc)
2023-04-24Improve `print_rich()` documentationHugo Locurcio
- List all supported colors. - Mention URL tag support limitations. - Fix and tweak code example to do what it says. - Remove outdated notice about lack of Windows support (but mention that only Windows 10 and later support ANSI code conversion). (cherry picked from commit ec277d804e381b3bc5d44b88050e522c727ed505)
2023-03-30Hide internal settings from the classrefHaoyu Qiu
Default actions are no longer internal since we want to document them. They are still hidden from the Project Setting dialog because we hid the whole `input/` group manually. (cherry picked from commit 1e0b8d6240314f1904df560cdab840771ef3e002)
2023-03-27Document how to use logarithm of base 10 with `log()`Hugo Locurcio
(cherry picked from commit 3c4f0ca9c639e11b3a0673b27427538b244533b6)
2023-03-27Fix typo in the type-safe examplesDipal Zambare
Fix type in the type-safe examples of snapped, lerp and sign function. (cherry picked from commit 8901986d56189416c00f0c718c2f16600be34597)
2023-02-24Make max() and min() global functions only accept numbersGeorge Marques
The behavior for those are not well defined for non-numeric arguments. To avoid confusion the other types are forbidden.
2023-02-17Merge pull request #73195 from timothyqiu/weblate-commentsRémi Verschelde
Improvements and fixes based on Weblate comments
2023-02-14Tweak `@GlobalScope` & `GDScript`'s documentationMicky
2023-02-13Document unsupported features in Mobile and Compatibility rendering methodsHugo Locurcio
2023-02-13Improvements and fixes based on Weblate commentsHaoyu Qiu
* Description of `ui_text_submit` action should be "Submit Text" instead of "Text Submitted". * Spell out "Animation" instead of using "Anim.". * Treat "Max" as regular word instead of writing "Max.". * Use generic "Set %s" for action name instead of a dedicated "Set target_position". * Add translator comment for: * "Inclusive" and "Self" in the profiler. * Places where it needs the context about being an editor progress label. * "Duplicated Animation Name" since it's refering to the new name of a duplicated animation. * Disambiguation of "View Plane Transform", "Paste Selects" and "Display Normal". * Fix wrong undo action name for renaming an input action. * Fix missing end quote in a shader error message. * In class reference: * Fix duplicated "if" in the description of `signf()`. * Fix mismatched example output in `String.operator %()`. * Fix typo in the description of `Decal.texture_emission`. * Unify description of `String.match()` and `StringName.match()`.
2023-02-07GDScript: Improve validation and documentation of `@export_flags`Danil Alexeev
2023-02-01Merge pull request #72371 from dalexeev/remove-gds-str-duplicateRémi Verschelde
Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)
2023-01-30Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)Danil Alexeev
2023-01-30GDScript: Fix `@export_enum` works only with `int`Danil Alexeev
2023-01-26Merge pull request #71946 from raulsntos/dotnet/gdRémi Verschelde
C#: Sync GD with Core
2023-01-26Merge pull request #71758 from adamscott/is_equal_refRémi Verschelde
Add `@GlobalScope` `is_same(a, b)` and `Variant::identity_compare()`
2023-01-25Add `@GlobalScope` `is_same(a, b)` and `Variant::identity_compare()`Adam Scott
2023-01-24Add PROPERTY_USAGE_NEVER_DUPLICATE flag and use for scriptAaron Franke
Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
2023-01-24PropertyUsage: Rename "DO_NOT_SHARE_ON_DUPLICATE" to "ALWAYS_DUPLICATE"Aaron Franke
2023-01-24C#: Sync GD with CoreRaul Santos
- Add overloads to print methods that take a single `string`. - Use `StringBuilder` to append print parameters. - Remove `PrintStack` method. - Add `ErrorString`. - Remove `Str` method. - Add exception to `Range` when step is 0. - Add `VarToBytesWithObjects` and `BytesToVarWithObjects`. - Remove optional boolean parameter from `VarToBytes` and `BytesToVar`. - Move `InstanceFromId` to `Godot.Object`. - Add `Godot.Object.IsInstanceIdValid`. - Update documentation.
2023-01-23Cleanup and unify keyboard input.bruvzg
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-13Merge pull request #71339 from raulsntos/dotnet/is_finiteYuri Sizov
Add `IsFinite` to C# Variants
2023-01-13Add `IsZeroApprox` to C# vectorsRaul Santos
2023-01-13Add `IsFinite` to C# VariantsRaul Santos
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2022-12-15[RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.bruvzg
2022-12-12Rename all gdnative occurences to gdextensionGilles Roudière
Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
2022-12-05Refactor baking code for Curve2DYaohua Xiong
The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. A similar refacor had been applied to Curve3D. The test cases for Curve2D is updated, comparing floating point with is_equal_approxmiate() instead of `==`, in order to avoid float precision problem.
2022-12-02Remove UPDATE_TRIGGER & Match behaviors between AnimationTree/PlayerSilc Renew
#69357
2022-11-24Merge pull request #68386 from MewPurPur/snappedi-snappedfRémi Verschelde
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
2022-11-24Merge pull request #68806 from MewPurPur/printraw-warn-better-in-docsRémi Verschelde
Make it clearer that printraw only prints to terminal
2022-11-24Make it clearer that printraw only prints to terminalVolTer
2022-11-24Refactor Curve3D::_bake() methodYaohua Xiong
The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. Other changes are: 1. Add an bezier_derivative() method for Vector3, Vector2, and Math; 2. Add an tesselate_even_length() method to Curve3D, which tesselate bezier curve to even length segments adaptively; 3. Cache the tangent vectors in baked_tangent_vector_cache;
2022-11-23Merge pull request #67726 from HenryClones/integer-lerping-errorsRémi Verschelde
Add case for Variant::INT in lerp variant switch
2022-11-22Add case for Variant::INT in lerp variant switchXpertice
2022-11-19Implement snappedi, snappedf, and Vector[2/3/4]i.snappedVolTer
2022-11-15Remove `PROPERTY_HINT_IMAGE_COMPRESS` constantsMicky
These were used in 3.x but there's no reference of them in the codebase, at all.
2022-11-02Merge pull request #66747 from aaronfranke/move-euler-orderRémi Verschelde
Move EulerOrder enum to math_defs.h and global scope
2022-11-02Move EulerOrder enum to math_defs.h and global scopeAaron Franke
2022-11-02Style: Misc docs and comment style and language fixesRémi Verschelde
- Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
2022-11-02Merge pull request #67693 from Mickeon/slight-hint-shufflingRémi Verschelde
Fix unordered values of PROPERTY_HINT_INT_IS_POINTER & ARRAY_TYPE
2022-10-27Doc consistency: "inspector" to "Inspector"Micky
Also fixes a slightly misleading comment in `Node.print_tree_pretty`.
2022-10-21Tweak `@GlobalScope` constants documentation overallMicky
General: - Replace most type names with strong references (such as "integer" to "[int]"); - Made the writing style closer to how the rest of the documentation is formatted. - Use uppercase Inspector when referring to the Inspector dock. - Describe missing MethodFlags, Variant.Type constants. Key: - Add " key." to the `KEY_0` to `KEY_9` constants; - Reword some MouseButton constants; - In a programming context, it's kind of odd hearing about the plural of "mouse". Error: - Reword OK constant to flow better, use `printerr()` over `print()`; - Describe where `ERR_HELP` is used by the engine; - Point to the Github Issues Page in ERR_BUG. PropertyHint: - Mention that PROPERTY_HINT_IMAGE_COMPRESS_LOSSY and PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS are unused; - Mention that PROPERTY_HINT_PASSWORD allows a placeholder string. - Describe PROPERTY_HINT_OBJECT_TOO_BIG, PROPERTY_HINT_MAX. PropertyUsageFlags: - Describe PROPERTY_USAGE_HIGH_END_GFX, PROPERTY_USAGE_ARRAY.
2022-10-21Merge pull request #67072 from Mickeon/uh-oh-stinkyMax Hilbrunner
Rewrite most of Resource's documentation
2022-10-21Merge pull request #67656 from MewPurPur/instance🧹Max Hilbrunner
Fix minor mistakes throughout the documentation
2022-10-21Fix unordered values of PROPERTY_HINT_INT_IS_POINTER & ARRAY_TYPEMicky
2022-10-21Fix small mistakes throughout much of the documentationVolTer