大约有 221 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
... private var output:Byte; private var txt:Text; public function LayaDemo() { Laya.init(600, 300, WebGL); txt = new Text(); txt.text = "This is a demo"; ...
来源: Laya_社区 发布时间: 20170209
...r(Event.ADDED_TO_STAGE, onAddedToStageHandler); debug_txt = new TextField(); debug_txt.selectable = false; debug_txt.mouseEnabled = false; debug_txt.autoSize = TextFieldAutoSize.LEFT; debug_txt.width = 1000;...
来源: Laya_社区 发布时间: 20200217
....init(800,800,Laya.WebGL); creatText(); function creatText(){ this.txt=new Laya.Text(); this.txt.overflow=Laya.Text.SCROLL;//必须是SCROLL才能实现滑动 this.txt.text="=========================================================================================\n" + ...
来源: Laya_社区 发布时间: 20170810
...ion (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text = _content; txt.cacheAs = 'bitmap'; txt.fontSize = _fontSize; txt.bold = true; txt.font = 'wordFont'; txt.color = _color; txt.strokeColor = '#000000'; //txt.stroke = 2; txt.width = _width; txt.autoS...
来源: Laya_社区 发布时间: 20161118
...ya.Stat.show();var textBox = new Laya.Sprite();for(var i=0;i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20190531
...路径算的还是文件内容呢? 2、如图1,filetable.bin,filetable.txt,filetable1.txt分别存的是什么内容呢?如果是文件对应的crc,为啥有3个呢?猜测.bin是filetable.txt的压缩版,但是为啥有filetable.txt,filetable1.txt两个呢? 3、如图2,打开filetabl...
来源: Laya_社区 发布时间: 20170329
... { Laya.init(600, 300); var txt:Text = new Text(); txt.text = "HelloLayaBox"; txt.color = "#ff0000"; txt.fontSize = 66; txt.bold = true; ...
来源: Laya_社区 发布时间: 20171025
...赞同来自: private createText(font: string): void { var txt: Text = new Text(); txt.width = 250; txt.wordWrap = true; txt.text = "测试文本"; txt.font = font; txt.leading = 5; txt.po...
来源: Laya_社区 发布时间: 20181227
Text 居中 搭配 Tween 显示结果有问题。 var txt = new Laya.Text(); txt.text = "做个测试"; txt.x = 0; txt.y = 0; txt.color = "#FFFFFF"; txt.fontSize = 12; txt.width = 800; txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scal...
来源: Laya_社区 发布时间: 20161222
webgl文字显示不齐 let txt; txt = new Laya.Text(); txt.text = "abcde"; txt.fontSize = 100; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "我们是最好的"; txt.fontSize = 50; txt.x = 0; txt.y = 300; txt.scale(2,2); Laya.stage.addChild(txt);在laya2.0版本里,上面第二个...
来源: Laya_社区 发布时间: 20181119