72 Commits

Author SHA1 Message Date
TheCool
c89f7dfeaf Update scene_organization.rst
(cherry picked from commit 05efb4c9cf)
2024-07-24 21:07:13 +02:00
0WN463
dc481e4b97 Update data_preferences.rst
Correct dictionary re-allocation from "quadratic" to "exponential"

(cherry picked from commit 76e76e2a25)
2024-07-24 20:26:13 +02:00
Max Hilbrunner
8d9af1aa97 Merge pull request #9260 from melquiadess/fix-typos
Fix various minor typos

(cherry picked from commit 9237eb804c)

# Conflicts:
#	contributing/documentation/docs_image_guidelines.rst
#	tutorials/export/one-click_deploy.rst
#	tutorials/xr/openxr_settings.rst
2024-05-07 15:15:03 +02:00
Matthew
a1094ce629 Merge pull request #9302 from st-angelo/master
Fix a typo in node_alternatives.rst

(cherry picked from commit fe4d617920)
2024-05-07 13:00:46 +02:00
dawei-wang
a4aebd8412 Update Connect method example (#9202)
Update Connect method example

(cherry picked from commit 1677faab23)
2024-05-07 12:57:52 +02:00
Matthew
4dfb0648c7 Merge pull request #8711 from IntangibleMatter/patch-1
Fix export annotation being formatted as Godot 3.
2024-01-25 10:09:27 +01:00
Max Hilbrunner
2cd1805af9 Merge pull request #8642 from software-2/master
Remove out of date warning from version_control_systems.rst
2024-01-25 09:54:37 +01: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
HolonProduction
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 Hilbrunner
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-prog
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 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
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
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Max Hilbrunner
9862cbea87 Reference -> RefCounted 2022-10-15 17:26:59 +02:00
Kirrby
9d9d4b821c Updating change_scene and change_scene_to (#6175)
* Updating change_scene and chnage_scene_to

solves #6156
2022-10-05 12:57:40 +02:00
addmix
e007845f19 Added node initialization best practices
Partially resolves #45638
2022-09-16 03:04:05 -06:00
Raul Santos
3b36a94d35 Update C# signal documentation
Updates C# signal documentation and code examples to the new API in 4.0
2022-08-26 15:59:43 +02:00
Rémi Verschelde
9621bed314 Merge pull request #5579 from Sauermann/fix-onready-annotations 2022-02-24 14:13:07 +01:00
Markus Sauermann
1e6a033a8f Update tutorials: VisualServer to RenderingServer 2022-02-09 20:20:13 +01:00
Markus Sauermann
57a9ef3fea Add @ to onready annotated variables in examples 2022-02-04 19:33:10 +01:00
Markus Sauermann
dd10dff974 Swap extends line with class_name to follow GDScript style guide (#5573) 2022-01-30 19:18:34 +01:00
zacryol
b39374bcb1 Update information regarding VCS-ignorable directories (#5429)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-12-04 21:29:00 +01:00
Paul
c42e9e67be Remove redundant line in Version control systems (#5398) 2021-11-16 23:40:48 +01:00