Commit Graph
83 Commits
Author SHA1 Message Date
Max Hilbrunner d0d797ccbe Merge pull request #9837 from dementive/best-practices-cpp
Add GDExtension C++ snippets to tutorials/best_practices
2024-11-05 00:41:54 +01:00
tetrapod00 451649ddb6 Remove reference to 3.1 as a minimum version 2024-10-19 21:32:16 -07:00
dementive de7b67de64 Add C++ snippets to tutorials/best_practices 2024-10-15 13:49:36 -04:00
Anaclecio Brederodes c73450256a Correct "ConnectionCheck" return type
It was marked as "void" when it should be "bool".
2024-09-03 08:58:59 -03:00
Lukas Fletcher 118408e68d Update animations text in data_preferences.rst
Fix grammar in one sentence
Add reference to mentioned node
2024-08-25 18:28:39 +02:00
Lukas Fletcher 37e549eb3f remove article before plural noun from autoloads_versus_internal_nodes.rst autoloads_versus_internal_nodes.rst
remove 'a' from "share a variables"
2024-08-24 20:21:01 +02:00
Max Hilbrunner 2886f9b8b6 Merge pull request #9642 from Incognito357/Incognito357-update-docs-scene_organization
Update scene_organization.rst
2024-08-02 03:29:57 +02:00
skyace65 9050e076e7 Update docs for new TileMapLayer node 2024-08-01 07:06:12 -04:00
Jason 750879c632 Update scene_organization.rst
Rewrote to use active voice. Reworded some sections for grammar, clarity, or removal of banned words
2024-07-23 21:56:55 -04:00
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
TheCool 05efb4c9cf Update scene_organization.rst 2024-06-21 00:10:38 -07:00
Angelo Statescu e4bd774db3 Fixed a typo in node_alternatives.rst
Fixed a small typo in best_practices/node_alternatives
2024-04-29 21:30:58 +03:00
melquiadess dbe3a88377 Fix various minor typos 2024-04-20 16:41:23 +01:00
dawei-wang 1677faab23 Update Connect method example (#9202)
Update Connect method example
2024-04-10 14:04:35 +02:00
0WN463 76e76e2a25 Update data_preferences.rst
Correct dictionary re-allocation from "quadratic" to "exponential"
2024-02-15 23:58:28 +08:00
Hugo Locurcio 95fb178429 Add support for user-provided comments with Giscus
This allows users to leave comments on pages that don't have
`:allow_comments: False` somewhere in the page's source.
Both manual and class reference pages can receive comments.
Index pages cannot have comments, as discussion should occur on "leaf" pages.

GitHub Discussions is used as a backend on the same repository. This means
that Discussions *must* be enabled on godotengine/godot-docs before this
commit is merged to `master`. Users can choose to use the "Custom" watch
mode if they don't want to get notifications for discussion updates,
but still get notifications for issue and pull request updates.

User comments are intended to be used for the following purposes:

- Add a clarification or correct something in the documentation,
  without having to open a pull request. Contributors are encouraged to
  take a look at discussions from time to time, and see if there's information
  worth incorporating in the pages themselves. Don't forget to reply to
  the comment when doing so :)
- Mention a workaround for a common issue.
- Link to useful third-party resources that are relevant to the current page,
  such as tutorials or add-ons.

User comments should *not* be used for technical support. Other community
platforms should be used for that.

Page-to-discussion matching is done using the `pagename` Sphinx variable,
which is independent of the Godot version and documentation language.
Being independent of the Godot version allows keeping old comments
when the Godot version changes, while also allowing users from `/stable`
and `/4.1` to "see" each other in discussions.

See https://giscus.app for more information.
2024-01-11 17:51:53 +01:00
Lyric Moysey-Rubin c08a1a89ac Fix export annotation being formatted as Godot 3.
While browsing the docs, I noticed that there was a bit of code obviously misformatted for Godot 4. Fixed it, hopefully.
2024-01-03 01:07:33 -08:00
Software2 59e0774454 Remove out of date warning from version_control_systems.rst
The plugin in mention has been updated to work with Godot 4.1 an later.
https://github.com/godotengine/godot-git-plugin/releases/tag/v3.1.0
2023-12-17 23:46:43 -08:00
Michael Gundlach 79863df05d Clarify explanation of property initialization.
The previous text implied (at least to me) that there was something
special in Godot called an "init assignment value", and that there was
special logic determining which kind of assignment was used.  In
reality, nothing special is happening: the property is initialized, then
the constructor may set the value, then exports may as well.

I also harmonized the Godot and C# code samples, rather than expecting
the user to read both in order.

