Cocos2d-Lua-Community 4.0.4 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。
注意: Mac LuaGameRunner需要自行替换app签名:
$ sudo spctl --master-disable
$ sudo xattr -rd com.apple.quarantine /xxx/Cocos2d-Lua-Community/tools/runner/bin/LuaGameRunner.app
$ sudo codesign --force --deep --sign - /xxx/
总揽
Apple Silicon 运行错误修正(4.0.3 的 CMakeLists.txt的bug),TTF 文本去掉抗锯齿设定,结合setTTFScaleFactor提供更好的多分辨率字体效果。
新增
改进
- Spine 绑定setTimeScale,setTrackTime,getAnimationEnd,getAnimationStart。
- cc.Label 下划线渲染改进,连续的下换线之间至少1像素的间隔。
- win32 重载FileUtils::writeDataToFile,正确设置文件创建时间。
- SpriteFrameCache中正确判断isSpriteFramesWithFileLoaded,优化plist性能。
- fgui的GGraph添加setPolygonPoints实现画多边形。
- TextureCache::addImageAsync添加pixelFormat参数,同时display.addImageAsync添加默认的pixelFormat参数。
- cc.Node去掉无用的_setLocalZOrder。
- fgui 的FUILabel添加letterSpacing支持。
- s_function_ref_id回收池,避免爆掉。
- GuiConstants.lua中的ccui变量统一风格。(升级注意兼容性)
- 去掉texturepacker plist的的aliases,eraseFrame缓存数据修正,改进缓存性能。
- Node:setNodeEventEnabled优化,避免重复执行。
- 改名CHANGELOG和VERSION,避免新版mac xcode编译错误。
- FileUtils:getDataFromFile 绑定回调函数。
- 优化AppBase:exit(),不需要os.exit()了。
- Mac的getWritablePath改到
~/Library/Application Support/BundleIdentifier
下。
- cc.Label TTF 默认关闭抗锯齿,setTTFScaleFactor能提供更好的字体多分辨率适配效果。
修正
- 修正Apple Silicon运行崩溃。
- 修正:cc.Sprite 使用自定义shader时,如果没有设置u_texture1,Mac的metal运行错误。
- 同步3.7.x改进,修正事件分发对ProtectedNode顺序不确定的bug。
- 修正fgui进度条和滑动条显示科学计数法的bug。
- 修正fgui的slider在min value不为0时,显示错误的bug。
- 修正lua binding中ResourceData返回值的绑定。
- 修正display.lua中错误的 cc.TEXTURE2D_PIXEL_FORMAT_xxx.
- 修正editbox setTTFScaleFactor后nativeFont字体大小不对的问题。
- 修正tolua.fullgc。
- 修正ListView::interceptTouchEvent,正确获取_curSelectedIndex。
- 修正FUISprite::initWithSpriteFrame 没有刷新的bug。
- 修正cc.Label enableBold 错误。
- 修正Tiled map 的ObjectGroup-position-Offset解析错误。
- Android videoplayer bugfix。
- 修正CCSprite没有重置 unflippedOffset的bug。
- win32 宏snprintf修正,避免有可能产生的随机崩溃。
- 修正EditBox build error on Mac OS 12.x。
- 修正fgui UIPackage::loadAtlas 预加载bug。
下载地址