大约有 54 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
...st h = 30; button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w, h); button.x = (Laya.stage.width - TrackLength) / 2; button.y = Laya.stage.height / 2; but...
来源: Laya_示例 发布时间: 20251130
... this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) this.button.size(w, h); this.button.x = (Laya.stage.width - TrackLength) / 2; this.button.y = Laya.s...
来源: Laya2.0_示例 发布时间: 20251130
...is.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.w...
来源: Laya_示例 发布时间: 20251130
... text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+66); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var text = new Text(); text.text ="100123"; text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+85); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var bgSprite = ne...
来源: Laya_社区 发布时间: 20170920
...s.height / 2, -this.height / 2, this.width + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 getPinPosition() { const Point = Laya.Point; let radian = this.rotation * Math.PI / 180; let tx = this.x + Math.cos(radian) * this.width; let ty = this.y + Math.sin(radian) * this.widt...
来源: Laya2.0_示例 发布时间: 20251130
..., p1.y); target.graphics.drawPoly(p1.x, p1.y,path,"#FF7F50"); _mask.graphics.drawTexture(texture,0,0); var path1:Array = ; path1.push(p2.x, p2.y); ...
来源: Laya_社区 发布时间: 20160627
...提示了如下问题:(上传错误DEMO工程 testBug.zip) .WebGL-0x7f899a033200]RENDER WARNING: there is no texture bound to the unit 3 附件 : --> testBug.zip 2020-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20200316
...传了几失败了,请从以下地址下载 https://c-t.work/s/7f1405e72bca43 附件 : --> 附件下载地址.zip 2020-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这个...
来源: Laya_社区 发布时间: 20200104
...s.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); 这个可以通过一些点来绘制一个平面图形 2017-11-03 0 1 分享 微博 QZONE 微信 i_like_these 赞同来自: 请问下 这个绘制是2d的吗 还是3D的 能绘制3D平面吗? 2017-11-06 0 0 分享...
来源: Laya_社区 发布时间: 20171102
...t; } while (id != 0); // 5.x // var len:Array = []; // len.push(id & 0x7f); // id >>= 7; // while(id > 0) // { // len.push(id & 0x7f | 0x80); // id >>= 7; // } // // for (var i:int = len.length - 1; i >= 0; i--) // { // buffer.writeByte(len[i]); // } } if (rot) { if (typeof...
来源: Laya_社区 发布时间: 20180119