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

大约有 175 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

41. loadingView 的 tips提示问题 [ 77%]

...299行,         _dt() {         var g = this.tips._graphics;         g.clear();         g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center");         g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this.prei] - 26,...

来源: Laya_社区 发布时间: 20170518

42. 关于customRender函数不执行的问题 [ 77%]

... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...

来源: Laya_社区 发布时间: 20180728

43. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 76%]

...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...

来源: Laya_社区 发布时间: 20190722

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

...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...

来源: Laya_社区 发布时间: 20180417

45. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 76%]

...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...

来源: Laya_社区 发布时间: 20190722

46. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 76%]

...l[angelLel].y, data.angel[angelLel].w , data.angel[angelLel].h); this.ball.graphics.drawTexture(tBall, 0,0,548,305); this.tower.graphics.drawTexture(tTower, 0, 0, data.tower[towerLel].w , data.tower[towerLel].h); this.aeroboat.graphics.drawTexture(tAeroboat,0,0, data.aeroboat.w, data.aeroboat.h); th...

来源: Laya_社区 发布时间: 20170720

47. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 76%]

... = rect; pos = bian * 0.5; } public function set360(value:int):void { this.graphics.clear(); if(value == -1){ return; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now...

来源: Laya_社区 发布时间: 20171124

48. 新人求教!!! [ 75%]

...Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();...

来源: Laya_社区 发布时间: 20180226

49. 关于定时器问题 [ 75%]

...点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 graphics alpha 问题 (此问题已经无效) 问题状态 最新活动: 2018-08-06 10:43 浏览: 1025 关注: 2 人

来源: Laya_社区 发布时间: 20180802

50. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 74%]

...aya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff0000", 3); } } new Scene(); 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

来源: Laya_社区 发布时间: 20190520