首页 > 其他 > 详细

egret.sys.TextNode

时间:2018-04-13 15:35:34      阅读:239      评论:0      收藏:0      [点我收藏+]
class Test extends egret.Shape{

    protected textNode:egret.sys.TextNode;
    
constructor(){
    this.width = this.height = 500;
this.textNode = new ...();
leg group = new egret.sys.GroupNode();
group.addNode(this.graphics.$renderNode);
group.addNode(this.textNode);

this.$renderNode = groupNode;

let node = this.textNode;
node.width = node.height = 500;
node.x = node.y = 0;

    
}

$render():void
{
    this.textNode.drawText(100,100,"鬼",{size:100,textColor:0xff00000});
}

}

egret.sys.TextNode

原文:https://www.cnblogs.com/wyy5552/p/8820594.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!