Commit Graph
22 Commits
Author SHA1 Message Date
Dipl.-Ing. Dr. Markus Weninger, BSc 15912feec0 Update static_typing.rst
The documentations said it shows the same callback two times, one time with dynamic typing and one time with type hints. In reality, two different callbacks were shown. This has been fixed.
2025-06-28 21:25:45 +02:00
Hugo Locurcio 8a6ad4c926 Replace uses of shorthand codeblock syntax to avoid issues with localization
Previously, many paragraphs in the documentation used `::` at the end of a line
as a replacement for a single colon (and `::` on the following line).
Due to this, the `::` was part of the extracted string for localization.
Weblate also showed a warning about the trailing `::`, as it's not
normally expected to be there.

This change requires translators to revalidate all modified strings.
However, considering many of those have broken code blocks due to translators
replacing `::` with `:`, it can be a good idea.

This also adds documentation writing guidelines for code blocks and admonitions.
This commit does not modify existing admonitions in any way (as this would
lead to a much larger diff, and require more localizable text to be revalidated
by translators).
2025-05-30 02:02:30 +02:00
Hugo Locurcio 6c3cef80b3 Document typed dictionaries in GDScript 2025-04-26 18:33:00 +02:00
tetrapod00 09156f2ee9 Add UPDATE comments to perishable information 2024-11-17 13:50:42 -08:00
Max Hilbrunner ff46ea4407 Merge pull request #9777 from 0stam/is-not-conversion
Use the newly introduced ``is not`` operator
2024-11-17 11:34:55 +01:00
0stam 6ef6ad8a4c Use the newly introduced `is not` operator 2024-11-06 23:06:58 +01:00
tetrapod00 3bc5ea85af Remove references to 3.x minor versions
Removes notes about features being introduced in 3.x minor versions. In 4.x, these
details are no longer relevant.
2024-10-20 15:35:32 -07:00
Hugo Locurcio a878406e8d Clarify restrictions on nested array types in Static typing in GDScript 2024-10-16 16:23:32 +02:00
Adriaan de Jongh 648388ecbd added section on common unsafe operations and their safe counterparts 2024-01-06 23:40:02 +01:00
Danil Alexeev 9eb7aa3f59 Update "Static typing in GDScript" page 2023-10-06 12:49:26 +03:00
Hugo Locurcio 8e4f72f3f4 Mention typing of for loop variable in Static typing in GDScript 2023-08-21 19:44:52 +02:00
Max HilbrunnerandDoug Thompson 72c0af46b2 Snake-case .tscn, .gd and _on_* callbacks
Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
2023-05-18 12:46:58 +02:00
Ryan Roden-Corrent cd0fad3bab Document array types.
Fixes #6972.
2023-03-17 19:26:49 -04:00
gomaproi c39a8d9dc5 Update some screenshots in the Scripting section for Godot 4 (#6851) 2023-03-06 10:48:20 +01:00
Kirito c1847892a3 Update class_name in Static typing in GDScript to follow style guide (#6821) 2023-02-26 01:03:32 +01:00
Mara Huldra 66c620583f static_typing: Cyclic type dependencies and enums as types are now possible 2022-12-18 18:24:22 +01:00
Max Hilbrunner 024fedb0f3 Kinematic -> Character 2022-10-15 17:55:24 +02:00
zacryol 35211f6002 Show example of casting get_node() for inferred static typing in style guide 2021-10-22 11:04:56 -06:00
DeeJayLSP 931e3087c3 Change text to avoid use of first person in Static typing in GDScript (#4953) 2021-06-04 00:25:25 +02:00
Nathan Lovatoandballoonpopper 3665f22bab Edit the scripting section
Misc grammar fixes, improvements to phrasing, and more.

Co-authored-by: balloonpopper <5151242+balloonpopper@users.noreply.github.com>
2020-11-10 08:18:44 -06:00
Nathan Lovato 7e7df1cc03 Merge class_name docs from scripting_continued.rst into gdscript docs 2020-11-07 23:23:19 -06:00
Nathan Lovato 4272395ab7 Move scripting section to tutorials/
Closes #4113
2020-10-07 14:05:48 -06:00