大约有 1,873 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0171 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
...置你的textarea.wordWrap=true,注意同时给你的textarea设置一个width sky_fly • 2017-03-24 16:12 奇怪,代码没变化,现在居然换行了!还有一个问题,输入文本超过容器,可以用方向键拉,但是鼠标拖不动 cuixueying • 2017-03-24 16:23 你设置过s...
来源: Laya_社区 发布时间: 20170324
...:26 浏览: 2862 关注: 2 人 zhejiushizhuce • 2017-11-17 17:31 Browser.width返回2001,iphonex是2436,layaplayer显示区域也是2001*1125,这样的话铺不满全屏,能够做到显示区域铺满全屏幕,然后局部调整位置吗? Monica • 2017-11-17 17:35 @zhejiushizhuce:这...
来源: Laya_社区 发布时间: 20171117
...parent.addChild(mArmature); mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2); mArmature.scale(3, 3); mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); mArmature.play(1, true); } completeHand...
来源: Laya_社区 发布时间: 20190730
...n);使用舞台监听有效,但是如果使用 var sp = new Sprite(); sp.width = 720; sp.height = 1280 Laya.stage.addChild(sp) sp.on(laya.events.Event.KEY_DOWN, this, this.onkeyDown); 就不能监听到键盘事件呢,这是怎么回事呢? 2018-01-12 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180112
...:Label = new Label(); demoLable2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180530
...但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toStr...
来源: Laya_社区 发布时间: 20190225
...dMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectBy...
来源: Laya_社区 发布时间: 20190214
...ring;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath; __JS__('wx').saveImageToPhotosAlbum({ filePath:imagePath, success:function(res:*):void{ trace("-----...
来源: Laya_社区 发布时间: 20180830
...成后通过getBounds来获取Animation的宽高,设置pivot轴心点为width/2,height/2,同时设置pos值为pivot值的相反值即可。如果pos已经设置过,将pos现有值-(povot.x,pivot.y) 2017-01-19 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170119
...了90°是什么原因? 使用高度图的时候 Cannot read property 'width' of undefined 子域里面排行榜滑动无效,找不到原因。。跪求指导。。。 stage.height获取高度有bug吗 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前...
来源: Laya_社区 发布时间: 20190418