added refresh when working with quiz folder, debug logs enabled in folder mode, added new zoom content

This commit is contained in:
2026-06-12 00:10:06 -07:00
parent e8ca768e87
commit ae97703bb4
13 changed files with 225 additions and 157 deletions
+4 -21
View File
@@ -10,8 +10,9 @@ local function index(window, q, callback)
label.align = ALIGN_CENTER
label.textColor = color.white
label.color = color.new("#363ac8")
label.borderColor = color.new("#363ac8")
label:scaleFont(.075)
label.drawBorder = false
label:scaleFont(.4)
label:centerFont()
if not q.imageA or q.imageA == "" then
error("Missing 'imageA' field for question!")
@@ -38,29 +39,11 @@ local function index(window, q, callback)
imageHolder2:setAspectSize(imageHolder2.imageWidth, imageHolder2.imageHeight)
imageHolder2:setDualDim(0, 0, 0, 0, .6, 0, .4, 1)
local correct = window:newTextButton("Correct",0,-200,0,100,0,1,.5)
correct.color = color.new("#52b11b")
local wrong = window:newTextButton("Wrong",0,-200,0,100,.5,1,.5)
wrong.color = color.new("#bd2626")
local skip = window:newTextButton("Skip",0,-100,0,100,.25,1,.5)
skip.color = color.new("#5d5d5d")
window.apply({
centerY = {true},
}, imageHolder, plusLabel, imageHolder2)
window.apply({
scaleFont={.7},
centerFont={},
align=window.ALIGN_CENTER,
OnReleased=function(self)
if self.text == "Skip" then
callback()
return
end
callback(self.text == "Correct")
end,
}, correct, wrong, skip)
useDefaultHandler(callback)
end
local function update(dt)