大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0062 秒)
...ent.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE 方法,这个是否正常? 引擎版本:Laya.version="1.7....
来源: Laya_社区 发布时间: 20181214
...Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya.stage.addChild(sp); html=new HTMLDivElement(); html.innerHTML="<span>哈哈哈哈哈</span>"; Laya.stage.addChild(html); html.on(Event.MOUSE_DOWN,this,onHtmlDown); } private function onHtmlDown():void { html.startDrag(n...
来源: Laya_社区 发布时间: 20170905
...相关的链接 提交 1 个回复 IM-许 赞同来自: 暂时已解决 AddChild上不要 AddChild到image上就可以了 2019-02-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 IM-许 相关问题 Layabox ...
来源: Laya_社区 发布时间: 20190227
... · 一个panel对象,高度500 · 一个box对象,高度1000 · panel.addChild(box)· 设置panel的垂直滚动skin,让它可以响应鼠标滚动 运行后发现: 能响应鼠标事件的位置只有box的上半部分(上面的500 px) (把box滚动到最下面,就无法再滚...
来源: Laya_社区 发布时间: 20170622
... txt = new Laya.Text(); txt.text = "abcde"; txt.fontSize = 100; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "我们是最好的"; txt.fontSize = 50; txt.x = 0; txt.y = 300; txt.scale(2,2); Laya.stage.addChild(txt);在laya2.0版本里,上面第二个文字显示不齐, log里提...
来源: Laya_社区 发布时间: 20181119
...个文字的容器 在弄一个图片的容器 在for 循环时 把文字 addchild到文字容器, 图片 addchild 图片容器(这样是性能最高的) zhongguo168a • 2018-01-17 16:28 请问cacheAsBitmap可以避免这种情况吗? 岁月静好 • 2018-08-13 12:33 http://gad.qq.com/arti...
来源: Laya_社区 发布时间: 20161226
...e.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createButton("播放音乐"); musicButton.x = ...
来源: Laya_社区 发布时间: 20201203
...png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 所以右边可能没有图片了 这里补一个 this.rightBg = new laya.display.Sprite(); this.rightBg.graphics.drawTexture(laya.resource.Texture.createFromTexture(this...
来源: Laya_社区 发布时间: 20160801
...内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 父节点addchild 子节点 这样子,removeself 就解除了 2019-03-12 0 3 分享 微博 QZONE 微信 内涵tv何吓吓 赞同来自: 没记得官方有这个方法,你只能用变量getChild存子节点,然后再addchild到...
来源: Laya_社区 发布时间: 20190312
... txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(spr); spr.texture = "images/circle.png"; txt.text = spr.texture.getPixels(25,25,1,1);希望通过使用getPixels方法使txt的文本内容变...
来源: Laya_社区 发布时间: 20190401