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

大约有 406 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

11. 关于Button Skin 切图问题 [ 86%]

...mage.new('RGBA',(maxWith, finalHeight), (0,0,0,0)) index=0 for im in pngs: left = (maxWith - im.width)*0.5 top = index*maxHeight + (maxHeight - im.height) *0.5 outIm.paste( im, (int(left), int(top))) index = index + 1 print('paste', left, top) outIm.save( os.path.join(os.path.curdir, "button.png")) ...

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

12. 舞台的位置怎么自由设定 [ 84%]

...浏览器的任意一个地方要怎么设置? 源码里写死了只有 left right top bottom这几个参数进行组合 比如我想让舞台展示在距离浏览器左边100个像素这种需求。试过通过改变外套的div的位置但是舞台里的坐标就全乱了  以下是源码里对...

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

13. 苹果笔记本下Safari中显示一半 [ 84%]

...canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas id="layaCanvas" width="760" height="650"...

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

14. 引擎 TiledMap 居然不支持图块翻转 [ 83%]

...    this._mapLastRect.top = this._mapLastRect.bottom = this._mapLastRect.left = this._mapLastRect.right = -1;             var tArray = tJsonData.tilesets;             var tileset;             var tTileSet;             var i = 0;             for (i = 0; i < tArray.l...

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

15. Layabox web 复制一段文字到剪贴板 [ 82%]

...llHeight) + 100 + "px"; this.newMask.style.top = "0px"; this.newMask.style.left = "0px"; this.newMask.style.background = "gray"; this.newMask.style.filter = "alpha(opacity=80)"; this.newMask.style.opacity = "0.5"; document.body.appendChild(this.newMask); } _this.mask = document.getElementById("mask"...

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

16. laya.d3.math.BoundFrustum_API3.0 [ 82%]

...stum Implements IClone Index Constructors constructor Accessors bottom far left matrix near right top Methods clone cloneTo containsBoundBox containsBoundSphere containsPoint equalsBoundFrustum equalsObj getCorners getPlane intersects get3PlaneInterPoint getPlanesFromMatrix Constructors constructor ...

来源: Laya3.0_api 发布时间: 20231115

17. 关于UI编辑器的小建议 [ 82%]

...博 QZONE 微信 reven1983 赞同来自: 补充一下:就是right为0,left不填,top为0,bottom不填就会出现这种情况。left,right,top,bottom都填的时候就没问题 2017-02-17 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 本周版本更新就修复你说的这些问...

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

18. Stage.SCALE_NOBORDER模式微信的top栏bug [ 81%]

...浏览: 695 关注: 2 人 rabee • 2017-11-06 12:05 我控件有设置top,left了,但是他没把微信top栏算进去,这样就错误了啊 rabee • 2017-11-06 12:06 能算出微信的可是高度吗? wudi199553 • 2017-11-06 14:12 你去官网看下API或者技术文档把 rabee • 2017-...

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

19. Laya里面设置子容器的宽是父容器宽的百分比 [ 81%]

...: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 用lefttop等属性实现 2017-12-10 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 woody1720596907 相关问题 看了其他引擎才发现 LAYA 真的太太太...

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

20. 关于iphoneX的适配 [ 81%]

...ml里 body{ padding-top: constant(safe-area-inset-top);        padding-left: constant(safe-area-inset-left);               padding-right: constant(safe-area-inset-right);             padding-bottom: constant(safe-area-inset-bottom); } 这段代码可以加吗?   我加上之后...

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