码迷,mamicode.com
首页 > 其他好文 > 详细

egret.sys.TextNode

时间:2018-04-13 16:25:13      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:width   group   class   draw   gre   extend   ext   prot   cte   

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

标签:width   group   class   draw   gre   extend   ext   prot   cte   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!