大约有 36 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)
Laya_社区(20) Laya_示例(3) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2) Laya3.0_文档(2) Laya2.0_文档(1)
...如下: this.sharedCanvasContext.drawImage(...) this.sharedCanvasContext.fillText(...) 然后主域这边将sharedCanvas的内容绘制到主屏幕,伪代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y...
来源: Laya_社区 发布时间: 20180419
...awRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private onPlayMusic(e: ...
来源: Laya_社区 发布时间: 20201203
...ze(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2 , 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private function parseComplete(fac:Templet):void { //创建模式为1,可以启用换装 mArmature = mFactory.bui...
来源: Laya_社区 发布时间: 20170406
...ze(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } //private musicString:string = "./sounds/心跳的证明.mp3"; private musicString:string = "./res/心跳的证明...
来源: Laya_社区 发布时间: 20190421
...; var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawT...
来源: Laya_社区 发布时间: 20191103
...ctxFont, color, style.strokeColor, style.stroke, textAlgin); else graphics.fillText(_word, x, y, ctxFont, color, textAlgin); } //不再是每行绘制一次,而是每行根据关键字绘制多次 nowX += this.getTextWidth(line['text']); } } if (tCurrBitmapFont && tCurrBitmapFont.autoScale...
来源: Laya_社区 发布时间: 20180417