Commit Graph

358 Commits

Author SHA1 Message Date
Hannes
085d4035a3 Changed a code example that didn't follow the style guide 2023-06-26 11:42:11 +02:00
Max Hilbrunner
efe99c2974 Merge pull request #7491 from paddy-exe/clarify-gdextension-master 2023-06-09 21:41:26 +02:00
Patrick
9704d2928e Set godot-cpp branch to 4.0 in GDExtension tutorial 2023-06-09 20:44:49 +02:00
Patrick
7961a18087 Fixes typos in GDExtension tutorial 2023-06-09 20:30:04 +02:00
Raul Santos
27e7f8433c Add page about using global classes in C# (#6740)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-06-06 11:13:49 +02:00
Max Hilbrunner
0f37d41577 Merge pull request #7412 from dalexeev/update-doc-bbcode 2023-05-30 09:30:51 +02:00
Max Hilbrunner
3b6184eb1d Merge pull request #7441 from br1trs/delete-get-root 2023-05-30 07:54:58 +02:00
br1trs
92d962ab75 delete get_root()
handling quit requests

multiple resolutions

change scenes manually

scene tree
2023-05-29 23:26:04 -06:00
Danil Alexeev
d8e71f7453 Update info about BBCode in doc comments and Class Reference 2023-05-29 21:43:10 +03:00
Danil Alexeev
15f32c5407 GDScript: Add mention that @onready @export doesn't work as expected 2023-05-27 15:25:50 +03:00
Leonid V. Fedorenchik
b3f0c96ed3 Fix code typos
* change parameter name to p_amplitude
* add const to get_speed()
2023-05-21 12:12:35 +08:00
Max Hilbrunner
e254433411 Merge pull request #7386 from Piralein/enum-stuff 2023-05-20 13:04:00 +02:00
Max Hilbrunner
7cb53b2839 Merge pull request #7378 from paddy-exe/update-gdextension-syntax 2023-05-20 13:00:40 +02:00
Hana - Piralein
f337bb0f82 improve description of enums 2023-05-19 18:19:33 +02:00
Patrick
37c50b1909 Update GDExtension tutorial for entry functions
Docs part of https://github.com/godotengine/godot-cpp/pull/1095
Same changes as https://github.com/godotengine/godot-cpp/pull/1115
2023-05-19 11:32:59 +02:00
Raul Santos
c457ab79ec Update some C# examples
- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +02:00
Max Hilbrunner
72c0af46b2 Snake-case .tscn, .gd and _on_* callbacks
Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
2023-05-18 12:46:58 +02:00
Danil Alexeev
4aff3ddc8a Update "GDScript reference" (operators and match) (#7323)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 10:57:40 +02:00
Felipe Augusto Marques
c4db831703 More precise documentation about property underlying access (#7362)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 09:36:54 +02:00
Max Hilbrunner
9caad0c5e4 Merge pull request #7308 from Yunusemre-Oeztuerk/patch-1 2023-05-15 01:16:42 +02:00
Max Hilbrunner
c4410b6816 Merge pull request #7309 from Yunusemre-Oeztuerk/patch-2 2023-05-13 22:16:47 +02:00
Danil Alexeev
1575f5f714 Mention that annotations in GDScript support constant expressions 2023-05-12 16:38:20 +03:00
Yunusemre-Oeztuerk
c535fc7b1d gdexample.gdextension file not recognized
Using Windows 10 and Godot 4.0.2 Mono

The gdexample.gdextension file used in the example project is not being recognized by my version of Godot. I don't know the exact reason but I'm guessing it is because it doesn't specify whether or not it is supposed to be a debug or release file.

My changed .gdextension file is the same as the one that is available under godot-cpp\test\demo\example.gdextension. With this one it worked with no problems.
2023-05-08 14:54:23 +02:00
Yunusemre-Oeztuerk
c6d224c4ea Error in gdexample.cpp
When adding the getter and setter functions to the example project a void has been added to the constructor in line 439 which was previously not there (in line 213) and is also causing the error C2533: constructors not allowed a return type. Simply removing it again fixes it.
2023-05-08 14:42:15 +02:00
AV77
de8348230c Replaced all instances of "hard drive" with "local storage" (#7287) 2023-05-05 13:34:34 +02:00
Michael Macha
b8830332a5 Clarified statement
Previously, the section on ADD_SIGNAL was a little convoluted and not entirely correct. I've fixed mild grammatical issues and expanded on it for new programmers, addressing these issues.
2023-05-04 12:17:26 -06:00
Max Hilbrunner
5e04f6550c Merge pull request #6565 from piyushmulatkar/patch-1 2023-05-04 14:03:31 +02:00
Max Hilbrunner
3283eae7d8 Merge pull request #7271 from Calinou/gdscript-add-breakpoints
Document how to add breakpoints in the editor and using `breakpoint`
2023-05-03 20:58:47 +02:00
Hugo Locurcio
698c40e72a Document how to add breakpoints in the editor and using breakpoint
Until now, there was little documentation on how to create breakpoints
(including persistent ones with the `breakpoint` keyword). This may
not be obvious to those who haven't used other IDEs before.

This also documents' breakpoints persistent behavior since the editor
state is saved.
2023-05-03 20:26:46 +02:00
Russell Matney
fe3b20f903 docs: add script templates example
Ran into this today - the docs are good but could use an actual example
to confirm what they imply. Using a node name as a directory name is
kind of odd - this would have helped me figure it out at a glance.
2023-05-02 16:44:09 -04:00
Max Hilbrunner
0dcaaefac8 Merge pull request #7258 from jynus/issue7247
Update usages of obsolete rad2deg() and deg2rad() in docs
2023-05-01 16:49:18 +02:00
Jcrespo
6865811c81 Update usages of obsolete rad2deg() and deg2rad() in docs
There were 4 pages documentation pages still using deg2rad(),
which have been substituted by deg_to_rad() and the examples
tested against 4.0.X.

There was 1 usage of C# Deg2Rad(), now DegToRad().

Some dependent comments and output have been updated accordingly:
(deg_to_rad() is implemented in the Math core functions, not in
the Expressions class), plus some float precission fixes, at
least on my architecture.

Only one mention of rad2deg() was found in all docs.

Fixes #7247
2023-05-01 12:24:15 +02:00
Max Hilbrunner
153ccd57e5 Merge pull request #7249 from K1aymore/patch-1
Remove unneeded repetition in gdscript_basics.rst
2023-05-01 10:44:29 +02:00
Cameron
da69035b1c minor grammar and typo in gdscript_documentation_comments.rst 2023-04-30 10:47:39 -07:00
Klaymore
627fd49e90 Remove unneeded repetition in gdscript_basics.rst 2023-04-29 21:54:17 -07:00
Rémi Verschelde
d646a58465 Merge pull request #7222 from YuriSizov/zips-zapped
Move tutorial ZIPs to a dedicated repository
2023-04-27 15:51:37 +02:00
Doonv
bd77af86e6 Fix small typo in the GDExtension C++ example (#7224)
* Fix typo in the GDExtension C++ example

---------

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-04-26 18:48:31 +02:00
Yuri Sizov
0606a8ed38 Move tutorial ZIPs to a dedicated repository 2023-04-26 10:42:20 +02:00
Max Hilbrunner
64a3b465c2 Update SFC to Godot Foundation, old URLs 2023-04-17 23:53:52 +02:00
iwVerve
7b4684b7a0 missing word typo on documentation comments page 2023-04-11 14:07:12 +02:00
Rémi Verschelde
27918155b0 GDExtension example: _process delta is a double
It's `Variant::FLOAT` in the bindings, which is always a double.

Changed other member variables for consistency so there's no implicit
conversions between float and double.

Fixes https://github.com/godotengine/godot-cpp/issues/1073.
2023-04-04 15:04:38 +02:00
mtttz
562dfdcbcc Document support for escaped UTF-16 and UTF-32 Unicode characters
Fixes #5607
2023-03-30 06:29:48 +02:00
Patrick
b4f3575d3b Update/Clarify gdextension docs 2023-03-25 01:21:19 +01:00
ganymoe
9df4b09f3f fix paths used in gdextension example
fixes godotengine#7044
2023-03-23 21:30:46 +01:00
Max Hilbrunner
62e502fe23 Merge pull request #7004 from kzerot/patch-1
Added info about range() with negative step
2023-03-23 04:49:37 +01:00
Max Hilbrunner
ebf3a02dbc Merge pull request #6498 from vmedea/2022-12-style-guide
Update style guide for new export and setget syntax
2023-03-23 04:46:52 +01:00
Max Hilbrunner
86c4c136ea Merge pull request #7005 from rcorre/array-type
Document array types.
2023-03-23 04:41:10 +01:00
Max Hilbrunner
b53e989669 Merge pull request #7012 from jwmcgettigan/onready-patch
Updated instances of onready to @onready.
2023-03-23 04:39:30 +01:00
Max Hilbrunner
7d5fb4e6a2 Various fixups 2023-03-23 03:13:29 +01:00
Max Hilbrunner
8d1cfa6c37 Merge pull request #6345 from Calinou/add-custom-platform-ports
Add a page on creating custom platform ports
2023-03-23 02:38:02 +01:00