summaryrefslogtreecommitdiff
path: root/doc/classes/@GlobalScope.xml
AgeCommit message (Collapse)Author
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
2022-10-19Merge pull request #67001 from KoBeWi/🎲Max Hilbrunner
Fill random docs
2022-10-19Merge pull request #67208 from Mickeon/doc-peeves-the-peeveningMax Hilbrunner
Tweak `@GlobalScope` functions documentation overall
2022-10-18Rewrite most of Resource's documentationMicky
2022-10-18Tweak `@GlobalScope` functions documentation overallMicky
Generally: - Made use of [param] more frequently; - Link to other classes' documentation more often; - Improve and add more examples; - Ensure that multiple comments of an codeblock example are spaced out equally for better readability; - Made the writing style closer to how the rest of the documentation is formatted; - Ensure these are called "functions", not "methods". - Fixed a few typos. - Touched up a few cases of zero being written as "zero" or "0" where "0" or "0.0" would be more appropriate. - Removed mentions of "(real)". In 3.x, this was associated with floats, because TYPE_FLOAT was called TYPE_REAL. More specifically: - Every type-safe version of a function (such as `ceili` has a consistent final note ("A type-safe version of [method ceil], returning a [int]"). - Added more details to `randomize`, `seed`. - Corrected `floori()`'s description. It's not the same as `int()`. This was not correct behavior and has been fixed.
2022-10-11Merge pull request #64268 from timothyqiu/is-finiteRémi Verschelde
Add `is_finite` method for checking built-in types
2022-10-08Add `is_finite` method for checking built-in typesHaoyu Qiu
2022-10-08Remove leading spaces from enumerator name hintsHaoyu Qiu
For `PROPERTY_HINT_ENUM` properties, enumerator names can be provided as a comma separated list. There're a few properties that add leading spaces to the names (e.g. `First, Second, Third`). These spaces are included in the Inspector dropdown, which is unexpected. It's better to leave the surrounding spaces untouched because it could be part of the resulting string value (the variable is a string enum). And most other enum hints don't contain surrounding whitespaces. This PR removes the spaces and documents this `PROPERTY_HINT_ENUM` behavior.