diff options
| author | 2016-09-25 04:18:03 +0200 | |
|---|---|---|
| committer | 2016-09-25 04:18:03 +0200 | |
| commit | dfbe39abffe7a97cd4e5caca733ad0eec0234db8 (patch) | |
| tree | 7b7b15fc96bd2f37a3aeae542934373e8f3bc04d /cli | |
| parent | 9de995b43dceae701b579e12753203a438895970 (diff) | |
| download | OneRoll-dfbe39abffe7a97cd4e5caca733ad0eec0234db8.tar.gz OneRoll-dfbe39abffe7a97cd4e5caca733ad0eec0234db8.zip | |
-add support for red and white color in cli client.
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index 8c84eb6..7a5ed97 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -77,6 +77,14 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous) { prefix = "\e[34m%1\e[0m"; } + if(tmp.getColor()=="red") + { + prefix = "\e[31m%1\e[0m"; + } + if(tmp.getColor()=="black") + { + prefix = "\e[30m%1\e[0m"; + } } if(i==0) |