摘要:
-- 对比新增数据 function GameStyle:valueReplace( new,old ) for k,v in pairs(new) do if type(v)=="table" then old[k] = old[k] or {} self:valueReplace(v,old[k 阅读全文
摘要:
--获取滚动层当前位置的百分比(横向width 纵向height)function GetScrollViewPercent(scrollView) if scrollView == nil then return end local size = scrollView:getInnerContai 阅读全文
摘要:
local png="...png"local plist="....plist"display.addSpriteFrames(plist,png)self._sp=display.newSprite("#mingner_0701.png"):pos(200,300)self:addchild(s... 阅读全文