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
saolof
15bcf71083
Minor change to section on for loop syntax
...
The C-like for loop is specific to languages that wanted to copy C syntax and has nothing to do with static vs dynamic typing. Most new languages do not have it and have a foreach loop over iterators instead, regardless of whether they are statically typed or not.
2021-04-21 18:53:34 -04:00
Rémi Verschelde
ca41df2fd0
Merge pull request #4597 from skyace65/weakref
...
Add code example for weakref
2021-03-19 13:16:34 +01:00
Matthew
2a4dcc40d6
Add information on onready annotation to C# differences page ( #4565 )
2021-03-19 12:46:23 +01:00
skyace65
4f19eea5c9
Add code example for weakref
2021-01-28 22:30:24 -05:00
Thakee Nathees
6fac7f0d8d
documentation for the GDScript documentation comments
...
(thanks @baloonpopper and @Calinou for the nitpicks)
Co-ayuthored-by: balloonpopper<5151242+balloonpopper@users.noreply.github.com >
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro >
2020-12-25 11:34:15 +05:30
Nathan Lovato
f68abde1e8
Write first script and player input pages
...
Closes #4173
2020-12-02 15:47:29 -06:00
Nathan Lovato
9f3f93912f
Merge pull request #4403 from NathanLovato/content/first_3d_game_tutorial
...
Getting started: your first 3D game tutorial
2020-12-02 15:43:32 -06:00
Nathan Lovato
6cc90eb58f
Write part 5 of the 3D first game tutorial, add reference
2020-11-25 14:02:05 -06:00
Hugo Locurcio
471618db61
Clarify that GDScript is not based on Python
...
This also fixes capitalization where "GDscript" was used instead of
"GDScript".
This closes #4378 .
2020-11-19 14:57:12 +01:00
Nathan Lovato
b928c651e7
Add note about line skips in the style guide
2020-11-18 08:10:24 -06:00
Nathan Lovato
3665f22bab
Edit the scripting section
...
Misc grammar fixes, improvements to phrasing, and more.
Co-authored-by: balloonpopper <5151242+balloonpopper@users.noreply.github.com >
2020-11-10 08:18:44 -06:00
Nathan Lovato
7e7df1cc03
Merge class_name docs from scripting_continued.rst into gdscript docs
2020-11-07 23:23:19 -06:00
Nathan Lovato
a74cf9ac21
Fix two code lines wrapped in a single one
2020-10-10 21:44:27 -06:00
George Marques
e5d0fa4d67
Apply suggestions from code review
...
Include suggestions from Calinou
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro >
2020-10-10 21:44:27 -06:00
George Marques
efbea16f01
Describe GDScript properties
2020-10-10 21:44:08 -06:00
George Marques
ec48a04a85
Update export docs to use annotations
2020-10-10 21:44:07 -06:00