大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0183 秒)
...00,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(box); box.pos(posx, posy).size(width * ratio, height * ratio); var rigidbody: RigidBody = box.addComponent(RigidBody...
来源: Laya2.0_示例 发布时间: 20260106
...d(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.p...
来源: Laya_社区 发布时间: 20171108
..._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式不对。根据的是行高来计算,而不是我给组件设置的高 Laya_Aaron • 2018-01-04 12:03...
来源: Laya_社区 发布时间: 20180104
... - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.zombie, ++this.curStateIndex % this.skinAniUrl.length); }); })); } } new SkinAnimatio...
来源: Laya_示例 发布时间: 20260106
...txt.bold = true; txt.pos(g_stat_width - txt.width - 40, g_stat_heiht - txt.height - 20); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间...
来源: Laya_社区 发布时间: 20160623
...put = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumbe...
来源: Laya_社区 发布时间: 20190225
...createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 100, height : 100 }); var url:String ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var ur...
来源: Laya2.0_文档 发布时间: 20210715
...+) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count...
来源: Laya_社区 发布时间: 20181113
...+) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count...
来源: Laya_社区 发布时间: 20181113
...ONE 微信 Miller 赞同来自: 就是我在开放域中如何设置list的height值,在主域中的list只能显示到这个高度,没法在扩展了。 2018-05-08 0 1 分享 微博 QZONE 微信 Miller 赞同来自: rankList.array = data; rankList.height = 670; 我试了一下,大概高度超...
来源: Laya_社区 发布时间: 20180507