Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,28 @@ lua.do_string("""
print(v:pcall('length')) -- true 2.2360680103302
print(v:pcall('invalid method')) -- false "Invalid method"
```
## Signal
- Use signals with `Callable`.
```lua
function myClass:_on_timeout()
print("timeout end")
end

function myClass:_ready()
local timer = self:get_tree():create_timer(2.0)
--another way is : timer:connect("timeout", Callable(self, "_on_timeout"))
timer.timeout:connect(Callable(self, "_on_timeout"))
end

```
---

## 📘 User Guide
- We also offer a user guide covering the use of Lua through many aspects of Godot:
* 🇫🇷 [Guide d'utilisation (Français)](documentation/FR_GUIDE.md)
* 🇬🇧 [User Guide (English)](documentation/EN_GUIDE.md)

---

## TODO
- [X] Bind Variant types to Lua
Expand Down
Loading