Commit Graph

138 Commits

Author SHA1 Message Date
Max Hilbrunner
9f8810d7f8 Merge pull request #5752 from Calinou/gdscript-exports-update-syntax
Update syntax for GDScript 2.0 in GDScript exports
2022-04-21 12:35:39 +02:00
Luis Adolfo Ramírez
558ba65828 Fix typo in GDNative C++ example (#5761) 2022-04-13 00:44:38 +02:00
Hugo Locurcio
b54e6e4ec8 Update syntax for GDScript 2.0 in GDScript exports 2022-04-10 01:55:11 +02:00
Hugo Locurcio
4709121d02 Document GDNative add-on version compatibility being stricter than usual 2022-04-06 19:14:05 +02:00
skyace65
7a3585a382 Improve and update pausing games for Godot 4 2022-03-13 14:51:03 -04:00
Micky
1d6c90a434 Change remaining "export" to "@export"
This PR changes the "export"s in the Array section of the GDScript Exports documentation to the "@export" annotation to be in line with 4.0.

Also slightly touches up the wording when referring to default null assignment and Packed*Arrays.
2022-02-27 14:30:15 +01:00
Max Hilbrunner
37b4b1430a Merge pull request #5604 from Calinou/gdnative-cpp-example-remove-nativescript-1.0
Remove references to NativeScript 1.0 in GDNative C++ example
2022-02-25 05:03:30 +01:00
Zshandi Krahn
66305cf83b Fixed grammar in "Awaiting for signals" end note (#5586)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-02-24 14:54:09 +01:00
Rémi Verschelde
9621bed314 Merge pull request #5579 from Sauermann/fix-onready-annotations 2022-02-24 14:13:07 +01:00
skyace65
0b4017d519 Document line continuation in GDScript 2022-02-22 20:34:32 -05:00
Markus Sauermann
aaf6b3e504 Update tutorials: Rename Transform to Transform3D (#5603) 2022-02-14 13:27:37 +01:00
Hugo Locurcio
440141e494 Remove references to NativeScript 1.0 in GDNative C++ example
NativeScript 1.1 has been supported in Godot 3.1 and later, which
means the latest version of the documentation doesn't need to
cover it anymore.

This also improves grammar and writing style.
2022-02-14 01:12:31 +01:00
Victor Karp
7d3cd55ea2 Add missing closing quotation marks in GDScript format strings (#5583) 2022-02-05 21:23:04 +01:00
Markus Sauermann
57a9ef3fea Add @ to onready annotated variables in examples 2022-02-04 19:33:10 +01:00
Max Hilbrunner
74a720e169 Merge pull request #5532 from exploregamedev/rpc_annotation
Reduced reference to RPC annotations down to @rpc
2022-01-28 16:46:11 +01:00
SnailRhymer
5d43929a09 Add navigation annotations to gdscript export docs
Under 'exporting bit flags', add 2D and 3D navigation annotations to the bit flag annotation examples.
2022-01-27 15:50:20 +00:00
samkeen
9ec9531b9a Reduced the RPC annotations down to @rpc
As per this post (and merge to master):
https://godotengine.org/article/multiplayer-changes-godot-4-0-report-2
The multiplayer annotations have reduced down to only @rpc (as far
as I can tell? apologies if I've miss interpreted this)

- removed the deprecated annotations and replaced with @rpc
- replaced an example that referenced @remote
2022-01-19 19:30:12 -08:00
skyace65
76550d3653 Add information on using continue with match to gdscript table 2022-01-09 11:03:43 -05:00
Matthew
d17c415009 Update and improve VS Code setup instructions (#5501)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-01-08 00:06:25 +01:00
Max Hilbrunner
fbc887ab2d Merge pull request #5484 from Ivorforce/patch-2
Refer to NativeScript 1.1 as 'new' rather than 'upcoming' in the GDNative cpp example
2021-12-29 18:33:32 +01:00
Matthew
f1ff320f06 Clarify singleton read order (#5457)
* Clarify singleton read order

* Apply suggestions from code review

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-12-29 18:29:52 +01:00
Ivorius
d85e844a94 Refer to NativeScript 1.1 as 'new' rather than 'upcoming' in the GDNative cpp example 2021-12-29 13:51:12 +01:00
Matthew
0247f14e1e Clarify tree order in Using SceneTree (#5449)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-12-14 11:05:29 +01:00
Fernando Carmona Varo
94beafa63b Change PackedScene instance() to instantiate() (#5439) 2021-12-08 00:26:00 +01:00
itsadrago
e9c31d9104 Fix incorrect explanation of successful evaluation in Evaluating expressions (#5424) 2021-12-02 16:56:03 +01:00
Max Hilbrunner
0fb9b49e3e Merge pull request #5339 from zacryol/memory-mgmnt-refactor
Refactor Memory Management section
2021-11-07 20:09:12 +01:00
zacryol
c5291196aa Refactor Memory Management section
Makes it more clear that Node is not freed automatically.
The part that states RefCounted as the default was moved to Inheritance
WeakRef example was altered to show a RefCounted object not prevented from freeing.
2021-11-07 08:14:51 -07:00
Max Hilbrunner
8472c9a304 GDScript Basics: More braces for consistency. 2021-11-03 19:20:52 +01:00
Max Hilbrunner
ddcd1c7c89 Merge pull request #5264 from bearbybits/patch-1
Change square brackets to parentheses
2021-11-03 19:18:27 +01:00
Max Hilbrunner
7b758e4739 Merge pull request #5326 from zacryol/inferred-typing-cast
Show example of casting get_node() for static typing in style guide
2021-11-03 14:43:45 +01:00
Sietseq
7954084bd4 GDNative: Specify to use the 3.x branch (#5354)
GDExtensions has been merged into the godot-cpp master branch. The tutorial should specify to use the 3.x branch if the reader is creating GDNative scripts.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-11-03 14:30:22 +01:00
zacryol
35211f6002 Show example of casting get_node() for inferred static typing in style guide 2021-10-22 11:04:56 -06:00
zacryol
8b5fb7a39d Rename var "character_dir" to "character_dict" in GDScript style guide (#5325) 2021-10-16 01:12:08 +02:00
Max Hilbrunner
61e30a2894 Merge pull request #5319 from Calinou/gdignore-ignores-contents
Document that `.gdignore` files' contents are ignored
2021-10-12 03:07:55 +02:00
Hugo Locurcio
81fea66371 Document that .gdignore files' contents are ignored 2021-10-11 23:36:17 +02:00
zacryol
6d1819f2f1 Add Format String to operator/precedence list 2021-10-10 09:21:55 -06:00
Scott
ec8d40cb85 Fix variable casing for class load() in GDScript basics (#5309) 2021-10-09 08:30:04 +02:00
Rémi Verschelde
9a05eef561 4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown
in screenshot fit what the code blocks are referring to.
2021-10-06 14:29:55 +02:00
Rémi Verschelde
05ed919228 Merge pull request #5266 from akien-mga/gdscript-no-exp_range 2021-09-29 13:33:45 +02:00
Hugo Locurcio
31033b212b Fix void typed function code sample in GDScript basics 2021-09-25 19:49:24 +02:00
Rémi Verschelde
f39354b7f8 GDScript: Remove reference to @export_exp_range
Cf. #52800.
2021-09-17 23:00:38 +02:00
bearbybits
d7bbff839f Change square brackets to parentheses
Minor change to avoid unnecessary confusion by conditional statements not executing properly if a beginner programmer uses square brackets rather than parentheses to enclose a condition.
2021-09-16 16:05:25 -07:00
Aaron Franke
5c7f653347 Optimize PNG and SVG images using oxipng and svgcleaner (#5254) 2021-09-14 17:50:17 +02:00
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
Matthew
44c2aa0b07 Add note that C# tools plugin requires the mono SDK on Linux (#5228)
* Add note that C# tools plugin requires mono SDK
2021-09-10 12:42:41 +02:00
Max Hilbrunner
110e0af817 Merge pull request #5219 from skyace65/C#Exports
Add C# Export Page
2021-09-09 13:02:52 +02:00
skyace65
f8fffccde0 Add C# Export Page 2021-09-07 08:38:17 -04:00
Kevin Conner
c6e58d8fad Remove an incorrect distinction drawn with Objective-C (#5224)
An Objective-C method call will not be ignored when the object doesn't
define the method. It will crash with a runtime exception.

The author may have been thinking of the way an Objective-C method call
will be ignored when the object is nil. But that's not the case when the
object is there and lacks the method. In that case, the runtime will
call -doesNotRecognizeSelector:. The default behavior in the root class
NSObject is to raise an exception (not the try/catch kind; a similar
case is array bounds checks) and deliberately crash.

https://developer.apple.com/documentation/objectivec/nsobject/1418637-doesnotrecognizeselector?language=objc
2021-09-05 18:48:16 +02:00
euseibus
76b1ae4b53 Fix GDNative typo: "godot_headers" should be "godot-headers" (#5220)
Co-authored-by: euseibus <>
2021-09-02 16:06:06 +02:00
luzpaz
d9bc787dd9 Fix various typos (#5215)
Fix various typos

Found via `codespell -q 3 -S ./LICENSE.txt -L doubleclick,findn,lod,inout,nd,raison,te`
2021-09-02 17:02:23 +03:00