adding menus and title handling
This commit is contained in:
@@ -26,7 +26,7 @@ local function index(window, q, callback)
|
||||
imageHolder:setDualDim(0, 0, 0, 0, 0, 0, .4, 1)
|
||||
|
||||
-- Plus sign: centered between images at 0.42 to 0.58
|
||||
plusLabel = frame:newImageLabel("assets/plus.png", 0, 0, 0, 0, .4125, .4, .175)
|
||||
plusLabel = frame:newImageLabel("assets/images/plus.png", 0, 0, 0, 0, .4125, .4, .175)
|
||||
plusLabel.square = "w"
|
||||
plusLabel.align = ALIGN_CENTER
|
||||
plusLabel.textColor = color.white
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,7 +21,7 @@ local function index(window, q, callback)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#060ce9")
|
||||
imageHolder = frame:newImageButton("assets/speaker.png",0,0,0,0,0,0,.3,.4)
|
||||
imageHolder = frame:newImageButton("assets/images/speaker.png",0,0,0,0,0,0,.3,.4)
|
||||
imageHolder:setAspectSize(imageHolder.imageWidth,imageHolder.imageHeight)
|
||||
imageHolder:centerX(true)
|
||||
imageHolder:centerY(true)
|
||||
|
||||
Reference in New Issue
Block a user