随笔分类 -  cocos2dx

手机应用开发
摘要:cocos2dx里加载cocosudio导出的ui配置文件,在这之上封装了一下,封装核心类包括UIManager,UILayer,UIOwnerUIManager是所有ui总的管理类,代码如下:UIManager = { battle = 1, city = 2, login = 4, ... 阅读全文

posted @ 2014-06-23 16:32 marcher 阅读(858) 评论(0) 推荐(0)

摘要:local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文

posted @ 2014-06-18 17:57 marcher 阅读(882) 评论(0) 推荐(0)

摘要:local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文

posted @ 2014-06-18 15:54 marcher 阅读(331) 评论(0) 推荐(0)

摘要:local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sceneGame=cc.Scene:create()sce... 阅读全文

posted @ 2014-06-18 13:59 marcher 阅读(313) 评论(0) 推荐(0)

导航