大约有 914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
Laya_社区(546) Laya2.0_示例(94) Laya_示例(90) Laya2.0_文档(79) Laya3.0_api(62) Laya3.0_文档(41) laya_api(1) Laya2.0_api(1)
...Sprite(); letter.loadImage("../imgs/linkup/" + letterList[z] + ".png", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); ...
来源: Laya_社区 发布时间: 20180810
...assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !th...
来源: Laya_社区 发布时间: 20180502
... dialogUI,怎么在页面中打开? this.wrong=new ui.wrongUI; this.wrong.width=300; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话框 我现在这个对...
来源: Laya_社区 发布时间: 20171027
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 注册函数里面 事件侦听函数的执行域 的详解 websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? ts如何通过文件集加载的...
来源: Laya_社区 发布时间: 20170317
...nstance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=26...
来源: Laya_社区 发布时间: 20190117
...触发时会报null 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 问题状态 最新活动: 2019-12-26 12:01 浏览: 1343 关注: 2 人 圣诞老人的麋鹿 • 2020-01-15 17:02 laya 2.4.0也有这个问题,laya的引擎版本和native都为2.4.0仍然出现,...
来源: Laya_社区 发布时间: 20191226
...awUnderline=function(align,x,y,lineIndex){ var lineWidth=this._lineWidths[lineIndex]; switch (align){ case 'center': x-=lineWidth / 2; break...
来源: Laya_社区 发布时间: 20171019
...oElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // 设置画布上的对齐参照物 let reference = new Laya.Sprite()...
来源: Laya_社区 发布时间: 20181124
...this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selec...
来源: Laya_社区 发布时间: 20180325
...tion(){ if( window.conch ) { window.conch.captureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } } E/LayaBox: >>>>>>>>>>>>>>>>>>>>&g...
来源: Laya_社区 发布时间: 20180227