Commit Graph

2586 Commits

Author SHA1 Message Date
Matthew
6fdf0ed530 Merge pull request #6662 from BastiaanOlij/introducing_xr_tools
Add an introduction page for XR tools
2023-02-12 13:39:50 -05:00
Max Hilbrunner
0464ade11c Merge pull request #6761 from Piralein/warnings
Update Invalid References
2023-02-12 18:34:53 +01:00
Max Hilbrunner
be14715fda Merge pull request #6747 from michaeltintiuc/patch-1
Update sync_with_audio.rst for Godot 4
2023-02-12 18:32:11 +01:00
Raul Santos
62266a1634 Update C# exports documentation (#6746)
* Update C# exports documentation

- Node exports are supported in 4.0.
- Add documentation about exporting enums (and flag enums).
- Add more documentation about exporting collections.
- Changes to follow our style guide more closely.

---------

Co-authored-by: Hana <48352564+Piralein@users.noreply.github.com>
2023-02-12 18:31:38 +01:00
Max Hilbrunner
ede5a6de40 Merge pull request #6759 from Calinou/update-using-fonts-2
Mention disabling bilinear filtering in Using fonts
2023-02-12 18:30:37 +01:00
smix8
7af155b8cf Fix errors in navigation_layers bitmask example
Fixes errors in navigation_layers example like wrong property names or missing string closure.
2023-02-12 00:58:50 +01:00
Hana
64476d96b4 update references 2023-02-10 19:13:03 +01:00
Hugo Locurcio
823c7bd8c6 Mention disabling bilinear filtering in Using fonts
This is required for fonts with a pixel art appearance to look
correct (dynamic or bitmap).

This also fixes the mention of the first Godot version to support
WOFF2 fonts.
2023-02-10 14:52:19 +01:00
Max Hilbrunner
bbe291af42 Merge pull request #6750 from Calinou/gdscript-basics-unicode-identifiers
Document Unicode identifiers now being supported in GDScript reference
2023-02-09 10:12:32 +01:00
huulong
e7fbd0e136 Fix gdscript_exports @export_node_path example by adding quotes around class names to pass strings 2023-02-08 20:24:28 +01:00
Hugo Locurcio
0c9ac1fc42 Document Unicode identifiers now being supported in GDScript reference 2023-02-08 19:06:55 +01:00
Rémi Verschelde
42523a3839 Merge pull request #6748 from Calinou/update-using-fonts
Update Using fonts documentation for 4.0.beta17
2023-02-08 18:29:57 +01:00
Hugo Locurcio
f8a612cd47 Update Using fonts documentation for 4.0.beta17
- Mention subpixel positioning should be disabled for fonts with a pixel art
  appearance.
- Update bitmap font import dock image and document image/character margin.
- Fixed character range example to match the font image (it previously
  had to be reduced by 1 due to an off-by-one error in the importer code).
2023-02-08 14:44:56 +01:00
Raul Santos
5010fa0d17 Add missing differences to C# documentation (#6739)
* Add missing differences to C# documentation

- Add `NodePath` section.
- Add `RID` section.
- Update `Transform2D` section.
- Add `Transform3D` section.
- Add `Rect2i` section.
- Add `AABB` section.
- Add `Projection` section.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-08 12:44:20 +01:00
Max Hilbrunner
19861b20a9 Merge pull request #6725 from KLee1248/shader_reference_types
Updates GLSL reference to contain GDScript types
2023-02-08 12:43:24 +01:00
Hugo Locurcio
f46c850908 Clarify behavior with #define and semicolons in Shader preprocessor 2023-02-08 00:01:04 +01:00
Michael Tintiuc
5134ed23e8 Update sync_with_audio.rst 2023-02-07 21:07:11 +02:00
Kenneth Lee
ad1d3072c4 Updates GLSL reference to contain GDScript types
The typing information was ultimately determined in this file where
Varients are converted and packed:
a51ca2beaf/servers/rendering/renderer_rd/storage_rd/material_storage.cpp (L42)

