The master branch was reverted to 1.7 because it was very unstable (bugs and stuff that wasn't mentioned on the documentation page yet) - features will come back with 2.0 - fixed debug window - fixed flexbox not sending drag events to it's children - small docs updates for 1.7 - removed the examples because the are outdated
26 lines
398 B
Markdown
26 lines
398 B
Markdown
## setOffset
|
|
|
|
### Description
|
|
|
|
Sets the frame's offset, this offset is beeing used to move all children object's by the offset's position
|
|
|
|
### Parameters
|
|
|
|
1. `number` x position
|
|
2. `number` y position
|
|
|
|
### Returns
|
|
|
|
1. `object` The object in use
|
|
|
|
### Usage
|
|
|
|
* Sets the baseframes offset by y5.
|
|
|
|
```lua
|
|
local main = basalt.createFrame()
|
|
local button = mainFrame:addButton()
|
|
|
|
main:setOffset(0, 5)
|
|
```
|