Commit Graph

4134 Commits

Author SHA1 Message Date
Hugo Locurcio
d9964f7b18 Mention documentation comments in GDScript basics 2024-11-30 07:52:25 +01:00
Yevhen Babiichuk (DustDFG)
250aefc23f Delete mention of OpenGL ES 2 2024-11-30 07:52:16 +01:00
mechalynx
d560aac2cc Update PackedArray explanation to match Godot 4.0 behavior (#10304)
Add paragraphs describing the differences between PackedArray and
normal or typed Array.

---------

Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-30 07:52:03 +01:00
tetrapod00
ce1be2c6e5 Add GDScript naming convention summary table
Co-Authored-By: Edwin <60202421+emarino135@users.noreply.github.com>
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2024-11-30 07:50:54 +01:00
tetrapod00
3eb1469ed0 Add FAQ entry "Which programming language is fastest?"
Compares the performance of C#, GDScript, and C++.

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-Authored-By: Andre Sacilotto <66838864+andresacilotto@users.noreply.github.com>
2024-11-30 07:50:30 +01:00
tetrapod00
4f1c98685d Remove performance comparison from C# Basics 2024-11-30 07:49:54 +01:00
tetrapod00
eb2a0a003c Fix wrong editor setting in Overview of Debugging Tools 2024-11-30 07:49:41 +01:00
Mark Wilson
8b1a1b644c Improved style for cross-language examples.
* Replaced "foo"/"bar" example values with "my value".
* Changed C# public field to property and GDScript to match.
* Used PascalCase for C# property.
* Used camelCase for C# local variable.
* Used "var" for C# local variable declarations.
* Used PascalCase for GDScript class/script variable.
* Improved clarity of comments documenting expected output.
* Eliminated horizontal scroll in C# code example.
* Fixed a comma splice in the page text.
* Removed an out-of-date warning block.
2024-11-30 07:49:31 +01:00
Hugo Locurcio
e163152e03 Document rand_weighted() in Random number generation (#10283)
* Document `rand_weighted()` in Random number generation

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-11-30 07:49:10 +01:00
ntlblpm
fec6259365 Update matrices_and_transforms.rst 2024-11-30 07:48:55 +01:00
ntlblpm
3c0106b92d Update vectors_advanced.rst 2024-11-30 07:48:47 +01:00
Matthew
bb8c89f04c Update android export page for AAB requirement (#9637)
* Update android export page for AAB requirement

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-11-30 07:48:36 +01:00
Zach Coleman
32705a4f9d Update handling_quit_requests.rst 2024-11-30 07:48:24 +01:00
Furkan Calik
d94727fbe5 Update using_transforms.rst to clarify rotate_local() axis usage 2024-11-30 07:48:07 +01:00
Max Hilbrunner
b2b3ea580a C# exports: Fix semicolon syntax error
Co-authored-by: Loregret <31369647+Loregret@users.noreply.github.com>
2024-11-30 07:17:35 +01:00
Hugo Locurcio
73e706cab7 Document exporting as progressive web app in Exporting for the web
- Document no-threads web export and its limitations.
- Document sample-based audio playback and its limitations.
- Mention that threading issues can be worked around by exporting
  as a progressive web app.
2024-11-30 07:16:31 +01:00
Hugo Locurcio
39bb9f4b54 Update Random number generation for Godot 4.2+ (#9822)
- Document `Array.pick_random()` as a shorthand.
- Use global scope random methods as they are all available in global scope now.
- Remove calls to `randomize()` that are not needed for code samples
  to be functional, as the engine now calls `randomize()` on startup
  once automatically.
2024-11-30 07:15:57 +01:00
tetrapod00
70969b116d Add custom codespell dictionary 2024-11-30 07:15:29 +01:00
Hugo Locurcio
d9f223aa14 Document @export_custom and additional range hints in GDScript exports
This also adds a hint suffix example to C# exports.

Co-authored-by: Shawn Hardern <126725649+ShawnHardern@users.noreply.github.com>
2024-11-30 07:15:17 +01:00
Mikael
1ff691d90f Update "Size and anchors" to reflect Godot 4.3 terminology (#10216)
Changed relevant occurences of margin with "anchor offset" or "offset".

Also reworded paragraph about aspect ratios, as it included information that may not necessarily be correct.

Also replaced images with newer versions.
2024-11-30 07:14:18 +01:00
tetrapod00
d651092a27 Update list of debugging settings 2024-11-30 07:13:43 +01:00
tetrapod00
e336118dc9 Improve GDScript format strings tutorial
Remove usages of "integral".
Add section on string concatenation.
Improve organization.
Fix incorrect examples.
2024-11-30 07:13:09 +01:00
Kleidon
ea02eb44b5 Fix "or_greater"/"or_less" code example
The code example demonstrating the usage of the "or_greater" and "or_less" hints for the export_range annotation does not declare a variable after the annotation, which is inconsistent with the previous three code examples in the section.
Also, giving the export_range a step of 1 does not create a slider for the property in the editor, like the text suggests, but it instead creates a spin box. The step should be changed to a float so the property can appear as a slider.
2024-11-30 07:12:08 +01:00
Nate Moore
12efc92730 Add spring arm third-person camera tutorial (#10156)
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-30 07:11:32 +01:00
Hilderin
d8039bd436 Fix code sample for add_autoload_singleton in plugin
- Add documentation for issue https://github.com/godotengine/godot/issues/68285
2024-11-30 07:10:39 +01:00
tetrapod
ffff2e7afd Link to Getting Started Input tutorial from Input examples page (#10200)
* Link to Getting Started Input tutorial from Input examples page

---------

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2024-11-30 07:10:21 +01:00
Flarkk
203c5d7b3e Clarify when fragcoord z is used as depth output 2024-11-30 07:10:05 +01:00
Anish Mishra
9f1060bb4a Add documentation for themed icons (monochrome) 2024-11-30 07:08:23 +01:00
tetrapod00
b71ff5c73d Improve display of rubric fake headers with heading-level option 2024-11-30 07:07:47 +01:00
tetrapod00
9bd08826d5 Improve Customizing the mouse cursor
Link to project settings and enum.
Fix C# example script so it works when pasted.
Improve grammar and formatting.
2024-11-30 07:07:18 +01:00
tetrapod00
51f0d5a3d3 Update documentation changelog for 4.3 2024-11-30 07:06:40 +01:00
Andrey Solomatin
10ca7b1d8d Made edits to match GDScript code order
Updated gdscript_documentation_comments.rst
2024-11-30 07:06:20 +01:00
tetrapod00
2a9635091d Fix unreachable pages under 3D Particles by using fake headers
Converts all headers in tutorials\3d\particles\index.rst to fake rubric headers.
Note that in this case we can't have any real subheaders on the page due to
the order of the sections.
2024-11-30 07:06:05 +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
Hugo Locurcio
df4c27eaa9 Mention callback argument count in The JavaScript bridge singleton 2024-11-30 07:04:01 +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
Adam Scott
35d4c16ad6 Add Web export file name section 2024-11-30 07:03:41 +01:00
tetrapod00
253baa6c64 Fix unreachable pages in sidebar under C# Diagnostics 2024-11-30 07:02:47 +01:00
Hugo Locurcio
06bc5c0c5e Update URL to Microsoft codesigning guide in Exporting for Windows 2024-11-30 07:02:27 +01:00
ScarfKat
5a3789a85a Typo fix for Interpolation gif description
The original description was backwards. This is a small edit that fixes it.
2024-11-30 07:02:21 +01:00
Daniel Garcia Silva
f1dde510c6 Fix typo "exists" to "exits" 2024-11-30 07:02:14 +01:00
tetrapod00
3813790990 Remove references to Phong and Blinn specular 2024-11-30 07:02:04 +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
18a8113082 Remove reference to 3.1 as a minimum version 2024-11-30 07:00:56 +01:00
tetrapod00
698771c14d Fix HDR 2D mention in Upgrading to Godot 4 page
Since Godot 4.2, rendering 2D in HDR is once again possible.
2024-11-30 07:00:48 +01:00
Florent Guiocheau
9af9d35803 Fix shader language matrix row/col convention 2024-11-30 07:00:35 +01:00
tetrapod00
0b495a66b0 Fix docstring written as comment 2024-11-30 07:00:28 +01:00
tetrapod00
fb43d4a7d1 Add link from Rendering to 2D and 3D rendering sections 2024-11-30 07:00:21 +01:00
tetrapod00
73bfde32e1 Add note about flat shading and Grow in Standard Material page 2024-11-30 06:59:45 +01:00