mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Profile (markdown)
parent
a9850db8c2
commit
ac2026bef2
14
Profile.md
14
Profile.md
@ -8,7 +8,7 @@ A profile contains a list of [layers](https://github.com/SpoinkyNL/Artemis/wiki/
|
||||
|
||||
#### Example:
|
||||
```lua
|
||||
print("Current profile: ".. Profile.Name);
|
||||
print("Current profile: ".. Profile.Name)
|
||||
```
|
||||
|
||||
## Functions
|
||||
@ -16,13 +16,13 @@ print("Current profile: ".. Profile.Name);
|
||||
Returns all layers within the profile
|
||||
#### Syntax:
|
||||
```lua
|
||||
table GetLayers( );
|
||||
table GetLayers( )
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layers = Profile.GetLayers();
|
||||
local layers = Profile.GetLayers()
|
||||
for layerKey, layerValue in pairs(layers) do
|
||||
print(layerValue.Name)
|
||||
print(layerValue.Name)
|
||||
end
|
||||
```
|
||||
#### Result:
|
||||
@ -36,12 +36,12 @@ Test layer 2
|
||||
If found, returns the first layer with the given name
|
||||
#### Syntax:
|
||||
```lua
|
||||
layer GetLayerByName(string layerName);
|
||||
layer GetLayerByName(string layerName)
|
||||
```
|
||||
#### Example:
|
||||
```lua
|
||||
local layer = Profile.GetLayerByName("Test layer 1");
|
||||
print(layer.Name);
|
||||
local layer = Profile.GetLayerByName("Test layer 1")
|
||||
print(layer.Name)
|
||||
```
|
||||
#### Result:
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user