大约有 179 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)
Laya3.0_api(87) Laya_社区(71) laya_api(5) Laya3.0_文档(5) Laya2.0_示例(4) Laya2.0_api(4) Laya_示例(2) Laya2.0_文档(1)
... height:Number, roundRadius:Number, fillColor:String, borderColor:String = null, borderWidth:Number = 0):DrawPathCmd { var paths:Array = []; paths.push(["moveTo", roundRadius, 0]); paths.push(["lineTo", width - roundRadius, 0]); paths.push(["arcTo", width, 0, width, roundRadius, roundRadius]); paths...
来源: Laya_社区 发布时间: 20190117
...y: number, width: number, height: number, fillColor: any, lineColor: any = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 s...
来源: Laya3.0_文档 发布时间: 20231129
...rivate function OnShow():void { // TODO Auto Generated method stub if(pop==null){ pop = new TestDialogUI(); pop.btn_close.clickHandler = new Handler(this,function(){pop.parent.removeChild(pop);}); } this.addChild(pop); } private function StartMove(len:int):void { trace("[TestView.StartMove]") // TOD...
来源: Laya_社区 发布时间: 20171129
...ed), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showMod...
来源: Laya_社区 发布时间: 20170905
... debug_txt.y = 20; var tf:TextFormat = new TextFormat(null,12,0xFFFFFF); debug_txt.defaultTextFormat = tf; debug_txt.text = "start..."; stage.addChild(debug_txt); if (ExternalInterface.available) ...
来源: Laya_社区 发布时间: 20200217
...source = Laya.loader.getRes(dPath); // if (null != resource) { // resource.dispose(); // } else { // console.error("resources is null,path:{0}", dPath); ...
来源: Laya_社区 发布时间: 20180320
...aya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null); 结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导致复用这个loader时,customParse属性不正确。 修改:成功、失败都会走到o...
来源: Laya_社区 发布时间: 20180305
...------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20161221
...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2016-06-27 15:31 浏览: 1892 关注: 2 人 cuixueying • 2016-06-27 21:05 @wuciqiang你好,咱们这个问题先做延迟处理吧,如果还有问题咱们及时沟通!
来源: Laya_社区 发布时间: 20160627
...BufferUrl.slice(0,this._skBufferUrl.lastIndexOf("/"))+"/"); this.parseData(null,tSkBuffer); } __proto.parseData=function(texture,skeletonData,playbackRate){ (playbackRate===void 0)&& (playbackRate=30); if(!this._path&&this.url){ //MODIFIED:使用formatPath进行路径过滤 this._pat...
来源: Laya_社区 发布时间: 20190419