大约有 115 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0043 秒)
...room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....
来源: Laya_社区 发布时间: 20170911
..."); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage....
来源: Laya2.0_文档 发布时间: 20210714
....onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Handler.create(this, this.onAssetsLoading, null, false)); } onAssetsLoading(progress) {...
来源: Laya_社区 发布时间: 20171217
... { sp = new Sprite(); Laya.stage.addChild(sp); //画曲线 sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3); } })(); ``` 发布后如下图所示,我们成功的绘制了一条简单的...
来源: Laya2.0_文档 发布时间: 20210715
... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — ...
来源: Laya2.0_文档 发布时间: 20201114
... this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画折线 this.sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3); } } } new laya.Sprite_DrawShapes(); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
... sp = new Sprite(); Laya.stage.addChild(sp); //画曲线 sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3); } } } ``` 发布...
来源: Laya2.0_文档 发布时间: 20210714
... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...
来源: Laya3.0_文档 发布时间: 20240910
...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...
来源: Laya_社区 发布时间: 20170511
...ld"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可以把不需要的手动删除一下
来源: Laya_社区 发布时间: 20180330