Here’s my config.lua for review.
application = { content = { graphicsCompatibility = 1, -- Turn on V1 Compatibility Mode width = 320, height = 480, scale = "letterbox", fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3, -- for iPad 3 } }, }
I’m running 2189 - when I run without the compatibility flag it’s all over the place.
Here’s one object that works:
myMenuObject.MenuMessageDialog.HeadingTxt = display.newText(myMenuObject.MenuMessageDialog.Group, "Heading", 0, 0, font.bold, 16) myMenuObject.MenuMessageDialog.HeadingTxt.x = 100 myMenuObject.MenuMessageDialog.HeadingTxt.y = 100
It over-rides the original x,y at object creation with a new x & y which were always relative to the middle of the object.
Here’s one that doesn’t work:
local textOptions = { parent = myMenuObject.MenuMessageDialog.Group, text = "", x = 100, y = 100, width = 200, height = 100, align = "center", font = font.normal, fontSize = 14} myMenuObject.MenuMessageDialog.MessageTxt = display.newText(textOptions)
Note that this method of text creation which allows alignment has always been relative to the centre of the object on creation - perhaps compatibility doesn’t take this into account?
Also buttons don’t work if their alpha is zero (“myMenuObject.MenuMessageDialog.ButtonOK:setFillColor(217,217,217,0)”) which was fine before.
Nathan.
Nathan.