19 Commits

Author SHA1 Message Date
Kevin Conner
882405c9d4 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-10-15 15:15:58 +02:00
Michael Alexsander
95784cf94f General formating fixes for GDScript scripting pages (#3248) 2020-03-06 20:28:58 +01:00
Rémi Verschelde
1df5a0ae68 Merge pull request #3061 from asynts/asynts.syntax-highlighting-2
Incorrect syntax highlighting for languages other than GDScript.
2020-01-27 08:39:00 +01:00
Marincia Catalin
37670ff9e4 Replaced wrong semicolon by a colon ! 2020-01-23 23:31:35 +02:00
asynts
53f878bdaf Replace 'code' directives with 'code-block' directives.
The `code` directive highlights all sources as GDScript. Other languages are
highlighted incorrectly at the moment, even if `.. code:: [language]` is
specified.

It does, however, work with the `code-block` directive. The reason seems to be
that this directive is Sphinx specific.
2020-01-13 18:45:39 +01:00
Max Hilbrunner
aed79c2583 GDScript Advanced: Improve custom iterator example
Fix syntax by removing multiple variable declarations on the same line, which GDScript does not (yet?) support, use clearer class and variable names, and rename the misleading "is_done()" function to "should_continue()", as the value returned (and returned by _iter_init() and iter_next() actually signifies the opposite: true means continue, false means stop. Also remove the superfluous do_step() function. 

Closes #2433.

Co-authored-by: a e <afablee@gmail.com>
2019-05-09 03:48:56 +02:00
corrigentia
088974fbfc Fix some grammar in gdscript_advanced.rst (#1978) 2018-12-05 16:06:43 +01:00
Rémi Verschelde
4ef06a4135 Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
2018-11-20 11:08:34 +01:00
Vikram1323
3d9f98318d Update gdscript_advanced.rst 2018-10-15 20:03:38 +05:30
Profesor Tartelett
8032eca4d7 Probable typo. Changed Vector(x, y) to Vector2(x, y) 2018-06-03 13:02:52 +02:00
mhilbrunner
f215a0cf26 Proofing/review: Remove filler words, adhere to style guide 2018-05-06 05:23:37 +02:00
Michael Alexsander Silva Dias
e173600c79 Various fixes to the "Scripting -> GDScript" to respect the GDScript style guide. 2018-04-23 02:31:55 -03:00
Neil Moore
97c3d0c975 Document how to create and use custom iterators 2018-04-04 01:06:37 -04:00
Josh
ccc7a3b400 Update gdscript_advanced.rst
Typo
2018-03-23 09:29:23 -05:00
Max Hilbrunner
4a649c7b4e Fix #958 2018-03-13 19:08:21 +01:00
Michael Alexsander Silva Dias
23cb08ce0a Fixes for the GDScript styling in various pages. 2018-02-05 20:12:52 -02:00
StaticDynamics
d62a97f2b6 Fix typo in gdscript_advanced.rst
Changed "an" to "and" in dictionary section.
2018-02-04 19:54:54 -05:00
Joaquin Ruiz Luque
858c5a221e Update gdscript_advanced.rst
Small fixes.
2018-02-02 16:15:55 -03:00
Nathan
18f889b6a4 Improve docs structure
Change Step by Step in Getting Started
Remove Engine Features category, move into a new Tutorials top-level section
2018-01-25 08:54:27 +01:00