Cocos2d-Lua-Community 4.0.1 Release Note
注意:win32 LuaGameRunner 使用 vs2019 编译,如果你的系统没有安装 vs2019,需要安装 vs2019 运行库方能正确启动。运行库下载地址:Microsoft Visual C++ Redistributable for Visual Studio 2019 x86, Microsoft Visual C++ Redistributable for Visual Studio 2019 x64。
总揽
在4.0.0发布以来,进过了大量的改进。FairyGUI的支持上踩了大量的坑:绑定补全、hitTest、富文本的支持、window的事件封装等等。Spine的3.8运行时也有大量的改进,进行了同步。新加了Linux的支持个测试,修正了一些问题,但还遗留了EditBox这个已知坑点。加入了AsyncTCP,文档后补吧。TiledMap继续进行功能支持改进。
新增
- LuaGameRunner添加Log to File功能。
- 集成lua-protobuf(https://github.com/starwing/lua-protobuf)
- TiledMap添加collection of images类型的tileset支持。
- TiledMap添加对编辑器碰撞数据的解析支持, 使用文档。
- Linux支持。(注:EditBox实现不完整)
- shader添加setUniformXXX绑定函数。
- 添加LuaLoadChunksFromZIP绑定。
- NodeEx.lua添加对鼠标事件的支持。
- Mac添加系统字体描边支持。
- 新加一个异步tcp的实现,用来替代SimpleTCP和LuaSocket, 使用文档。
- 新加network.createHTTPDownload,直接下载到文件, HTTP 使用说明。
改进
- 优化Lua搜索路径,去掉系统路径。
- 同步3.7中Luaj的改进。
- DragonBone的类的public变量改为Lua的set/get封装方式。
- FairyGUI runtime和Luabinding的大量改进。
- Spine runtime同步到3.8最新代码。
- 同步4.7对ccui.RichText的排版修正。
- RenderTexture内存泄漏和crash修正。
- auto batch MaterialID 排序修正。
- Win32 fix for FileUtils::listFilesRecursively returning no results.
- Fix Label::draw skips drawing when batchNodes are more than one and have empty quads.
- ListView innercontainer size fix, when inner item was scaled
- 改进RDAudio::pause(),优化Android下暂停的性能损耗。
- Android 显示刘海区域。
- pb解析double和float再优化,fix android release版本crash.
- Mac和Linux使用64位luajit,解决最新mac系统(PANIC: unprotected error in call to Lua API (not enough memory))
- update luajit and tool to luajit master commit 2020.7.13
- FileUtils的writeStringToFile绑定添加异步回调。
修正
- NodeEx.lua的触摸事件点击只调用Node的hitTest,避免调用ccui.Widget的hitTest产生不正确的判断。
- 修正iOS和mac的archive不弹出Organizer 界面的问题。
- 修正 ccui.Button 设置字体顺序导致的size不对。
- 修正部分Android模拟器的Directx模式下,红屏的问题。
- 修正:DrawNode和label未响应自定义blendFunc.
- 修正lua_spSkeletonData中的内存泄漏。
- Mac的LuaGameRunner可ctrl+c 复制log。
- mac editbox crash fix when dealloc.
- Android权限申请crash fix。
- Cocos2d.lua sync fix from 3.7
下载地址