This commit is contained in:
qfx 2020-02-13 19:17:37 +02:00
parent 77f20a1b8c
commit 59d71e3c27

View File

@ -89,8 +89,9 @@
Now theres a lot to explain, but its fairly simple, so lets take it by chunks
```lua
local input = require "helium.core.input"
```
Here we import the input module of Helium, so that we can later subscribe to an event
@ -127,10 +128,9 @@
```
Is the rendering code, it works more or less like a mini window of a love.draw()
Additional details:
view is a table that holds the information about the position and size of an element
x,y
w,h
### Additional details:
**view** is a table that holds the information about the position and size of an element
x, y, w, h
Setting this from inside the element works as expected(so you can dynamically resize and reposition the element from inside)
param is the table that you pass in buttonFactory({}, 200, 100), it can be anything you need