我正在将一组对象插入到带有图像矩形的父组中,据我所知,例外的结果应该是外部组将从屏幕的左上点 (0 ,0) 和组开始inside 将指父组的左上角,实际上就像我描述的那样,外部组中没有图像矩形,问题是当外部组内部有图像矩形时,外部组中心点位于顶部屏幕的左点和内部组在父组的中心?
到底是怎么回事?请帮忙...
local checkinContent = display.newGroup();
local BG= display.newImageRect(checkinContent,"images/magen-david_backgound.png",display.contentWidth, 0.45822 * display.contentHeight);
checkinContent:setReferencePoint(display.TopLeftReferencePoint);
checkinContent.y = display.contentHeight - checkinContent.height;
checkinContent.x = 0;
local circlesGroup = display.newGroup();
circlesGroup:setReferencePoint(display.TopCenterReferencePoint);
circleTable[0] = display.newImageRect(circlesGroup,"images/circle.png",0.0265 * display.contentWidth, 0.0265 * display.contentWidth);
circleTable[1] = display.newImageRect(circlesGroup,"images/circle.png",0.0265 * display.contentWidth, 0.0265 * display.contentWidth);
circleTable[2] = display.newImageRect(circlesGroup,"images/circleCurrent.png",0.0265 * display.contentWidth, 0.0265 * display.contentWidth);
circlesGroup.y = 0;
checkinContent:insert(circlesGroup);