大约有 238 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("war/background.png"); //更改背景2,放到...
来源: Laya_社区 发布时间: 20170222
...ded @ laya.core.js:12808 onload @ laya.core.js:12736 load (async) __proto._loadImage @ laya.core.js:12745 __proto.load @ laya.core.js:12665 __proto._doLoad @ laya.core.js:13328 __proto._next @ laya.core.js:13301 __proto._createLoad @ laya.core.js:13286 __proto._create @ laya.core.js:13187 __proto.cr...
来源: Laya_社区 发布时间: 20180731
...); touPane.addChild(_downScore); 这个东西,跟 直接new sprite 然后loadimage 有什么区别 ,这种写法 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 结果都是...
来源: Laya_社区 发布时间: 20170811
...自: 第二个问题 var mask:Sprite=new Sprite(); mask.loadImage("gametable/头像背景.png");var mask:Sprite=new Sprite(); mask.loadImage("gametable/头像背景.png"); var photo:Sprite=new Sprite(); photo.loadImage(AppConfig.httpPhotoUrl+UserData.username,0,0,gui.imgPhoto.width,...
来源: Laya_社区 发布时间: 20160802
...pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); t...
来源: Laya_社区 发布时间: 20170920
...liqunyang 赞同来自: // test drawToCanvas const sp1 = new Sprite(); sp1.loadImage('bet/cheer_1_3.png'); const sp2 = new Sprite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas = htmlCanvas....
来源: Laya_社区 发布时间: 20171018
...0]; var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); } reader.readAsDataURL(file); } 是这样显示的吗?我的为何也不显示,通过html的input上传的图片,然后通过FileReader来获取图片数据,最后填充image.skin和image.loadI...
来源: Laya_社区 发布时间: 20161212
...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/bc.png"); //把背景1放在容器中 this.addChild(this.bg1); //创建游戏背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("war/bc.png"); //更改背景2,放在背景1的...
来源: Laya_社区 发布时间: 20191018
...pe==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(url);[/b] 改为: if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(this._url);[/b] 再修改bin/libs/laya.wxmini.js文件的下面几处即可。 1. 大约793行 if(MiniAd...
来源: Laya_社区 发布时间: 20190403
Laya.Handler.create 加载图片回调参数问题 我想在调用loadImage加载图片完成之后把某个参数带到Handler里,但是按网上的说法我一直是失败, 示例代码: //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(Laya.Browser.width, Laya.Brows...
来源: Laya_社区 发布时间: 20180621