摘要: 1、选择你要自适应的panel 选择相对布局和自适应分辨率 2、选择要自适应的图片 选择模式Custom 选择百分比 图片的尺寸改为原始尺寸 阅读全文
posted @ 2017-08-17 15:55 无止境! 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 方法一 local widget = cc.uiloader:load("Test_1.json") --加载json文件 self:addChild(layer) layer:addChild(widget) local Node=cc.uiloader:seekNodeByPath(widget 阅读全文
posted @ 2017-08-17 11:58 无止境! 阅读(480) 评论(0) 推荐(0) 编辑