重写 ccui.text 的clone方法。修复clone字体描边
来源:互联网 发布:字符数组结束标志 编辑:程序博客网 时间:2024/05/20 09:22
在_copySpecialProperties()方法中增加下面一行,可以克隆字体描边
if(uiLabel._labelRenderer && uiLabel._labelRenderer._strokeEnabled){ this.enableOutline(uiLabel._labelRenderer._strokeColor,uiLabel._labelRenderer._strokeSize);
_copySpecialProperties: function (uiLabel) { if(uiLabel instanceof ccui.Text){ this.setFontName(uiLabel._fontName); this.setFontSize(uiLabel.getFontSize()); this.setString(uiLabel.getString()); this.setTouchScaleChangeEnabled(uiLabel.touchScaleEnabled); this.setTextAreaSize(uiLabel._textAreaSize); this.setTextHorizontalAlignment(uiLabel._labelRenderer.getHorizontalAlignment()); this.setTextVerticalAlignment(uiLabel._labelRenderer.getVerticalAlignment()); this.setContentSize(uiLabel.getContentSize()); this.setTextColor(uiLabel.getTextColor()); if(uiLabel._labelRenderer && uiLabel._labelRenderer._strokeEnabled){ this.enableOutline(uiLabel._labelRenderer._strokeColor,uiLabel._labelRenderer._strokeSize); } }},
阅读全文
1 0
- 重写 ccui.text 的clone方法。修复clone字体描边
- jquery的clone方法bug的修复
- jquery的clone方法bug的修复
- Java 深度克隆 clone()方法重写 equals()方法的重写
- Java 深度克隆 clone()方法重写 equals()方法的重写
- java 重写接口Cloneable的Clone方法 拷贝对象
- java 的clone方法
- javascript的clone方法
- js的clone方法
- Object的clone方法
- Java的clone方法
- java的clone方法
- clone方法的实现
- Object 的clone方法
- ArrayList的clone方法
- Java的Clone方法
- 数组的clone()方法
- Java的clone方法
- Android加载html中的svg格式图片进行显示的两种方式
- 多元线性回归之Spss实现
- easyui 界面中输入框(textbox)和下拉框(combobx)的onchange事件
- 鼠标移入文字上向右移动效果
- C++头文件的若干说明和const对象定义
- 重写 ccui.text 的clone方法。修复clone字体描边
- IP地址划分问题
- nginx+多个tomcat
- 论人生之转折
- UI文件命名规范常用字
- for 和 while 循环上限值会变化时,特别注意
- 记录一次专线互通后dhcp的问题
- 手动配置project Structure--Idea中使用Git
- recycleview实现title横向滑动,点击条目居中显示