mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Fix more miscellaneous oddities around the class reference
This commit is contained in:
@@ -343,7 +343,7 @@
|
||||
return "Welcome to Godot 4!"
|
||||
|
||||
func _init():
|
||||
print(self) # Prints Welcome to Godot 4!"
|
||||
print(self) # Prints "Welcome to Godot 4!"
|
||||
var a = str(self) # a is "Welcome to Godot 4!"
|
||||
[/codeblock]
|
||||
</description>
|
||||
@@ -406,7 +406,7 @@
|
||||
<param index="0" name="signal" type="String" />
|
||||
<param index="1" name="arguments" type="Array" default="[]" />
|
||||
<description>
|
||||
Adds a user-defined [param signal]. Optional arguments for the signal can be added as an [Array] of dictionaries, each defining a [code]name[/code] [String] and a [code]type[/code] [int] (see [enum Variant.Type]). See also [method has_user_signal] and [method remove_user_signal].
|
||||
Adds a user-defined signal named [param signal]. Optional arguments for the signal can be added as an [Array] of dictionaries, each defining a [code]name[/code] [String] and a [code]type[/code] [int] (see [enum Variant.Type]). See also [method has_user_signal] and [method remove_user_signal].
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
add_user_signal("hurt", [
|
||||
|
||||
Reference in New Issue
Block a user