大约有 1,754 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
... var img:Image = new Image("../res/test.png"); img.height = 100; img.width = 100; Laya.stage.addChild(img); } 附件 : --> 2019-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 早...
来源: Laya_社区 发布时间: 20190529
...lbl=new Laya.Label(val); this.lbl.name="val"; this.lbl.size(Item.width,Item.height); this.lbl.align="center"; this.lbl.valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on(&...
来源: Laya_社区 发布时间: 20241014
...ot; +"<g fill=\"none\" stroke=\"black\" stroke-width=\"4\">" + " <path stroke-dasharray=\"5,5\" d=\"M5 20 l215 0\" />" + "<path stroke-dasharray=\"10,10\" d=\"M5 40 l215 0\" />" + &q...
来源: Laya_社区 发布时间: 20170423
...常, 下图分别为第2,1次进入; 红色字体 : Laya.Browser.width Laya.Browser.height 适配代码: Laya3D.init(1336, 750); Laya.init(1336, 750); Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; Laya.stage.bgColor = "#0000000"; if (Laya.Brows...
来源: Laya_社区 发布时间: 20190329
...X, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this...
来源: Laya_社区 发布时间: 20180418
... bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?
来源: Laya_社区 发布时间: 20151105
...t; document.getElementById('WebViewport').setAttribute('content', 'width=100%,initial-scale=' + 1 / devicePixelRatio + ',target-densitydpi=device-dpi,minimum-scale=0.1,maximum-scale=9,user-scalable=0'); </script> index.html最后有个这个 然后发布release 然后APP构建 ...
来源: Laya_社区 发布时间: 20180201
...anel的大小 3、调整两个Image的位置,一个在x=0,y=0,另一个x=width,y=0 4、代码中,见附件 Banner.zip 2018-08-10 1 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 重金悬赏第三方库用法,小伙伴踊跃参加呀。 2018-07-13 0 2 分享 微博 QZONE 微信 zsq 赞同...
来源: Laya_社区 发布时间: 20180713
... Laya.WebGL); //屏幕适配 Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; //-----------上面和下面的代码在两个不同的页面------------- _...
来源: Laya_社区 发布时间: 20180823
...dler.create(head_img, function () { this.height = this.width = 77; var cMask = new Laya.Sprite();//创建遮罩对象 var r = 38.5; //遮罩圆形半径 cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域 ...
来源: Laya_社区 发布时间: 20181119