Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
31
docs/docs1_6/objects/Object/setShadow.md
Normal file
31
docs/docs1_6/objects/Object/setShadow.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Object
|
||||
|
||||
## setShadow
|
||||
|
||||
Sets the shadow color - default: false
|
||||
|
||||
### Parameters
|
||||
|
||||
1. `number|color` Shadow color
|
||||
|
||||
#### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage
|
||||
|
||||
* Sets the shadow to green and shows it:
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local subFrame = mainFrame:addFrame()
|
||||
:setMovable()
|
||||
:setSize(18,6)
|
||||
:setShadow(colors.green)
|
||||
```
|
||||
|
||||
Or:
|
||||
|
||||
```xml
|
||||
<frame width="18" height="6" shadowColor="green" movable="true" />
|
||||
```
|
||||
Reference in New Issue
Block a user