hey
I’m trying to make 2 table lists in 1 lua file but I’m getting this problem:
if I create the secound list, my first stop work only the secound go down and up and can be “clicked”
-- Create a list with no background, allowing the background image to show through
myList = tableView.newList{
data = data,
default = "listItemBg\_white.png",
over = "listItemBg\_over.png",
onRelease = listButtonRelease,
top = topBoundary + 20,
bottom = 16,
callback = function( row )
local t = display.newText( row, 0, 0, native.systemFontBold, 17 )
t:setTextColor( 255, 255, 255 )
t.x = math.floor(t.width/2) + 12
t.y = 46
return t
end
}
hudGroup:insert( myList )
-- Create a list with no background, allowing the background image to show through
myList2 = tableView.newList{
data = data2,
default = "listItemBg\_white.png",
over = "listItemBg\_over.png",
onRelease = listButtonRelease,
top = topBoundary + 20,
bottom = 16,
callback = function(row)
local t = display.newText( row, 0, 0, native.systemFontBold, 15 )
t:setTextColor(0, 0, 0)
t.x = math.floor(t.width/2) + 20
t.y = 66
return t
end
}
hudGroup:insert( myList2 )
myList2.x = myList2.x + 1000
can’t make 2 list in a same .lua? [import]uid: 23063 topic_id: 16622 reply_id: 316622[/import]