From 944ff8f7510d817cbc98a89b8e55b89951603567 Mon Sep 17 00:00:00 2001 From: Slivo-fr Date: Thu, 13 Feb 2020 13:22:00 +0100 Subject: [PATCH] Factorise command option spacing --- src/tranqRotate.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tranqRotate.lua b/src/tranqRotate.lua index 68af0f6..96f0cea 100644 --- a/src/tranqRotate.lua +++ b/src/tranqRotate.lua @@ -155,11 +155,12 @@ end -- Print command options to chat function TranqRotate:printHelp() + local spacing = ' ' TranqRotate:printMessage(TranqRotate:colorText('/tranqrotate') .. ' commands options :') - TranqRotate:printMessage(' ' .. TranqRotate:colorText('toggle') .. ' : Show/Hide the main window') - TranqRotate:printMessage(' ' .. TranqRotate:colorText('lock') .. ' : Lock the main window position') - TranqRotate:printMessage(' ' .. TranqRotate:colorText('unlock') .. ' : Unlock the main window position') - TranqRotate:printMessage(' ' .. TranqRotate:colorText('settings') .. ' : Open TranqRotate settings') + TranqRotate:printMessage(spacing .. TranqRotate:colorText('toggle') .. ' : Show/Hide the main window') + TranqRotate:printMessage(spacing .. TranqRotate:colorText('lock') .. ' : Lock the main window position') + TranqRotate:printMessage(spacing .. TranqRotate:colorText('unlock') .. ' : Unlock the main window position') + TranqRotate:printMessage(spacing .. TranqRotate:colorText('settings') .. ' : Open TranqRotate settings') end -- Adds color to given text