大约有 1,771 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
Laya_社区(1392) laya_api(90) Laya3.0_api(82) Laya2.0_api(72) Laya2.0_文档(59) Laya_示例(33) Laya2.0_示例(32) Laya3.0_文档(11)
...= 0; j < this.MapColNum; j++){ var box = new laya.display.Sprite(); box.graphics.drawRect(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addChild(box); } } boxSp.cacheAs = "bitmap"; this.addChild(boxSp); } boxSp.cacheAs = "bitmap"; 如果去掉这句话可以显示 是...
来源: Laya_社区 发布时间: 20161008
...后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 graphics alpha 问题 问题状态 最新活动: 2016-12-28 17:49 浏览: 1723 关注: 2 人 cuixueying • 2016-12-28 20:33 1、LayaAir IDE下确定没有设置repeat选项 2、使用地图-新图块 导入 设置边距0像素...
来源: Laya_社区 发布时间: 20161228
...his.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.po...
来源: Laya_社区 发布时间: 20180313
... var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texEnd,240,230,120,120) Laya.stage.addChild(sp); } } } 3、最终效果 2016-05-06 0 0 分享 微博 QZONE 微信 anghuo 赞同来自: 不错 不错!学习了 ...
来源: Laya_社区 发布时间: 20160506
... 已邀请: 与内容相关的链接 提交 1 个回复 yung 赞同来自: graphics里面有个fillTexture接口,可以看一下 2018-04-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ~ 相关问题 Dialog:屏蔽点击Dialog之...
来源: Laya_社区 发布时间: 20180426
...放。使用MosueEvent对该mc进行控制。或者直接使用Flash API的Graphics和TextField类实现UI,MouseEvent进行状态控制。 仅供参考,其他方式你也可以尝试。 2015-11-26 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20151126
...ype: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白屏 20...
来源: Laya_社区 发布时间: 20180808
...致的编译错误 分享一个TS版本的3D2D结合的单机斗地主Demo graphics alpha 问题 问题状态 最新活动: 2017-10-11 16:27 浏览: 932 关注: 2 人 Monica • 2017-10-11 16:43 FlashDevelop里边的话它不会提示这种错误,用FlashBuilder就能看到啦 tyevlag • 2017-10-...
来源: Laya_社区 发布时间: 20171011
...); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(0, 0); })); 业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: ...
来源: Laya_社区 发布时间: 20170831
... var r = 38.5; //遮罩圆形半径 cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域 cMask.pos(this.x+r, this.y+r); this.mask = cMask; //不加这一行图片正常显示,但是方图 ...
来源: Laya_社区 发布时间: 20181119