mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Replace XML codeblock spaces with tabs
This commit is contained in:
parent
5dd76968d8
commit
13f642d959
122 changed files with 2407 additions and 2432 deletions
|
|
@ -18,23 +18,23 @@
|
|||
[codeblocks]
|
||||
[gdscript]
|
||||
func _input(event):
|
||||
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
|
||||
if get_rect().has_point(to_local(event.position)):
|
||||
print("A click!")
|
||||
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
|
||||
if get_rect().has_point(to_local(event.position)):
|
||||
print("A click!")
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (@event is InputEventMouseButton inputEventMouse)
|
||||
{
|
||||
if (inputEventMouse.Pressed && inputEventMouse.ButtonIndex == MouseButton.Left)
|
||||
{
|
||||
if (GetRect().HasPoint(ToLocal(inputEventMouse.Position)))
|
||||
{
|
||||
GD.Print("A click!");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (@event is InputEventMouseButton inputEventMouse)
|
||||
{
|
||||
if (inputEventMouse.Pressed && inputEventMouse.ButtonIndex == MouseButton.Left)
|
||||
{
|
||||
if (GetRect().HasPoint(ToLocal(inputEventMouse.Position)))
|
||||
{
|
||||
GD.Print("A click!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue