大约有 357 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)
Laya_社区(157) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(4)
...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
...空节点的内容 如图 在这个小人物下有另一个之前已经用Graphics加载上去的图,现在是重新加载一次并且换了个图 在重新加载之前怎么删除节点的内容呢? 附件 : --> 2017-11-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20171116
...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
...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...
来源: Laya_社区 发布时间: 20170628
...游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先...
来源: Laya2.0_文档 发布时间: 20210715
... texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20170505
...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
...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...
来源: Laya2.0_api 发布时间: 20190513
...问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就...
来源: Laya_社区 发布时间: 20180425
layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...
来源: Laya_社区 发布时间: 20180510