大约有 27 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...seEvent"); trace("e "+e.target); switch (e.type) { case Event.MOUSE_DOWN: trace("press"); e.target.startDrag(); ...
来源: Laya_社区 发布时间: 20170517
...seHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUSE_DOWN: appendText("\n————————\n左键按下"); break; case Event.MOUSE_UP: appendText("\n左键抬起"); break; case Event.CLICK: appendText("\n左键点击\n—————...
来源: Laya_社区 发布时间: 20180205
...e = 100; Laya.stage.addChild(panel); // 0为说明 1为排行 内容部分 switch(num){ case 0: panel.addChild(_this.descriptionContent()); // 说明 内容 break; case 1: panel.addChild(_this.rankingContent()); // 排行榜 break; } } 附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180331
...UnusedResources。 核心代码: private onBtnClick(e:Laya.Event):void { switch(e.target) { case this.btn1: Laya.Scene.open("ui/p1/Page1.scene", false); break; case this.btn2: Laya.Scene.close("ui/p1/Page1.scene"); break; case this.btn3: Laya.Resource.destroyUnusedResources(); break; } }问题:...
来源: Laya_社区 发布时间: 20190216
..._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTrans...
来源: Laya_社区 发布时间: 20200119
... var lineWidth=this._lineWidths[lineIndex]; switch (align){ case 'center': x-=lineWidth / 2; break ; case 'right': ...
来源: Laya_社区 发布时间: 20171019
...tage.scaleMode != "noscale") { scaleY = divH / desH; scaleX = divW / desW; switch (Laya.stage.scaleMode) { case "noborder": if (scaleX > scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "showall": if (scaleX < scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case...
来源: Laya_社区 发布时间: 20171205
...e')this._prePoint.x=this._prePoint.y=-1000000; switch (evt.type){ case 'mousedown': this._touchIDs[0]=this._id++; if (!MouseManager._isTouchRespond){ ...
来源: Laya_社区 发布时间: 20170614
... 更新岛 _proto.update = function(target){ var obj = {}; // 解析target switch (target.type) { case 1: obj.type = "mountain"; break; case 2: obj.type = "statue"; break; case 3: obj.type = "tower"; break; case 4: obj.type = "angel"; break; case 5: obj.type = "aeroboat"; break; default: alert("网...
来源: Laya_社区 发布时间: 20170720
...):void { if (screenPos) { switch (_map.orientation) { case TiledMap.ORIENTATION_ISOMETRIC: screenPos.x = _map.width / 2 - (tileY - tileX) * _tileWidthHalf; ...
来源: Laya_社区 发布时间: 20161109