TextAtlas //来自于官网 http://www.cocos2d-x.org/wiki/Widget的释义, UILabelAtlas can display number label that jointed by images:
atlas的英文含义是地图集,所以释义可以解释为可以显示由图片组合而成的数字标签的标签地图集。
TextAtlas * textAtlas = TextAtlas::create("12780", "cocosui/labelatlas.png", 17, 22, "0");
此时 我们打开cocosui/labelatlas.png来看
图片特点是 只有数字构成,而且只有一个png没有其他的东西,目前来看 数字是按照0-9的顺序排列,没有错位,没有重复。
我们输入了12780,则这里只显示12780,不显示别的。
本文介绍了Cocos2d-x中TextAtlas组件的使用方法,通过实例展示了如何创建TextAtlas对象并利用图片来显示数字标签,适合游戏开发及UI设计人员参考。
TextAtlas常用成员函数C++&spm=1001.2101.3001.5002&articleId=43560341&d=1&t=3&u=3780deb20b1d4ce582b267d54ba7e9ce)
1050

被折叠的 条评论
为什么被折叠?



