Commit Graph

93 Commits

Author SHA1 Message Date
Thiago Lages de Alencar
591296ceb3 Update in description (#6526)
* Update `in` description

It can be used without the `if` keyword
It appears as keyword in gdscript tokenizer: 0103af1ddd/modules/gdscript/gdscript_tokenizer.cpp (L474)
2023-01-06 01:00:57 +01:00
Yuri Sizov
97e69ebc72 Merge pull request #6481 from Piralein/gd-export
Update GDScript Export Docs
2022-12-30 02:17:59 +03:00
Hana
74804eb8e9 update gdscript export docs 2022-12-29 22:20:33 +01:00
Mara Huldra
66c620583f static_typing: Cyclic type dependencies and enums as types are now possible 2022-12-18 18:24:22 +01:00
Hugo Locurcio
01cc64412c Document node property exports now being possible in GDScript 2022-12-08 14:32:39 +01:00
Hugo Locurcio
d46c17f8ff Improve the Upgrading to Godot 4 page
- Mention various caveats of upgrading, such as unavailable features.
- Mention external shaders not being updated by the conversion tool.
- List optional things to do before upgrading to make the process smoother.
2022-12-05 13:15:52 +01:00
FeralBytes
fad177f9b0 Change match typeof() example from REAL to FLOAT in GDScript reference (#6384)
TYPE_REAL no longer exists, changed to TYPE_FLOAT
2022-11-14 14:46:40 +01:00
Max Hilbrunner
4bdf16e6fe Merge pull request #6336 from opl-/fix/tool-mode-anchor
Fix tool mode section reference position
2022-10-24 02:42:55 +02:00
opl-
e0757940cf Fix tool mode section reference position 2022-10-23 21:52:52 +02:00
atn
eb60c8968c small correction
Removed an additional notify in the function's name
2022-10-20 09:27:51 +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
024fedb0f3 Kinematic -> Character 2022-10-15 17:55:24 +02:00
Max Hilbrunner
1fffab8cf2 Formatting, syntax and URL fixes 2022-10-11 10:14:37 +02:00
NationalityNZ
24770fd215 Update gdscript_basics.rst (#5873)
* Update gdscript_basics.rst

Added some pragmatic advice for for-loops

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2022-10-11 09:32:13 +02:00
Max Hilbrunner
0f77b03a42 Merge pull request #6276 from HolonProduction/master
Add explanation of lambdas to GDScript basics.
2022-10-11 08:08:32 +02:00
HolonProduction
bd27c031a8 Add explanation of lambdas to GDScript basics.
Some examples and wordings were copied from the original proposal godotengine/godot-proposals#2431.

This also contains notion of one line functions.
2022-10-08 08:58:50 +02:00
HolonProduction
b0001380c0 Improve description of range function.
Fixes #5763

The description from before did not take negative `s` into account.
2022-10-07 23:30:45 +02:00
Evanaellio
3cb674285e Fix references to the @tool annotation 2022-09-21 22:48:04 +02:00
Hugo Locurcio
696f746dff Fix nested typed arrays being claimed as supported in GDScript reference 2022-09-04 19:41:53 +02:00
0xF812
b08b95d4f5 Fix missing quote in GDScript reference (#6123) 2022-08-30 16:39:44 +02:00
seanfy
1273f4a490 Fix typo in GDScript reference: 'user' -> 'use' (#6033) 2022-08-05 09:51:04 +02:00
Vladislav Vorobev
3dd5afca78 Fix missing code blocks in GDScript exports (#5998) 2022-07-28 23:08:51 +02:00
Jaime Crespo
33caaf6535 Fix misc syntax/style errors/warnings on documentation head (#5977) 2022-07-23 18:29:56 +02:00
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