• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0033 秒)

1. 分享一个Graphics画圆角矩形的封装 [ 100%]

...fillColor: any, lineColor?: any, lineWidth?: number):void {     if(this instanceof Laya.Graphics == false ){ return; }     let sideMin:number = width<=height ? width : height;     if(round<0){ round=0; }else if(round>sideMin/2){ round=sideMin/2; }     this.drawPath(x, y, [   ...

来源: Laya_社区 发布时间: 20210123

2. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 55%]

...完成之后的回调函数 if (item.onComplete && item.onComplete instanceof Laya.Handler) { item.onComplete.runWith(content); } if (!content) success = false; if (loadedCount === itemCount && complete) { complete.runWith(success); } } function loadProgress(item, value) { if (progre...

来源: Laya_社区 发布时间: 20171226

3. socket大型项目回调 [ 36%]

...ya.Byte = new Laya.Byte(); // this.socket.input.readBytes(byte); if (event instanceof ArrayBuffer){ var byte:Laya.Byte = new Laya.Byte(event); this.socket.input.clear(); this.processPackage(this._package.decode(byte)); } } private sendMessage(reqId, route, msg) { var byte:Laya.Byte; // var msgbuffer...

来源: Laya_社区 发布时间: 20180119