大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0085 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
...xtends ui.loginUI { normalDialog: NormalDialog; constructor() { super(); this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") }); } showDialog(context: strin...
来源: Laya_社区 发布时间: 20181216
...在IOS上百分百出现绘制不完全的BUG:如下图 update() { this.updatePowerProgressTest(); } //更新蓄力进度圈 updatePowerProgressTest() { //是否为增加进度条 if (this.isIncPower) { //蓄力速度 this.currentPower += 5; if (this.currentPower >= this.powerTotal) { thi...
来源: Laya_社区 发布时间: 20190909
在wx.request的success回调中写的this,发布后this没有改变为_this(但是fail里面的就自动变了)导致错误!!! 求高手告知是否是IDE的BUG,还是代码写的有问题,谢谢啦 附件 : --> 2018-07-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180711
...new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR, this, (e...
来源: Laya_社区 发布时间: 20190308
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/...
来源: Laya3.0_文档 发布时间: 20230901
... CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", ...
来源: Laya_社区 发布时间: 20171012
...力的数值,球和地面都设置了弹力 TestScript2 onAwake this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...
来源: Laya_社区 发布时间: 20200512
... Browser.width; private h:number = Browser.height; private slideX:number = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.createText(); this.start(); } private start():void { for (var i:number = 0; i this.w) { this.stars...
来源: Laya_示例 发布时间: 20241002
...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2D = Laya.stage.addChild(new Laya.Image("../../res/threeDimen...
来源: Laya_示例 发布时间: 20241002
...手引导的抠图透明区域为黑色,其它机型都是正常的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea:...
来源: Laya_社区 发布时间: 20171222