大约有 436 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(282) Laya2.0_文档(49) Laya2.0_示例(41) Laya_示例(34) Laya3.0_api(17) Laya3.0_文档(12) Laya2.0_api(1)
...大小问题 // 程序入口 class GameMain{ constructor() { Laya.init(600,400); let htmlDiv = new Laya.HTMLDivElement(); let imgUrl = 'images/kb-emoji-U+E056.png'; // origin width/height: 64/64px; //let imgStr = `<img src="${imgUrl}" width="30" height="30"></img>`; let imgStr = `<img...
来源: Laya_社区 发布时间: 20170511
...问题 tiledMap的初始化json是怎么生成的? 用Laya3D.init(600, 400)这个初始化会报以下这个错误 问题状态 最新活动: 2018-04-17 11:26 浏览: 649 关注: 2 人 a365571557 • 2018-04-17 18:33 恩,好的,预加载之后就没问题了,麻烦了 w1114367261 • 2018-04...
来源: Laya_社区 发布时间: 20180417
...6); poly.pivot(18,18); poly.loadImage("SafeExitL.png",0,0,36,36); poly.pos(400,300); poly.on("mousedown", this, polyonMouseDown); bg.scrollRect=new Laya.Rectangle(100,100,700,500); bg.scale(1.5,1.5); ----------------------------------------------------------------------------- 加上这句bg.scrollR...
来源: Laya_社区 发布时间: 20180823
...n.to(point,{x:point.x,y:point.y,visible:true},800,Laya.Ease.cubicIn,null,i*400); 2018-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 你用的是最新版本么 以前版本确实存在...
来源: Laya_社区 发布时间: 20180117
...有点击事件啊? var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyPage2UI); var UI = new MyBoot...
来源: Laya_社区 发布时间: 20160722
... iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }...
来源: Laya_社区 发布时间: 20171011
...同来自: swind 、qian UI编辑模式下MainScene的页面大小是600*400,但是你页面上的大部分内容都超出了这个范围。默认超出页面大小的元素是不接收鼠标点击事件的。 修改下View页面的大小即可 2018-03-12 2 4 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20180312
... var path = [ ["moveTo", 0, 0], //画笔的起始点, ["lineTo",400,0], ["arcTo", 500, 0, 500, 30, 30], //p1(500,0)为夹角B,(500,30)为端点p2 ["lineTo",500,200], ["arcTo", 500, 300, 470, 300, 30],//p1(500,300)为夹角C,(470,300)为端点p2 ["lineTo",30,300], ["arcT...
来源: Laya2.0_文档 发布时间: 20210715
...打开和关闭的缓动特效无法取消 // 程序入口 Laya.init(600, 400); Dialog.manager.popupEffect = null; Dialog.manager.closeEffect = null; 在程序入口处增加了关闭特效的代码,但是没效果。 1.7.5beat的更新日志说“Dialog类增加popupEffect和closeEffect属性,...
来源: Laya_社区 发布时间: 20170602
....canvas.toTempFilePath({ x: 10, y: 10, width: 200, height: 150, destWidth: 400, destHeight: 300, success: (res) => { console.log(res) wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success(res) { //保存成功 wx.showToast({ title: '保存成功' }); } }) } }) 这是保存代码,获...
来源: Laya_社区 发布时间: 20190316