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
+5 -16
View File
@@ -25,17 +25,9 @@ function Menu(frame)
title.visibility = 0
title.textColor = color.title_font
title.drawBorder = false
title:centerFont()
titleLog:debug("Creating font thread")
proc:newThread(function()
local function enabled()
return background.visible
end
while true do
thread.hold(enabled)
title:centerFont()
end
end)
local items = 0
local MenuOption = function(str)
@@ -43,13 +35,10 @@ function Menu(frame)
local text = item:newTextLabel(str)
text:fullFrame()
text.align = gui.ALIGN_CENTER
thread:newThread(function()
thread.skip(2)
text:fitFont(nil,nil,{scale = 1/2})
text:centerFont()
text.visibility = 0
text.textColor = color.new("#24269a")
end)
text:scaleFont(.4)
text:centerFont()
text.visibility = 0
text.textColor = color.new("#24269a")
items = items + 1
return item, text
end