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

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

11. 骨骼动画-Spine事件 [ 76%]

...elSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { i...

来源: Laya_示例 发布时间: 20251130

12. Laya没有找到在ide里编辑模式下的GridEditor类 [ 76%]

...ide 2018-01-13 0 1 分享 微博 QZONE 微信 sheen 赞同来自: 同样是fillText,为啥我就画不出来。。 this.graphics.fillText(index + "", p.x, p.y, "12px Arial", "0xffffff", "center"); 在debugger的时候打印出来是undefined... 如果超出数量还会报错,需要改底层才...

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

13. 骨骼动画-Spine事件 [ 74%]

...d(mLabelSprite); mLabelSprite.pos(mStartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineE...

来源: Laya2.0_示例 发布时间: 20251130

14. laya.display.Graphics_API3.0 [ 74%]

...ie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate Constructors constructor new Graphics(): Graphics Defined in laya/display/Graphics.ts:54 Returns Graphics Accessors c...

来源: Laya3.0_api 发布时间: 20231115

15. 计时器-延迟执行 [ 74%]

...aphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) L...

来源: Laya_示例 发布时间: 20251130

16. 计时器-延迟执行 [ 74%]

...aphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK, this, this.onDecreaseAlpha1); //定时...

来源: Laya2.0_示例 发布时间: 20251130

17. 字符串重复缓存过多数据,占用大量资源 [ 72%]

...引擎并没有对组件内容进行判断   graphics 的动态文本  fillText  可以 做到 相同的文字 只缓存一次   Label  Text 只适用于内容不变的静态文本, 动态用 FillText 2019-07-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

18. loadingView 的 tips提示问题 [ 72%]

...r 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, 0, this.fontstr, this.fc, "left");     } 把...

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

19. Laya1.6.2发布flash版本 [ 72%]

...aya.webgl.text::DrawText$/drawText() at laya.webgl.canvas::WebGLContext2D/_fillText() at laya.webgl.canvas::WebGLContext2D/fillText() at MethodInfo-4429() at Function/http://adobe.com/AS3/2006/builtin::call() at laya.display::Graphics/_renderOne() at laya.renders::RenderSprite/_graphics() at laya.di...

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

20. laya.display.Graphics [ 70%]

...g):void 在画布上绘制“被填充且镶边的”文本。 Graphics  fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String, underLine:int = 0):void 在画布上绘制文本。 Graphics  fillTexture(tex:Texture, x:Number, y:Number, width:Number = 0, height:Numb...

来源: laya_api 发布时间: 20170929