318 Commits

Author SHA1 Message Date
kkoang
ffd84fa9a0 Fix inline code display in GDScript reference (#5907) 2022-07-03 21:02:15 +02:00
Spencer Kotys
22f820a036 Improved documentation for GDScript in keyword (#5883)
* Improve 'in' operator description

* Apply syntax suggestions from code review

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-06-22 18:48:29 +02:00
Danil Alexeev
e161f86cf5 Update docs about doc comments (@desc: replaced with blank line) (#5838) 2022-05-26 19:40:34 +02:00
Yuri Rubinsky
239c49cc8a Add pow operator to GDScript operators list 2022-05-12 11:10:14 +03:00
Haoyu Qiu
1c71b31210 Document zero padding and left alignment in format string (#5790) 2022-05-01 19:08:22 +02:00
Hugo Locurcio
b54e6e4ec8 Update syntax for GDScript 2.0 in GDScript exports 2022-04-10 01:55:11 +02: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
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
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
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
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
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
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
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
skyace65
baa8f38032 minor clarification about export node_path 2021-08-03 19:35:30 -04:00
merumelu
41a3150726 GDScript style guide: tint borders of good/bad code examples (#5138)
Add `rst-class` directives before code blocks to allow custom styling.
2021-08-01 16:09:09 +02:00
Hugo Locurcio
669c163135 Add a GDScript style guide recommendation for multiline wrapping 2021-07-29 15:30:21 +02:00
Max Hilbrunner
0ecdd19c3f Merge pull request #3892 from ThakeeNathees/gdscript-documentation-comments
Documentation for the GDScript documentation comments
2021-07-12 13:45:13 +02:00
Marcin Sędłak-Jakubowski
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02:00
Hugo Locurcio
8505b713a2 Document nested ternary-if usage example in GDScript reference 2021-07-07 01:47:25 +02:00
Max Hilbrunner
6f2bf43c5f Merge pull request #4857 from saolof/patch-1
Minor change to section on for loop syntax
2021-07-06 08:36:25 +02:00
Vladislav Vorobev
9ffebd0812 Fixed class_name keyword ordering in GDScript style guide
Fixes two examples to follow rules described in "Code order" section of this page.
2021-06-25 12:05:50 +03:00
Rémi Verschelde
044b6a74f8 Cleanup uses of double spaces between words or after punctuation 2021-06-07 10:44:02 +02:00
DeeJayLSP
931e3087c3 Change text to avoid use of first person in Static typing in GDScript (#4953) 2021-06-04 00:25:25 +02:00
Hugo Locurcio
ea7814b25c Add a "see also" link to the GDScript grammar in the GDScript section
The page is in the Development section, but it's not easy to discover.
2021-04-23 18:49:09 +02:00
saolof
6377b21b22 Update gdscript_advanced.rst 2021-04-22 06:42:29 -04:00
saolof
5cf04ee69c Update gdscript_advanced.rst 2021-04-21 19:55:50 -04:00