• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 36 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)

31. 微信小游戏开放数据域透明区域绘制的问题 [ 55%]

...如下: 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

32. sound manager在MOUSE_OVER事件中无法播放 [ 55%]

...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

33. 分享:销毁龙骨动画! [ 54%]

...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

34. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 54%]

...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

35. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 50%]

...; 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

36. 分享,扩展Laya.Text组件实现简单的富文本 [ 49%]

...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