From ac2026bef2a52b28e40666ef2269a404840f1885 Mon Sep 17 00:00:00 2001 From: Robert Beekman Date: Tue, 12 Sep 2017 14:22:10 +0200 Subject: [PATCH] Updated Profile (markdown) --- Profile.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Profile.md b/Profile.md index db255ca..f1a28e0 100644 --- a/Profile.md +++ b/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: ```