大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...做到第二次点击color的时候lable背景颜色变回原来的颜色 this.label.bgColor = "#ff0400"; start(): void { this.color_btn.on(Laya.Event.CLICK, this, this.onTipClick); } if(tipBtn == this.color_btn){ this.label.bgColor = "#ffffff"; 2019-07-22 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20190722
...edMap: Laya.TiledMap /** */ private onLost() { this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("resource/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), nu...
来源: Laya_社区 发布时间: 20220929
...ect.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChild(sp); } private function onsp(e:Event){ console.log("监听到按钮"+e.target); console.log((e.target.getChildAt(0) as Sprite).name...
来源: Laya_社区 发布时间: 20170330
...sh使用吗? masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...
来源: Laya_社区 发布时间: 20171120
...ngContext":No function was found that matched the signature provided 在this.texture2D.loadImageSource(this.cav);报错 this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256; var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5...
来源: Laya_社区 发布时间: 20200714
...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...
来源: Laya_社区 发布时间: 20230703
...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...
来源: Laya3.0_文档 发布时间: 20240910
tweenline label事件诡异 this.timeLine.addLabel("rotate1",0).to(this.godContaner,{rotation:-5},200,null,0) .addLabel("rotate2",0).to(this.godContaner,{rotation:0},200,null,0); this.timeLine.play(0,true); this.timeLine.on("label", this, function(label){ console.log(label) }); 两个问题 1 为...
来源: Laya_社区 发布时间: 20170310
...没有办法实现, 下面是之前flash代码 bitmapData.applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter); sprite.copyPixels(this._base, this._base.rect, zeroPoint); sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20160730
...2,在场景中加入了鼠标点击事件 Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e.stopPropagation(...
来源: Laya_社区 发布时间: 20180917