Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
29
docs/docs1_6/objects/Object/setAnchor.md
Normal file
29
docs/docs1_6/objects/Object/setAnchor.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Object
|
||||
|
||||
## setAnchor
|
||||
|
||||
Sets the anchor of the object
|
||||
|
||||
### Parameters
|
||||
|
||||
1. `string` Anchor sides `("topLeft" "top", "topRight", "right", "bottomRight", "bottom", "bottomLeft", "left", "center")`
|
||||
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
### Usage
|
||||
|
||||
* Sets the button to have an anchor of `bottomRight`
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame():show()
|
||||
local aButton = mainFrame:addButton()
|
||||
:setAnchor("bottomRight")
|
||||
:setSize(8,1)
|
||||
:setPosition(-8,1)
|
||||
```
|
||||
|
||||
```xml
|
||||
<button anchor="bottomRight" />
|
||||
```
|
||||
Reference in New Issue
Block a user