1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-31 17:53:32 +00:00

Updated Profile (markdown)

Robert Beekman 2017-09-12 14:22:10 +02:00
parent a9850db8c2
commit ac2026bef2

@ -8,7 +8,7 @@ A profile contains a list of [layers](https://github.com/SpoinkyNL/Artemis/wiki/
#### Example: #### Example:
```lua ```lua
print("Current profile: ".. Profile.Name); print("Current profile: ".. Profile.Name)
``` ```
## Functions ## Functions
@ -16,13 +16,13 @@ print("Current profile: ".. Profile.Name);
Returns all layers within the profile Returns all layers within the profile
#### Syntax: #### Syntax:
```lua ```lua
table GetLayers( ); table GetLayers( )
``` ```
#### Example: #### Example:
```lua ```lua
local layers = Profile.GetLayers(); local layers = Profile.GetLayers()
for layerKey, layerValue in pairs(layers) do for layerKey, layerValue in pairs(layers) do
print(layerValue.Name) print(layerValue.Name)
end end
``` ```
#### Result: #### Result:
@ -36,12 +36,12 @@ Test layer 2
If found, returns the first layer with the given name If found, returns the first layer with the given name
#### Syntax: #### Syntax:
```lua ```lua
layer GetLayerByName(string layerName); layer GetLayerByName(string layerName)
``` ```
#### Example: #### Example:
```lua ```lua
local layer = Profile.GetLayerByName("Test layer 1"); local layer = Profile.GetLayerByName("Test layer 1")
print(layer.Name); print(layer.Name)
``` ```
#### Result: #### Result:
``` ```