feat: show no-WFB kiosk fallback only while video absent (#2)
Build Ground Station / build (push) Successful in 44s
Build Ground Station / build (push) Successful in 44s
This commit was merged in pull request #9.
This commit is contained in:
@@ -13,11 +13,15 @@ func NewStatusTemplate(lines ...string) StatusTemplate {
|
||||
|
||||
func (t StatusTemplate) Draw(canvas Canvas) {
|
||||
canvas.Clear()
|
||||
drawLines(canvas, t.lines)
|
||||
canvas.Flush()
|
||||
}
|
||||
|
||||
func drawLines(canvas Canvas, lines []string) {
|
||||
_, height := canvas.Size()
|
||||
y := height / 2
|
||||
for _, line := range t.lines {
|
||||
for _, line := range lines {
|
||||
canvas.Text(32, y, line)
|
||||
y += 32
|
||||
}
|
||||
canvas.Flush()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user