From dbb87367724625031740470a37508a5876757fd6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 10 Nov 2017 18:43:46 -0500 Subject: [PATCH] ctfws-lcd: update no-game message banners Display "CMUKGB CTFS TIMER" on top line, message on bottom line. --- ctfws-lcd.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ctfws-lcd.lua b/ctfws-lcd.lua index c89bcdb..6aa206f 100644 --- a/ctfws-lcd.lua +++ b/ctfws-lcd.lua @@ -30,10 +30,9 @@ local function drawDS(lcd, row, col, max, last, decisec) end local function drawNoGame(lcd, msg) - local k,r; for k,r in pairs({0,3}) do - lcd:put(lcd:locate(r,0), " ") - lcd:put(lcd:locate(r,(20-#msg)/2), msg) - end + lcd:put(lcd:locate(0,0), " CMUKGB CTFWS TIMER ") + lcd:put(lcd:locate(3,0), " ") + lcd:put(lcd:locate(3,(20-#msg)/2), msg) end local function drawSteadyTopLine(self,rix,maxt,ela) @@ -45,8 +44,8 @@ local function drawSteadyTopLine(self,rix,maxt,ela) lcd:put(lcd:locate(0,0), "SETUP :") else if ctfws.rounds >= 10 - then lcd:put(lcd:locate(0,0), string.format("RND %2d/%2d :",rix,ctfws.rounds)) - else lcd:put(lcd:locate(0,0), string.format("ROUND %d/%d :",rix,ctfws.rounds)) + then lcd:put(lcd:locate(0,0), string.format("JB# %2d/%2d :",rix,ctfws.rounds)) + else lcd:put(lcd:locate(0,0), string.format("JB# %d/%d :",rix,ctfws.rounds)) end end end -- 2.50.1