moved zoom into base templates, fixed performance and memory issues

This commit is contained in:
2026-06-10 22:21:56 -07:00
parent 9a908e89ae
commit e8ca768e87
11 changed files with 151 additions and 113 deletions
+4 -3
View File
@@ -14,6 +14,8 @@ local function index(window, q, callback)
label:fullFrame()
label.textColor = color.white
label.color = color.new("#363ac8")
label:centerFont()
label:scaleFont(.075)
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)
@@ -21,7 +23,8 @@ local function index(window, q, callback)
local skip = window:newTextButton("Skip",0,-100,0,100,.25,1,.5)
skip.color = color.new("#5d5d5d")
gui.apply({
fitFont={},
scaleFont={.7},
centerFont={},
align=gui.ALIGN_CENTER,
OnReleased=function(self)
if self.text == "Skip" then
@@ -31,8 +34,6 @@ local function index(window, q, callback)
callback(self.text == "Correct")
end,
},correct,wrong,skip)
label:setFont(60)
-- label:centerFont()
end
local function update(dt) -- time in seconds that has passed since