大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0054 秒)
...createFrames(aniUrls(stand + "000", 5), stand + "000"); Laya.stage.addChild(roleAni); roleAni.interval = 120; //播放指定的某一个动作,如果用这行代码就不对了,播放不出来任何东西 roleAni.play(0, true, stand + "000"); //播放所...
来源: Laya_社区 发布时间: 20170821
...else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费...
来源: Laya_社区 发布时间: 20191103
... var iHtml:HTMLIframeElement=new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="res/html/test.html"; 或者也可以将htmlDivElement与气泡的图片在同一个父容器下,每条信息就是创建一个srprite容器!其他方式也可以实现! 2017-07-10...
来源: Laya_社区 发布时间: 20170710
...// Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >> 1), (Laya.Browser.width>>1), -(Laya.Browser.height>>1), Laya.Browser.width, -(Laya.Browser.height>>1),...
来源: Laya_社区 发布时间: 20180602
...on.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); this.swimpoolani.interval = 500; } onEnable(): void { } onDisable(): void { } } esources already exist,is repeated load...
来源: Laya_社区 发布时间: 20190805
...x.x = Laya.Browser.width; gamebox.visible = true; Laya.stage.addChild(gamebox); // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,); Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed)) Tween.to(gamebox,{x:0},1000); console...
来源: Laya_社区 发布时间: 20170104
...as", Handler.create(null, onLoaded)); } function onLoaded() { Laya.stage.addChild(new GolfMainUI()); } 附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 中心点...
来源: Laya_社区 发布时间: 20180627
...s.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } createEffect(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); a...
来源: Laya_社区 发布时间: 20191019
...erData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就不显示头像,显示一个黑色的小方块 201...
来源: Laya_社区 发布时间: 20160802
...Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", ...
来源: Laya_社区 发布时间: 20180224