29 lines
688 B
Lua
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
|
|
}
|