adding menus and title handling

This commit is contained in:
2026-05-30 21:23:04 -07:00
parent 1886b909d4
commit d7aaab4589
27 changed files with 768 additions and 397 deletions
+4 -4
View File
@@ -29,17 +29,17 @@ local function index(window, q, callback)
function choices:newChoice(choice, i)
local c = choices:newFrame(noOf(.25,(i-1)/#q.choices,.5,1/#q.choices))
c.visibility = 0
local box = c:newImageButton("assets/unchecked.png",noOf(.024*(#q.choices/4),.1,0,.8))
local box = c:newImageButton("assets/images/unchecked.png",noOf(.024*(#q.choices/4),.1,0,.8))
box.checked = false
box:OnReleased(function()
if box.checked then
box:setImage("assets/unchecked.png")
box:setImage("assets/images/unchecked.png")
else
for _, other in pairs(allBoxes) do
other.checked = false
other:setImage("assets/unchecked.png")
other:setImage("assets/images/unchecked.png")
end
box:setImage("assets/checked.png")
box:setImage("assets/images/checked.png")
selected = i
end
box.checked = not checked