Files
jeopardy/templates/whatis.lua
T
2026-10-11 09:16:08 -07:00

29 lines
688 B
Lua

--[[ Constants
* (all lua builtins that don't allow io/executing code)
color (interface)
gui (interface)
multi (interface bound to a processor) no thread module
callback true/false correct/wrong
]]
local function index(window, q, callback)
local label = window:newTextLabel(q.title)
label.visibility = 0--q.cosmetics.visibility
label.align = ALIGN_CENTER
label:fullFrame()
label.textColor = color.question_font
label.color = color.question_bg
label:centerFont()
label:scaleFont(.075)
label.drawBorder = false
useDefaultHandler(callback)
return {title=label}
end
return {
index = index
}