32 lines
715 B
Lua
32 lines
715 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 label
|
|
|
|
local function index(window, q, callback)
|
|
label = window:newTextLabel(q.title)
|
|
label.align = ALIGN_CENTER
|
|
label:fullFrame()
|
|
label.textColor = color.white
|
|
label.color = color.new("#363ac8")
|
|
label:centerFont()
|
|
label:scaleFont(.075)
|
|
label.drawBorder = false
|
|
|
|
useDefaultHandler(callback)
|
|
end
|
|
|
|
local function update(dt) -- time in seconds that has passed since
|
|
|
|
end
|
|
|
|
return {
|
|
index = index,
|
|
update = update
|
|
}
|