Frankly I almost feel like this would be clearer if the entire section
were simply deleted, but I wasn't sure if that would be accepted.
2023-11-18 10:39:06 -05:00
Yuri Sizov cd92be066d Update references to private class methods across the docs 2023-11-10 16:06:36 +01:00
kleonc 00a296a7f0 Fix incorrect C# example using _GetConfigurationWarnings 2023-11-02 00:53:32 +01:00
Robert Maguire 2976c1ff6f Document alternative dotfile method for Windows 2023-10-22 16:25:20 -05:00
HolonProductionandMax Hilbrunner a0789aae63 Update code snippet to Godot 4 (#8114)
* Update code snippet to Godot 4

* Update tutorials/best_practices/godot_notifications.rst

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-10-09 01:48:43 +02:00
Mark Wilson 147d2233c7 Improve C# GD.Load() examples
* Use typed version of GD.Load()
* Use absolute paths (i.e., prefixed with "res://")
* Use "Path/To/" intermediate path values on abstract examples, to
  illustrate that files can live in various directories
* Use PascalCase on files that are not GDScript or GLSL
2023-10-08 12:25:43 -04:00
skyace65 1ae0eff971 Fix Build issue 2023-10-02 21:19:42 -04:00
cabbagestole 66dbc98627 Update godot_interfaces.rst
One too many open curly bracket "{".

Wrong
        public void PrintMe() {

Correct
        public void PrintMe()
2023-09-24 17:55:09 +09:00
GamEsnitzhel 041ff3c28d Added missing C# example in tutorials -> best practices -> godot_notifications. (#7936)
* Added C# example

* Fixed C# example in godot_notifications
2023-09-18 07:48:33 +02:00
Hana - Piralein e598653d4a add missing annotation prefix 2023-08-20 14:52:35 +02:00
Max Hilbrunner c924ee8527 Merge pull request #7505 from raulsntos/dotnet/remove-funcref 2023-07-22 22:22:29 +02:00
Hugo Locurcio dbcbceb4bc Update Best practices documentation for Godot 4.1
Note that the Data preferences page is still marked as outdated,
as the internal implementation of Dictionary/HashMap has changed
in Godot 4.0.
2023-07-20 17:42:15 +02:00
kastromatos 56ad07a857 Not relevant 'Known issues' section in 'Version Control Systems' best practices
Not relevant 'Known issues' section in 'Version Control Systems' best practices. For Godot 3.4 and above.
https://github.com/godotengine/godot/issues/20250
2023-07-11 11:57:18 +02:00
Raul Santos 3e514494b8 C#: Replace FuncRef with Callable in outdated example 2023-06-13 11:15:54 +02:00
Raul Santos c457ab79ec 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.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +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
matt08-progandMax Hilbrunner 88e02928f3 rework two funcref code examples (#6542)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 11:32:07 +02:00
Max Hilbrunner e13dc5d09a Merge pull request #7299 from Ubiguchi/patch-1 2023-05-15 01:22:09 +02:00
AV77 1426a11449 Fixed minor grammatical error 2023-05-11 14:27:29 +00:00
Mark J. Easton 96d83a01cf Update description of scenes' use of declarative code
Tighten language  mentioning scenes' use of declarative code and scripts use of imperative code.
2023-05-08 12:14:21 +01:00
Peter Anderson 5cbf147988 Fix grammer in logic_preferences.rst (#7173)
* Update logic_preferences.rst
2023-04-18 03:09:30 +02:00
Danil Alexeev 59075ad12f Fix GDScript code style regarding colon (docs) 2023-03-05 16:51:08 +03:00
Yuri Sizov 978a13bb0a Mark potentially outdated pages with a WIP warning 2023-02-26 14:21:15 +01: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
Raul SantosandPaul Joannon 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
Hana dca106e909 update code examples 2023-01-29 22:06:44 +01:00
BlueStag 135ad68cab Use 4.0 method of connecting to and emitting signals (#6311)
Change docs to use the new method of connecting and emitting signals
2023-01-22 22:01:34 -05:00
Hana 9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Hugo Locurcio 509804650e Update all instances of instance() to instantiate() 2022-11-29 16:59:09 +01:00
Mina Eskandar 20e515aed3 Fixed a grammatical error 2022-11-13 21:29:56 +02:00
Max Hilbrunner 99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner 6c13f5ba58 More Godot 4 renames and fixes (#6317)
* Move ImmediateGeometry -> ImmediateMesh

* More Godot 3 -> Godot 4 renames
2022-10-15 23:12:48 +02:00