From: Nathaniel Wesley Filardo Date: Fri, 10 Nov 2017 23:43:46 +0000 (-0500) Subject: ctfws-lcd: update no-game message banners X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=dbb87367724625031740470a37508a5876757fd6;p=acmetensortoys-esp-lua_ctfws ctfws-lcd: update no-game message banners Display "CMUKGB CTFS TIMER" on top line, message on bottom line. --- 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