Updated some formatting
Updated formatting for object
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
# Object
|
||||
|
||||
## setBorder
|
||||
Sets the border of that objects, if false the border will be removed<br>
|
||||
|
||||
Sets the border of that objects, if false the border will be removed
|
||||
|
||||
Default: false
|
||||
|
||||
#### Parameters:
|
||||
### Parameters
|
||||
|
||||
1. `number|color` Border color
|
||||
2. `string` optional - sides. If you don't set sides, all 4 sides will have a border
|
||||
|
||||
#### Returns:
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
### Usage
|
||||
|
||||
* Sets the border to green and shows it:
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local subFrame = mainFrame:addFrame()
|
||||
@@ -18,6 +26,7 @@ local subFrame = mainFrame:addFrame()
|
||||
:setSize(18,6)
|
||||
:setBorder(colors.green, "left", "right", "bottom")
|
||||
```
|
||||
|
||||
```xml
|
||||
<frame width="18" height="6" borderColor="green" movable="true" />
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user