From eb1a31e3f464dd92253f422d33108b0d8474e78e Mon Sep 17 00:00:00 2001 From: UndeadMaelys Date: Tue, 22 Mar 2022 16:37:33 +0100 Subject: [PATCH] fix number not colored --- output_word.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/output_word.lua b/output_word.lua index 04b5554..bb78332 100644 --- a/output_word.lua +++ b/output_word.lua @@ -2,13 +2,13 @@ return function(tbl) for i=1, #tbl do local this_number = tbl[i][1] local this_word = tbl[i][2] - local text = colorTextBackground(COLOR.Black, "#") + local text = colorTextBackground(COLOR.Black,colorText(COLOR.White,"#") local length = string.len(#words) - string.len(this_number) while length > 0 do - text = text .. colorTextBackground(COLOR.Black, "0") + text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.White,"0") length = length - 1 end - text = text .. colorTextBackground(COLOR.Black, this_number .. " ") + text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.White,this_number .. " ") text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.HighBlue,this_word[1])) text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Gray,this_word[3])) text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Green,this_word[2]))