Upgraded to daily build 611 from build 606 and lost all custom fonts in legacy TableView. Rolled back to 606 and everything looks great. Would upgrade to the widgets, but can’t figure out how to change the height once defined on orientation change.
[code]
fontName = “HelveticaNeue”
fontBoldName = “HelveticaNeue-Bold”
fontItalicName = “HelveticaNeue-Italic”
function createAlertList(data)
local list = tableView2.newList{
data=data,
default=“list-item-background.png”,
over=“list-item-background-selected.png”,
onRelease=listButtonAlertRelease,
top=topBoundary,
bottom=bottomBoundary,
callback=function(row)
if row[11]~=nil then
print(“building”)
local g = display.newGroup()
local t = newRetinaText(row[11], 0, 0, font, fontsize, 0, 0, 0, “center”, false)
t.x = math.floor(t.width/2) + 12
t.y = 15
g:insert(t)
if row[4]~=nil then
local l = newRetinaText(row[4]…"/"…row[6], 0, 0, fontItalicName, settings.fontsize-2, 0, 0, 0, “center”, false)
l.x = t.x
l.y = 35
g:insert(l)
else
local l = newRetinaText(‘Replay’, 0, 0, fontItalicName, fontsize-2, 0, 0, 0, “center”, false)
l.x = t.x
l.y = 35
g:insert(l)
end
–local alertColor =display.newImage(“red.png”)
if row[16]~=nil then
local mocValue = tonumber(row[16])
if mocValue>66 then
alertColor=display.newImage(“green.png”)
elseif mocValue>55 then
alertColor=display.newImage(“blue.png”)
elseif mocValue>40 then
alertColor=display.newImage(“yellow.png”)
elseif mocValue>20 then
alertColor=display.newImage(“orange.png”)
else
alertColor =display.newImage(“red.png”)
end
mocValue=nil
alertColor.x = 200
alertColor.y = 25
g:insert(alertColor)
end
return g
else
end
end
}
return list
end
[/code] [import]uid: 52906 topic_id: 14747 reply_id: 314747[/import]