Commit Graph

655 Commits

Author SHA1 Message Date
Andrey Solomatin
10ca7b1d8d Made edits to match GDScript code order
Updated gdscript_documentation_comments.rst
2024-11-30 07:06:20 +01:00
Anaclecio Brederodes
92aa6f195e Correctly name enum type
Previously the example defined a "MyEnum" enum, but used a "SpellElements" type export. I've changed so it now defines a "SpellElements" enum.
2024-11-30 07:05:19 +01:00
Hugo Locurcio
a5b086aa61 Use negative index for get_child() in Singletons (Autoload) 2024-11-30 07:04:16 +01:00
tetrapod00
88601c21e3 Improve GDScript Basics sidebar navigation by changing header levels
Promotes many headers up one level, so they appear in the sidebar.
Removes the redundant Language header, since the whole page is about the language.
2024-11-30 07:03:52 +01:00
tetrapod00
253baa6c64 Fix unreachable pages in sidebar under C# Diagnostics 2024-11-30 07:02:47 +01:00
tetrapod00
14cd3078a3 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-11-30 07:01:03 +01:00
tetrapod00
0b495a66b0 Fix docstring written as comment 2024-11-30 07:00:28 +01:00
Hugo Locurcio
6c43491cc5 Document filename requirements in C# global classes
- Flesh out the introduction.
2024-11-30 06:57:54 +01:00
Hugo Locurcio
b5e097d435 Document Variant not being nullable 2024-11-30 06:57:24 +01:00
Hugo Locurcio
c86adb0bda Clarify restrictions on nested array types in Static typing in GDScript 2024-11-30 06:57:06 +01:00
Aaron Franke
a04b7d9780 Add a note about GDScript format strings in C++ (#10061) 2024-11-30 06:56:03 +01:00
Lukas Tenbrink
ef9d2db714 Add a gdextension online documentation guide. (#9966)
* Add a gdextension online documentation guide.

---------

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Patrick Exner (FlameLizard) <patrick.exner1@web.de>
2024-11-30 06:55:48 +01:00
A Thousand Ships
d57d5f894e [GDScript] Clarify initialization of enum values
# Conflicts:
#	tutorials/scripting/gdscript/gdscript_basics.rst
2024-11-30 06:51:33 +01:00
notPelf
8835289fe7 Add info about layer mask exporting to physics_introduction.rst (#10242)
* Update physics_introduction.rst

The docs page for raycasting provides a link to the physics introduction page for how to set a collision mask on a raycast created in code. The physics introduction page does not mention export annotations for exporting a collision mask. This pull request adds a brief bit about exporting layer masks, and links to the export annotation docs.

---------

Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-17 11:22:00 +01:00
Hugo Locurcio
8a263cb63f Fix Code order section saying it's the first section in GDScript style guide
It's not the first section of the page anymore.
2024-10-04 03:56:01 +02:00
Hugo Locurcio
697ddf54b0 Fix outdated reference to register_class function in GDExtension C++ example
This was replaced by the `GDREGISTER_CLASS` macro in Godot 4.0.
2024-10-04 03:55:54 +02:00
tetrapod00
f7e8509a17 Improve sidebar navigation by removing headers
- Ensure most pages are reachable through the sidebar, by removing headers on pages that are mostly indexes.
- This also means that some pages now have navigable headers again.
2024-10-04 03:55:12 +02:00
Lukas Tenbrink
9acbb3ad61 Fix kbd description in gdextension docs system. 2024-10-04 03:54:53 +02:00
Junwan Park
0a5fc87ffb Fix builtin_types link in tutorial gdscript_basics page
It's linked to a wrong position.
2024-10-04 03:54:19 +02:00
tetrapod00
bd0da40feb Add documentation for GDScript when statement 2024-10-04 03:53:42 +02:00
Hugo Locurcio
14c1e6f0ab Fix incorrect setup instructions in The profiler 2024-10-04 03:52:01 +02:00
Hugo Locurcio
5f13e67349 Document PackedVector4Array
This type was added in Godot 4.3.
2024-10-04 03:51:42 +02:00
Hugo Locurcio
8e2be506e0 Fix incorrect statement in node_type being case-insensitive in Creating script templates
On case-sensitive filesystems, the case must match the actual node name,
so the folder will most likely need to use uppercase characters in its name
(e.g. `MeshInstance3D`).
2024-10-04 03:51:25 +02:00
Hugo Locurcio
1e81218d42 Fix ADD_PROPERTY() calls in GDExtension C++ example to use correct syntax
This matches how properties are declared in core Godot.
2024-10-04 03:50:56 +02:00
gachipan
9de6082171 Remove confusing end of sentence from the_profiler.rst documentation
Cut off the end of a sentence that doesn't make sense:

"You can also start profiling at any time before or during gameplay, depending on if you want."

It seems like removing the "depending on if you want." improves clarity of the documentation.
2024-10-04 03:47:37 +02:00
RedStainedInk
dfdb5bcd2c Removed outdated information about Mono SDK beeing necessary
Mono SDK isn't necessary any more for Godot .NET to work properly on Linux. All functionality that was needed from Mono back then is now provided by .NET proper.

I fear Mono SDK might even cause some conflict with up-to-date .NET.
2024-10-04 03:46:28 +02:00
Matthew
542a8a4a82 Merge pull request #9773 from darkstarworks/master
Update 07.killing_player.rst
2024-10-04 03:44:36 +02:00
Hana - Piralein
0f3fabbb5a Update codespell path and fix spelling errors 2024-10-04 03:44:22 +02:00
Kongfa Waroros
050c9b94a9 Update certain example code snippets to use the new syntax 2024-10-04 03:41:25 +02:00
bruvzg
c14a6216e8 [GDExtension] Add missing iOS instructions and build/config example code. 2024-10-04 03:40:48 +02:00
Raul Santos
47327606b0 C#: Remove references to GODOT_SERVER and GODOT_HTML5 defines
- The `GODOT_SERVER` preprocessor define is no longer available in Godot 4, since the dedicated server platform was removed.
- Replaced a reference to `GODOT_HTML5` with `GODOT_WEB` since that platform was also renamed in Godot 4.
- Remove note about `<DefineConstants>` that only really applies to Godot 3.
2024-10-04 03:40:36 +02:00
Patrick Exner
d29c88d0a0 Fix project structure diagram in gdextension docs system docs 2024-10-04 03:40:08 +02:00
DDoop
e9035f7cf0 Add warnings for classes named "Editor" in GDscript and C# pages, class_name keyword/global class attribute (#9548)
* Added warning about Editor hiding class_names beginning with Editor prefix

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-08-14 19:42:36 +02:00
Balázs Kalydi
91717ff234 Update GDExtension tutorial with the hot reload feature (#9618)
Although the tutorial assumed the hot reload feature, it wasn't enabled in the example config file. Also it didn't mention that it only works if it's compiled in debug mode.
2024-08-14 19:31:17 +02:00
Patrick Exner (FlameLizard)
b21addcf51 Add page about gdextension docs generation (#9667)
* Adding page about gdextension docs generation

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-08-14 19:27:31 +02:00
skyace65
f15784d14b Add info in instancing for opening the demo project 2024-08-11 22:45:27 -04:00
Max Hilbrunner
083f7589b9 Merge pull request #9708 from thejacer87/patch-1
Update gdscript_styleguide.rst
2024-08-06 05:58:39 +02:00
Jace Bennest
d71c24c699 Update gdscript_styleguide.rst
fixes typo
2024-08-04 10:48:19 -07:00
Tristan A.
a2d29557ed CSharp example missing return type 2024-08-02 22:34:28 +02:00
Muller-Castro
a36ff907f9 Add typed loop variable example in GDScript reference (#9388) 2024-08-02 02:30:20 +02:00
A Thousand Ships
0c9eaf14c3 Merge pull request #9644 from Incognito357/Incognito357-update-docs-change_scenes_manually
Update change_scenes_manually.rst
2024-07-30 07:32:08 -09:00
Qwertystop
8d1bff6aea Document behavior of modulo operator (#9358)
Different languages and contexts have different default behaviors for modulo
where one or both operands are negative. "The remainder of an integer division"
is underspecified. As such, clarification is in order.

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2024-07-30 07:38:27 +02:00
Jason
6ffdb2ff0d Update change_scenes_manually.rst
Rewrote to use active voice. Reworded some sections for grammar, clarity, or removal of banned words
2024-07-23 22:29:12 -04:00
Riyyi
f001dcf2d8 Update alignment
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-07-21 17:02:00 +00:00
Riyyi
700b8bda73 Update "Autoload" navigation to match 4.3 menu
The "Project Settings" menu was restructured in 4.3, reflect this in the navigation instructions.
2024-07-21 16:00:16 +00:00
Patrick Exner
8b37b3c86e Add more precise information about library paths 2024-07-02 22:59:04 +02:00
Max Hilbrunner
ea6b9dadf2 Merge pull request #9569 from paddy-exe/dependencies-gdextension-file
Add dependency section to gdextension file docs
2024-07-02 17:52:38 +02:00
Patrick Exner
2877a27633 Add dependency section to gdextension file docs 2024-07-01 18:55:41 +02:00
Danil Alexeev
67be15e905 GDScript: Update lambda documentation 2024-06-29 14:51:46 +03:00
Hana - Piralein
3e2a8f6f7c Update outdated annotation and setget syntax
Co-Authored-By: PoolloverNathan <24194027+PoolloverNathan@users.noreply.github.com>
Co-Authored-By: Solor Vox <1246172+solorvox@users.noreply.github.com>
2024-06-27 22:13:37 +02:00