Text
来源:互联网 发布:淘宝以前的订单消失了 编辑:程序博客网 时间:2024/06/06 09:28
local num = ccui.Text:create()
num:setFontName(appFont)
num:setFontSize(22)
num:setColor(cc.c3b(255, 255, 255))
num:setString(tostring(btText.num))
num:setTextAreaSize(cc.size(240, 60))
num:setPosition(cc.p(65, 30))
num:setTouchEnabled(false)
num:ignoreContentAdaptWithSize(false) --自动换行
num:setContentSize(cc.size(560, 460))
num:setTextHorizontalAlignment(cc.TEXT_ALIGNMENT_LEFT)--水平对齐方式
num:setTextVerticalAlignment(cc.VERTICAL_TEXT_ALIGNMENT_CENTER)--垂直对齐方式
num:getVirtualRenderer():enableShadow(cc.c4b(0, 0, 0, 150), cc.size(2,-2)) --num:getVirtualRenderer()为Label类型
layer:addChild(num)
num:setFontName(appFont)
num:setFontSize(22)
num:setColor(cc.c3b(255, 255, 255))
num:setString(tostring(btText.num))
num:setTextAreaSize(cc.size(240, 60))
num:setPosition(cc.p(65, 30))
num:setTouchEnabled(false)
num:ignoreContentAdaptWithSize(false) --自动换行
num:setContentSize(cc.size(560, 460))
num:setTextHorizontalAlignment(cc.TEXT_ALIGNMENT_LEFT)--水平对齐方式
num:setTextVerticalAlignment(cc.VERTICAL_TEXT_ALIGNMENT_CENTER)--垂直对齐方式
num:getVirtualRenderer():enableShadow(cc.c4b(0, 0, 0, 150), cc.size(2,-2)) --num:getVirtualRenderer()为Label类型
layer:addChild(num)
阅读全文
0 0
- text
- text
- text
- text
- Text
- text
- text
- text
- text
- TEXT
- text
- text
- text
- text
- .text()
- text
- text
- Text
- ImageView
- Python下使用subprocess中文乱码的解决方案
- 数字信号处理实验(一)
- validate表单验证用法 (一)
- STL之map应用 回文串
- Text
- null pointer exception
- 避免在设置中强制停止某一应用
- Azure上部署的资源公网连通性测试工具-paping
- 1.颜色空间缩减算法使用
- C. Star sky(Codeforces Round #427 (Div. 2) C)
- 【Java学习笔记】21:单实例设计模式
- 常用生物信息学格式介绍
- js页面跳转和新窗口打开