Hi all,
First of all, where’s the documentation for the TextObject class? I can’t find it anywhere.
Second, is it possible to encourage it to bother with \n? I use the following mundane debug output function and I can’t get it to work. In some platforms you have to enable some multiline attribute for text objects, but if I can’t find the description of the TextObject, that complicates. Sorry if I’ve missed it in some obvious place (I use the beta btw)
[code]local debugTextObject = nil
local debugTextArr = {}
function LOG(str)
if not debugTextObject then
debugTextObject = display.newText ("", 40, 40, native.systemFont, 12)
debugTextObject:setTextColor (255,255,255)
end
if (3 == #debugTextArr) then
table.remove(debugTextArr, 1)
end
table.insert (debugTextArr, str)
debugTextObject.text = table.concat (debugTextArr, “.\n”)
end[/code]
[import]uid: 4441 topic_id: 1117 reply_id: 301117[/import]