The documentation doesn't contain a reference to dealing with how
Packed[Float|Int]Arrays are interpreted, but should be a much better
starting point for new users.
2023-02-06 14:09:43 -08:00
Max Hilbrunner
8a19f44532 Merge pull request #6666 from Calinou/shader-preprocessor-undefine-unexisting
Clarify `#undef` behavior on non-existing defines in Shader preprocessor
2023-02-06 10:18:46 +01:00
Aaron Franke
370f936922 GDScript style guide: Improve type inference section (#6661) 2023-02-05 16:33:38 +03:00
31
8a9729d900 Add C# type test example (pattern matching) (#6732)
* Add C# type test example (pattern matching)
* Connect section to "is" section, put "advanced" note back
2023-02-05 16:22:07 +03:00
Jonathan Deiss
bec737cb75 Update gdscript_styleguide.rst (#6379)
Adds two changes:
- makes it clear where subclasses should go (at the bottom of the script)
- put the `_enter_tree()` method before `_ready()` but after `_init()` since that's the order in which the methods are executed
2023-02-05 16:19:27 +03:00
Yuri Sizov
c2683480e8 Merge pull request #6696 from Piralein/csharp-refcount
Update and add C# RefCounted example in "Scenes versus Scripts"
2023-02-05 16:11:06 +03:00
31
e155194384 C#: Replace "falsy" with "false" in C# "is" doc (#6733) 2023-02-05 16:08:39 +03:00
31
ec045a4342 Lowercase titles for C# exports and signals pages 2023-02-04 16:08:57 -08:00
KekLuck
f94ac69dcc Fix method names in Navigation overview (#6712)
Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-02-04 23:27:13 +03:00
Danil Alexeev
aa271f3aab Clarify @export_enum docs (#6704) 2023-02-04 23:13:33 +03:00
Adi Mathur
e77de7e287 remove invalid web feature tags (#6715) 2023-02-04 22:20:53 +03:00
Adi Mathur
108fdc681e Add C# documentation for the export section (#6362)
* add c# documentation for the export section
* update for 4.0 naming changes
* update server feature tag
* fix typo and change feature flag name
2023-02-04 22:20:10 +03:00
Yuri Sizov
4e9b3ab73b Merge pull request #6717 from Flavelius/patch-1
Fix wrong registration method names for 3D gizmo plugins
2023-02-04 22:17:37 +03:00
Raul Santos
7c014cfce6 Document Signal and Callable types in C# differences page (#6722) 2023-02-04 21:29:09 +03:00
Yuri Sizov
39ba707179 Merge pull request #6730 from raulsntos/dotnet/variant
Add a dedicated page about the C# Variant type
2023-02-04 20:37:54 +03:00
Raul Santos
1a118aed3a Apply suggestions from code review
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-02-04 18:08:54 +01:00
Raul Santos
e9389ccbe6 Add a dedicated page about the C# Variant type 2023-02-04 18:08:22 +01:00
Yuri Sizov
6d5adf61a8 Merge pull request #6677 from raulsntos/dotnet/array-docs
C#: Add table with equivalent Array methods
2023-02-04 19:56:16 +03:00
Raul Santos
84d7a0f8d8 C#: Add table with equivalent Array methods 2023-02-04 17:49:11 +01:00
Yuri Sizov
41ccb262aa Merge pull request #6721 from raulsntos/dotnet/globalscope-docs
C#: Add table with equivalent GlobalScope methods
2023-02-04 19:35:32 +03:00
Marvin
6fe03f9bfe Small C# fix in the "Arc polygon function" section (#6729) 2023-02-04 19:27:48 +03:00
Raul Santos
d7f4e6b607 C#: Add table with equivalent GlobalScope methods 2023-02-04 17:07:39 +01:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Matthew
d6b4fe8ab9 Merge pull request #6603 from Calinou/update-importing-3d-scenes
Update Importing 3D scenes documentation for Godot 4.0
2023-02-03 19:31:26 -05:00
Yuri Sizov
5b59294b8d Merge pull request #6720 from notPelf/patch-1
Clarify ternary operator in the style guide
2023-02-03 18:20:14 +03:00
Matthew
8f0a570fcf Merge pull request #6216 from Calinou/revamp-gi-docs
Revamp global illumination documentation
2023-02-02 21:13:57 -05:00
Matthew
bce6dd6001 Merge pull request #6707 from runny-yolk/patch-1
Linking between First 2D Shader and Custom Drawing
2023-02-02 20:43:37 -05:00
notPelf
beb5f02422 Clarify ternary operator in the style guide
In the current style guide, the example for ternary operators includes a "not" in the conditional which is the same text color as the preceding "if" giving the impression that the format for a ternary operation is "[some_value] if not [condition] else [other_value]" which is incorrect, and may be confusing to figure out. I'm new to Godot and I've never used python (which I understand GDScript is based on). My only experience is with c# which I don't believe has a "not" keyword so I was quite confused by this.

This change would remove "not" from the condition to eliminate confusion, and rearrange the values to keep the meaning of the example code the same. Any alternative that removes the "not" would also work.
2023-02-01 18:41:48 -05:00
Bastiaan Olij
1ce191bd76 Fix headings in XR action map documentation 2023-02-02 09:42:04 +11:00
Eddie (Xiao Di) Li
5c80189d97 Update Saving games documentation for Godot 4.0 (#6371) 2023-02-01 16:25:47 +01:00
Hugo Locurcio
6e3881b06a Fix default deadzone value in Controllers, gamepads and joysticks (#6701) 2023-02-01 16:01:54 +01:00
Max Hilbrunner
72d70b10d4 Merge pull request #6708 from jeudytuanisapps/patch-1
Add new 3rd party company
2023-02-01 15:36:31 +01:00
Julien Winning
0f5a516a0f Update 3d_gizmos.rst
As mentioned here https://github.com/godotengine/godot-docs/issues/6716
add/remove_node3d_gizmo_plugin is the wrong method name. But i'm not sure if it intentionally changed to add/remove_node_3d_gizmo_plugin.
Here are the adjustments anway in case it is intentional and going to stay that way.
2023-02-01 13:42:27 +01:00