Skip to content

Commit

Permalink
Factorise command option spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Slivo-fr committed Feb 13, 2020
1 parent be85ff5 commit 944ff8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tranqRotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 944ff8f

Please sign in to comment.