mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Updated Layers (markdown)
parent
dc9c4e4add
commit
a9850db8c2
14
Layers.md
14
Layers.md
@ -21,7 +21,7 @@ In the same way a profile contains layers, a layer can also contain layers (chil
|
||||
|
||||
#### Example:
|
||||
```lua
|
||||
local layer = Profile.GetLayerByName("Test layer 1");
|
||||
local layer = Profile.GetLayerByName("Test layer 1")
|
||||
print(layer.Name)
|
||||
```
|
||||
|
||||
@ -30,14 +30,14 @@ print(layer.Name)
|
||||
Returns all child layers within the layer
|
||||
#### Syntax:
|
||||
```lua
|
||||
table GetChildren( );
|
||||
table GetChildren( )
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layer = Profile.GetLayerByName("Test layer 1");
|
||||
local children = layer.GetChildren();
|
||||
local layer = Profile.GetLayerByName("Test layer 1")
|
||||
local children = layer.GetChildren()
|
||||
for childKey, childValue in pairs(children) do
|
||||
print(childValue.Name)
|
||||
print(childValue.Name)
|
||||
end
|
||||
```
|
||||
#### Result:
|
||||
@ -51,12 +51,12 @@ Test child layer 2
|
||||
If found, returns the first child layer with the given name.
|
||||
#### Syntax:
|
||||
```lua
|
||||
layer GetChildByName(string layerName);
|
||||
layer GetChildByName(string layerName)
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layer = Profile.GetLayerByName("Test layer 1");
|
||||
local child = layer.GetChildByName("Test child layer 1");
|
||||
local child = layer.GetChildByName("Test child layer 1")
|
||||
print(child.Name)
|
||||
```
|
||||
#### Result:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user