Commit Graph

343 Commits

Author SHA1 Message Date
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
Danil Alexeev
4aff3ddc8a Update "GDScript reference" (operators and match) (#7323)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 10:57:40 +02:00
Felipe Augusto Marques
c4db831703 More precise documentation about property underlying access (#7362)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 09:36:54 +02:00
Max Hilbrunner
9caad0c5e4 Merge pull request #7308 from Yunusemre-Oeztuerk/patch-1 2023-05-15 01:16:42 +02:00
Max Hilbrunner
c4410b6816 Merge pull request #7309 from Yunusemre-Oeztuerk/patch-2 2023-05-13 22:16:47 +02:00
Danil Alexeev
1575f5f714 Mention that annotations in GDScript support constant expressions 2023-05-12 16:38:20 +03:00
Yunusemre-Oeztuerk
c535fc7b1d gdexample.gdextension file not recognized
Using Windows 10 and Godot 4.0.2 Mono

The gdexample.gdextension file used in the example project is not being recognized by my version of Godot. I don't know the exact reason but I'm guessing it is because it doesn't specify whether or not it is supposed to be a debug or release file.

My changed .gdextension file is the same as the one that is available under godot-cpp\test\demo\example.gdextension. With this one it worked with no problems.
2023-05-08 14:54:23 +02:00
Yunusemre-Oeztuerk
c6d224c4ea Error in gdexample.cpp
When adding the getter and setter functions to the example project a void has been added to the constructor in line 439 which was previously not there (in line 213) and is also causing the error C2533: constructors not allowed a return type. Simply removing it again fixes it.
2023-05-08 14:42:15 +02:00
AV77
de8348230c Replaced all instances of "hard drive" with "local storage" (#7287) 2023-05-05 13:34:34 +02:00
Michael Macha
b8830332a5 Clarified statement
Previously, the section on ADD_SIGNAL was a little convoluted and not entirely correct. I've fixed mild grammatical issues and expanded on it for new programmers, addressing these issues.
2023-05-04 12:17:26 -06:00
Max Hilbrunner
5e04f6550c Merge pull request #6565 from piyushmulatkar/patch-1 2023-05-04 14:03:31 +02:00
Max Hilbrunner
3283eae7d8 Merge pull request #7271 from Calinou/gdscript-add-breakpoints
Document how to add breakpoints in the editor and using `breakpoint`
2023-05-03 20:58:47 +02:00
Hugo Locurcio
698c40e72a Document how to add breakpoints in the editor and using breakpoint
Until now, there was little documentation on how to create breakpoints
(including persistent ones with the `breakpoint` keyword). This may
not be obvious to those who haven't used other IDEs before.

This also documents' breakpoints persistent behavior since the editor
state is saved.
2023-05-03 20:26:46 +02:00
Russell Matney
fe3b20f903 docs: add script templates example
Ran into this today - the docs are good but could use an actual example
to confirm what they imply. Using a node name as a directory name is
kind of odd - this would have helped me figure it out at a glance.
2023-05-02 16:44:09 -04:00
Max Hilbrunner
0dcaaefac8 Merge pull request #7258 from jynus/issue7247
Update usages of obsolete rad2deg() and deg2rad() in docs
2023-05-01 16:49:18 +02:00
Jcrespo
6865811c81 Update usages of obsolete rad2deg() and deg2rad() in docs
There were 4 pages documentation pages still using deg2rad(),
which have been substituted by deg_to_rad() and the examples
tested against 4.0.X.

There was 1 usage of C# Deg2Rad(), now DegToRad().

Some dependent comments and output have been updated accordingly:
(deg_to_rad() is implemented in the Math core functions, not in
the Expressions class), plus some float precission fixes, at
least on my architecture.

Only one mention of rad2deg() was found in all docs.

Fixes #7247
2023-05-01 12:24:15 +02:00
Max Hilbrunner
153ccd57e5 Merge pull request #7249 from K1aymore/patch-1
Remove unneeded repetition in gdscript_basics.rst
2023-05-01 10:44:29 +02:00
Cameron
da69035b1c minor grammar and typo in gdscript_documentation_comments.rst 2023-04-30 10:47:39 -07:00
Klaymore
627fd49e90 Remove unneeded repetition in gdscript_basics.rst 2023-04-29 21:54:17 -07:00
Rémi Verschelde
d646a58465 Merge pull request #7222 from YuriSizov/zips-zapped
Move tutorial ZIPs to a dedicated repository
2023-04-27 15:51:37 +02:00
Doonv
bd77af86e6 Fix small typo in the GDExtension C++ example (#7224)
* Fix typo in the GDExtension C++ example

---------

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-04-26 18:48:31 +02:00
Yuri Sizov
0606a8ed38 Move tutorial ZIPs to a dedicated repository 2023-04-26 10:42:20 +02:00
Max Hilbrunner
64a3b465c2 Update SFC to Godot Foundation, old URLs 2023-04-17 23:53:52 +02:00
iwVerve
7b4684b7a0 missing word typo on documentation comments page 2023-04-11 14:07:12 +02:00
Rémi Verschelde
27918155b0 GDExtension example: _process delta is a double
It's `Variant::FLOAT` in the bindings, which is always a double.

Changed other member variables for consistency so there's no implicit
conversions between float and double.

Fixes https://github.com/godotengine/godot-cpp/issues/1073.
2023-04-04 15:04:38 +02:00
mtttz
562dfdcbcc Document support for escaped UTF-16 and UTF-32 Unicode characters
Fixes #5607
2023-03-30 06:29:48 +02:00
Patrick
b4f3575d3b Update/Clarify gdextension docs 2023-03-25 01:21:19 +01:00
ganymoe
9df4b09f3f fix paths used in gdextension example
fixes godotengine#7044
2023-03-23 21:30:46 +01:00
Max Hilbrunner
62e502fe23 Merge pull request #7004 from kzerot/patch-1
Added info about range() with negative step
2023-03-23 04:49:37 +01:00
Max Hilbrunner
ebf3a02dbc Merge pull request #6498 from vmedea/2022-12-style-guide
Update style guide for new export and setget syntax
2023-03-23 04:46:52 +01:00
Max Hilbrunner
86c4c136ea Merge pull request #7005 from rcorre/array-type
Document array types.
2023-03-23 04:41:10 +01:00
Max Hilbrunner
b53e989669 Merge pull request #7012 from jwmcgettigan/onready-patch
Updated instances of onready to @onready.
2023-03-23 04:39:30 +01:00
Max Hilbrunner
7d5fb4e6a2 Various fixups 2023-03-23 03:13:29 +01:00
Max Hilbrunner
8d1cfa6c37 Merge pull request #6345 from Calinou/add-custom-platform-ports
Add a page on creating custom platform ports
2023-03-23 02:38:02 +01:00
Hugo Locurcio
12ff0a170d Document the Visual Profiler debugger tab, update some screenshots to 4.0 (#6976)
* Document the Visual Profiler debugger tab, update some screenshots to 4.0

* Update tutorials/scripting/debug/debugger_panel.rst

Co-authored-by: Clay John <claynjohn@gmail.com>

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2023-03-22 11:29:05 +01:00
RedStainedInk
a434971e4f Updating the instructions for C# debugging in Visual Studio Code (#6977)
* Updating the instructions for Visual Studio Code

Edited the instructions needed to make Visual Studio Code debugging work with Godot 4 - .net. Explained the situation with the not yet updated Godot c# extension for Visual Studio Code.

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-03-22 11:26:22 +01:00
Ivan Shakhov
c3869d986a update the profiling C# code section of the doc for Godot 4 (#7025)
* update the profiling C# code section of the doc for Godot 4

---------

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-03-22 11:01:59 +01:00
Justin McGettigan
7f7042c515 Updated instances of onready to @onready. 2023-03-18 16:06:11 -04:00
Ryan Roden-Corrent
cd0fad3bab Document array types.
Fixes #6972.
2023-03-17 19:26:49 -04:00
Max
07175e60a0 Added info about range with negative step
Added info about range with a negative step, because I have a lot of questions "how can I get a reversed range in GDScript?" in my local community.
2023-03-17 18:08:51 -05:00
Hugo Locurcio
f658307ac7 Add a page on creating custom platform ports 2023-03-13 18:53:38 +01:00
George Marques
4d86f91ff7 Add note in GDScript reference about inference with Variant (#6934) 2023-03-13 17:41:07 +01:00
pcamp
264df54c2a Fix typo in gdscript_basics
"change" -> "changes"
2023-03-13 01:05:08 -05:00
Yuri Sizov
92f539dce2 Merge pull request #6881 from timothyqiu/autoload
Fix Autoload capitalization inconsistency
2023-03-06 18:53:29 +01:00
gomaproi
c39a8d9dc5 Update some screenshots in the Scripting section for Godot 4 (#6851) 2023-03-06 10:48:20 +01:00
Danil Alexeev
59075ad12f Fix GDScript code style regarding colon (docs) 2023-03-05 16:51:08 +03:00
Haoyu Qiu
ff5fab13f4 Fix Autoload capitalization inconsistency 2023-03-04 09:33:48 +08:00
Patrick
11ae34336f Fix GDExtension file path for extension registration
This PR fixes the issue by adding the necessary `/demo` path part.

Fixes https://github.com/godotengine/godot-docs/issues/6872#issuecomment-1452752784
2023-03-03 02:03:48 +01:00
Ulugbeg
6dd9e26420 Added missing ^= from list of assignment
In the list of the (lowest priority) Assignment Operators, `^-` was not listed, but it does exist & work.
2023-02-28 21:41:39 +01:00