Replace XML codeblock spaces with tabs

This commit is contained in:
kobewi 2025-05-17 20:00:17 +02:00 committed by Rémi Verschelde
parent 5dd76968d8
commit 13f642d959
No known key found for this signature in database
GPG key ID: C3336907360768E1
122 changed files with 2407 additions and 2432 deletions

View file

@ -33,8 +33,8 @@
[codeblock]
# Calls "hide" to all nodes of the "enemies" group, at the end of the frame and in reverse tree order.
get_tree().call_group_flags(
SceneTree.GROUP_CALL_DEFERRED | SceneTree.GROUP_CALL_REVERSE,
"enemies", "hide")
SceneTree.GROUP_CALL_DEFERRED | SceneTree.GROUP_CALL_REVERSE,
"enemies", "hide")
[/codeblock]
[b]Note:[/b] In C#, [param method] must be in snake_case when referring to built-in Godot methods. Prefer using the names exposed in the [code]MethodName[/code] class to avoid allocating a new [StringName] on each call.
</description>
@ -76,16 +76,16 @@
[codeblocks]
[gdscript]
func some_function():
print("start")
await get_tree().create_timer(1.0).timeout
print("end")
print("start")
await get_tree().create_timer(1.0).timeout
print("end")
[/gdscript]
[csharp]
public async Task SomeFunction()
{
GD.Print("start");
await ToSignal(GetTree().CreateTimer(1.0f), SceneTreeTimer.SignalName.Timeout);
GD.Print("end");
GD.Print("start");
await ToSignal(GetTree().CreateTimer(1.0f), SceneTreeTimer.SignalName.Timeout);
GD.Print("end");
}
[/csharp]
[/codeblocks]