Commit Graph

343 Commits

Author SHA1 Message Date
Mach565
d089a504e9 Continue no longer works in a match statement (#6674) 2023-01-28 23:33:30 +03:00
Yuri Sizov
e2df72255a Merge pull request #6680 from raulsntos/dotnet/plane-docs
C#: Remove Plane section from C# differences page
2023-01-28 22:45:21 +03:00
Raul Santos
17ca353ae6 Add Color section to C# differences page 2023-01-28 18:43:29 +01:00
Raul Santos
55dd91b1e6 Update some of the C# documentation for 4.0 (#6681)
* Update C# documentation for 4.0

---------

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-01-28 01:17:38 +01:00
Raul Santos
ebd89d2569 C#: Add TOOLS define and remove custom features
- The `TOOLS` define wasn't documented anywhere.
- Add `GODOT_REAL_T_IS_DOUBLE` define to the list.
- Custom features as defines were removed and are no longer added.
2023-01-27 18:14:11 +01:00
Raul Santos
171cfc9a85 C#: Remove Plane section from C# differences page 2023-01-27 03:16:33 +01:00
mara
2b271ba33e tutorials/scripting: Mention % literal syntax
It was unclear to me what that '%' literal syntax does, add
examples in the appropriate places.
2023-01-25 20:16:48 +01:00
Max Hilbrunner
0c18a7cb67 Merge pull request #6643 from paulloz/csharp/signals
Create a dedicated "C# Signals" page
2023-01-23 19:22:15 +01:00
BlueStag
135ad68cab Use 4.0 method of connecting to and emitting signals (#6311)
Change docs to use the new method of connecting and emitting signals
2023-01-22 22:01:34 -05:00
Paul Joannon
3347df2edb Create a dedicated "C# Signals" page 2023-01-22 17:37:29 +01:00
Max Hilbrunner
7b21d5c293 GDScript basics: expand upon continue explanation (#6650)
Co-authored-by: DavidVereb <davidvereb@users.noreply.github.com>
2023-01-22 17:19:56 +01:00
Vince Nguyen
c8f45094b5 Removed outdated documentation 2023-01-21 21:24:51 -08:00
Matthew
eb25278373 Merge pull request #6534 from thiagola92/single_quote
Update string literal example
2023-01-18 21:09:26 -05:00
Matthew
55ca145bcd Merge pull request #6628 from adamscott/move-icon-to-top
Update icon annotation references in the documentation
2023-01-18 21:02:37 -05:00
Pedro Pais
232f359d05 Update Pause Mode documentation (#6624)
changed reference to "process" pause mode to "when paused"
2023-01-18 19:58:20 -05:00
Adam Scott
9ab272f94b Update icon annotation references in the documentation 2023-01-18 08:12:59 -05:00
Matthew
ad31850c36 Merge pull request #6617 from jmdejong/patch-6
link to appropriate Object._get() and Object._set() sections
2023-01-17 20:14:41 -05:00
DeadlyEssence01
9bc011a1df Fix C# ChangeScene Method Name in Scene Tree tutorial. 2023-01-16 21:02:22 -05:00
Paul Joannon
d70bc1b691 Document export grouping in C# (#6621)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-01-17 02:45:47 +01:00
J.M. de Jong
6485c97491 link to appropriate Object._get() and Object._set() sections 2023-01-15 11:12:30 +01:00
Anthony Cossins
f994d270f8 Update references to Color constants for Godot 4 (#6602) 2023-01-14 00:19:09 +01:00
Paul Joannon
ac22d6e537 Update & fix C# blocks under tutorials/scripting/
- `_Process` and `_PhysicsProcess` take their delta argument as a `double`
- Use string interpolation instead of concatenating strings
- Use `string` instead of `String` (`using System` was removed from everywhere in a previous PR)
- Use `System.Array.Empty<T>()` to init empty arrays
- Use `SignalName.*` instead of `nameof(*)` for signals
- Do not use `event` as an argument name (that's a keyword)
- Match node paths to screenshots when retrieving nodes from the tree
- Add a C# example for scene unique nodes
- Update the "Cross language scripting" page
- Add a note about using `is` against `null`
2023-01-13 20:41:23 +01:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
JoNax97
fc52ca81f7 Update Pausing Games tutorial to match the 4.0 API (#6518)
* Update Pausing Games tutorial to match the 4.0 API

Some parts of the page were referring to the 3.x API, I've updated them following the observed behavior and API of 4.0beta9

* Apply suggestions from code review

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-01-11 14:45:50 +01:00
Max Hilbrunner
f38e40e858 Merge pull request #6544 from Simo-1234/patch-1
Error in the C# style guide
2023-01-09 20:54:07 +01:00
Piyush Mulatkar
dea8e1c94a Removed repetitive reference to NodePath
Removed repetitive mentions of NodePath 
Fixes #6554 
URL to the documentation page:
https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#nodepath
https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#id1
2023-01-07 01:50:30 +05:30
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
Simo-1234
e5f4132e16 Error in the C# style guide
There was written tertiary operator instead of ternary
2022-12-31 11:33:37 +01:00
Thiago Lages de Alencar
f2d0428c0c Update string literal example
Both examples were using double quotes, this change the second example to single quotes
2022-12-30 06:37:25 -03: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
31
0ed7937482 Fix Resource scripting blocks and C# examples 2022-12-28 22:35:47 -08:00
Max Hilbrunner
3c3c932f3d Merge pull request #6499 from vmedea/2022-12-enum-type
static_typing: Cyclic type dependencies and enums as types are now possible
2022-12-22 08:44:25 +01:00
Hugo Locurcio
62c1050bac Add a page on custom performance monitors (#6409) 2022-12-19 17:48:40 +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
roookeee
2b9d539ed2 C#: Avoid accessing expensive properties of Godot C# objects multiple times if possible (#6408)
Co-authored-by: Nico Heller <nheller@uni-bremen.de>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-12-16 13:39:04 +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
Ignacio Roldán Etcheverry
d43100c2fc Merge pull request #6442 from raulsntos/dotnet/string-extensions
C#: Add table with equivalent string methods
2022-12-02 14:55:35 +01:00
Raul Santos
72b626cf65 C#: Add table with equivalent string methods
Adds a table with the list of methods C# methods that are equivalent to
the methods in Godot's String (including links to Microsoft's
documentation and alternative APIs to consider).
2022-12-01 05:49:26 +01:00
Hugo Locurcio
509804650e Update all instances of instance() to instantiate() 2022-11-29 16:59:09 +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
Jean-Samuel Aubry-Guzzi
5e421754ec Add warning about importing c# 2022-10-25 21:24:37 -04: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
3765e1ca51 Nuke GDNative from docs 2022-10-15 23:53:50 +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