大约有 61 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0041 秒)
Laya_社区(42) Laya3.0_api(5) Laya_示例(3) Laya2.0_示例(3) Laya2.0_api(3) laya_api(2) Laya3.0_文档(2) Laya2.0_文档(1)
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...常是整数,但为了保险最好也处理 e.clearRect(0, 0, o, l), e.fillText(t, r, r + s / 2), function(e, t, s) { ... }(e.getImageData(0, 0, o, l), i, a) // -> 崩溃发生在这里 修改后 (修复版): var n = e.measureText(t).width, o = Math.ceil(n + 2 * r), // <--- 重...
来源: Laya_社区 发布时间: 20260119
...rInfo (http://192.168.1.11/slider/lib ... :41690) at M.t._fast_filltext (http://192.168.1.11/slider/lib ... :39406) at G.t._fast_filltext (http://192.168.1.11/slider/lib ... 143372) at o.t.run (http://192.168.1.11/slider/lib ... 270082) at t.e._renderA...
来源: Laya_社区 发布时间: 20190823
...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_示例 发布时间: 20260303
...rInfo (http://192.168.1.11/slider/lib ... :41690) at M.t._fast_filltext (http://192.168.1.11/slider/lib ... :39406) at G.t._fast_filltext (http://192.168.1.11/slider/lib ... 143372) at o.t.run (http://192.168.1.11/slider/lib ... 270082) at t.e._renderA...
来源: Laya_社区 发布时间: 20190821
...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
...。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文本单字符绘制提交方式。 如果采用了Text文本,那每一个Text文本对象中的文本字符会一起形成小图集提交到大图合集中,比如游戏中某个文本对象有300字,其中一个...
来源: Laya_社区 发布时间: 20240221
...ie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in...
来源: Laya3.0_api 发布时间: 20231115