Commit Graph
132 Commits
Author SHA1 Message Date
63cec69b30 Add a paragraph about self (#8928)
Adds a paragraph about the self keyword and documents that
it can be used to refer to variables defined in subclasses of
current class.

---------

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: RedMser <5117197+RedMser@users.noreply.github.com>
Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-12-26 15:30:42 -08:00
Quinn 6292c86298 Replace mentions of Reference with RefCounted 2024-11-29 22:13:27 +10:00
mechalynxandtetrapod 0f8c24b071 Update PackedArray explanation to match Godot 4.0 behavior (#10304)
Add paragraphs describing the differences between PackedArray and
normal or typed Array.

---------

Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-22 10:03:47 +01:00
Max Hilbrunner cc48adbf4e Merge pull request #10080 from tetrapod00/gdscript-sidebar
Improve GDScript Basics sidebar navigation by changing header levels
2024-10-28 23:22:36 +01:00
Max Hilbrunner 8d28f0fc82 Merge pull request #10097 from Calinou/gdscript-basics-documentation-comments
Mention documentation comments in GDScript basics
2024-10-18 05:33:23 +02:00
Hugo Locurcio cbf61b3f02 Document Variant not being nullable 2024-10-17 15:28:24 +02:00
Hugo Locurcio 594a1d6cbc Mention documentation comments in GDScript basics 2024-10-17 15:12:35 +02:00
tetrapod00 4a24e7553b Improve GDScript Basics sidebar navigation by changing header levels
Promotes many headers up one level, so they appear in the sidebar.
Removes the redundant Language header, since the whole page is about the language.
2024-10-13 13:30:41 -07:00
Junwan Park e01a998069 Fix builtin_types link in tutorial gdscript_basics page
It's linked to a wrong position.
2024-09-27 01:43:04 +09:00
Hugo Locurcio 4726e131db Document PackedVector4Array
This type was added in Godot 4.3.
2024-09-02 22:21:50 +02:00
A Thousand Ships 0686612e82 [GDScript] Clarify initialization of enum values 2024-08-31 14:41:33 +02:00
Max Hilbrunner ff66473d3d Merge pull request #9787 from tetrapod00/gdscript-when
Document GDScript "when" and clarify pattern guard docs
2024-08-29 21:38:01 +02:00
tetrapod00 443d5e9be5 Add documentation for GDScript when statement 2024-08-26 09:39:41 -07:00
MajorGonzo 1d05bdd9f1 Corrected typo in gdscript_basics.rst
beging -> begin
2024-08-20 08:38:57 -05:00
DDoopandMax Hilbrunner e9035f7cf0 Add warnings for classes named "Editor" in GDscript and C# pages, class_name keyword/global class attribute (#9548)
* Added warning about Editor hiding class_names beginning with Editor prefix

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-08-14 19:42:36 +02:00
Muller-Castro a36ff907f9 Add typed loop variable example in GDScript reference (#9388) 2024-08-02 02:30:20 +02:00
Danil Alexeev 67be15e905 GDScript: Update lambda documentation 2024-06-29 14:51:46 +03:00
3e2a8f6f7c Update outdated annotation and setget syntax
Co-Authored-By: PoolloverNathan <24194027+PoolloverNathan@users.noreply.github.com>
Co-Authored-By: Solor Vox <1246172+solorvox@users.noreply.github.com>
2024-06-27 22:13:37 +02:00
Hakunamawatta eb14a4adae Typo in gdscript_basics.rst 2024-06-19 22:32:32 +10:00
A Thousand Ships 36e2351df2 Fix invalid indentation in various files 2024-06-06 16:16:45 +02:00
CJ Brown 7b91dffc22 Remove Note from Constants
PR #71051
Documentation not updated to reflect deep read-only change to const Array and const Dictionary
2024-05-21 14:37:23 -04:00
Yuri Rubinsky 3e05334189 Add a super keyword to the table of keywords 2024-05-02 18:35:10 +03:00
Max Hilbrunner 160034a4ac Merge pull request #9188 from allenwp/annotation-improvements
Improve description of annotations
2024-04-30 04:19:10 +02:00
Allen Pestaluky 8dd09aa962 Improved description of annotations
Removes an unnecessary and potentially confusing comparison of annotations to keywords and generally improves wording in the GDScript Basics tutorial. A new page to the Contributing section has been added for scripting development guidelines. This new page hosts suggestions on when annotations should be implemented in GDScript.
2024-04-29 13:18:30 -04:00
NormPlum 94b33fc106 Update gdscript_basics.rst
Fix grammar re. 'await/awaiting'.
2024-04-27 03:13:09 +00:00
JP 4ae3064699 Fixed out of date binding syntax for Signal.connect
fixes godotengine/godot-docs#9236
2024-04-23 13:33:09 +02:00
Danil Alexeev 60befd7527 GDScript: Clarify raw string literals documentation 2024-04-09 16:25:03 +03:00
lena 2925c83390 docs: Clarify associativity of operators. (#9170)
* docs: Clarify associativity of operators.
2024-04-06 19:28:25 +02:00
Danil Alexeev 46e69f0d1e GDScript: Document is not operator 2024-02-07 13:25:33 +03:00
Matthew 6a6f786c7a Merge pull request #8870 from scotmcp/patch-2
Correcting link to class Reference
2024-02-01 21:46:12 -05:00
scotmcpandA Thousand Ships 0fc05ae44e Update tutorials/scripting/gdscript/gdscript_basics.rst
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-01-31 15:31:11 -05:00
scotmcp 83bd5dddc3 Fixed Type description from resource to GDScript 2024-01-31 18:59:27 +01:00
scotmcp 330f58f208 Correcting reference link
line 2016 references Class, should reference Resource
2024-01-31 18:59:27 +01:00
Danil Alexeev c3322d8d27 GDScript: Document variable initialization order 2024-01-14 19:35:25 +03:00
Hugo Locurcio e93fc9b1f2 Document importing SVG images with text
- Mention editor plugins and custom node icons should use the appropriate
  import options.
2024-01-11 00:18:50 +01:00
Mathias L. BaumannandDanil Alexeev d3ee49e2b7 Update tutorials/scripting/gdscript/gdscript_basics.rst
Lambdas need an explicit `return`

Extend the documentation so that it is clear that lambdas require an explicit return .

Also add an according example.

Co-Authored-By: Danil Alexeev <danil@alexeev.xyz>
2024-01-07 13:59:19 +01:00
The Yellow Architect c01e958492 Corrected expected output in enum comments 2023-12-13 21:05:14 +02:00
TheYellowArchitect 795df857cb Added enum iteration example 2023-12-10 20:32:57 +02:00
Max Hilbrunner 31063027c8 Merge pull request #7579 from dalexeev/gds-setter-getter-doc
GDScript: Clarify setter/getter documentation
2023-11-11 02:26:01 +01:00
Byemoh 46c743ae37 Update gdscript_basics.rst 2023-11-08 18:44:05 -06:00
Hugo Locurcio 54331c3c8f Document support for code folding regions in GDScript reference 2023-11-06 22:49:28 +01:00
Danil Alexeev e1911e7355 Fix list of default comment marker keywords 2023-11-02 11:47:52 +03:00
Hugo Locurcio 0756294d3b Document comment keywords being highlighted in the script editor 2023-11-01 15:07:14 +01:00
Benedikt Ziemons 1beedb8ae8 Update GDScript reference, 'in'-keyword explanation
The explanation for the keyword 'in' states it checks, whether an element is in a list (among others). This is the only occurrence of the word 'list' in this context and I assume it actually means array. To avoid future confusion, it makes sense to replace the word list with array in this explanation.
2023-10-19 10:22:37 +02:00
nicolas-scarrciandA Thousand Ships c1a9c4dc73 Clarify class keyword usage (#7741)
* Clarify class keyword usage

* Added reference link for class_name as well

---------

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-10-06 13:04:08 +02:00
Max Hilbrunner 17f0da6a53 Merge pull request #8130 from dalexeev/gds-update-static-typing
Update "Static typing in GDScript" page
2023-10-06 12:44:47 +02:00
Danil Alexeev 9eb7aa3f59 Update "Static typing in GDScript" page 2023-10-06 12:49:26 +03:00
Danil Alexeev 6ad7f78001 GDScript: Update match patterns and literal docs 2023-10-05 19:18:05 +03:00
Danil Alexeev da3f1a1275 GDScript: Document match pattern guards 2023-09-29 14:28:44 +03:00
Danil Alexeev 09d9d9a895 GDScript: Document raw string literals 2023-09-21 00:04:38 +03:00