大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
...法 override protected function getDef():* { if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } this.label = (this.label || "ChainCol...
来源: Laya_社区 发布时间: 20181116
...与内容相关的链接 提交 2 个回复 班长 赞同来自: 辉先生 if (Browser.onIPhone && Math.abs(Browser.pixelRatio - 3) < 0.01) { onIPhoneX = (Browser.clientWidth == 375 && Browser.clientHeight == 812) || (Browser.clientWidth == 812 && Browser.clientHeight == 3...
来源: Laya_社区 发布时间: 20180521
...gt;'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao....
来源: Laya_社区 发布时间: 20170911
...简单的教程 先自己全局 安装 npm 然后安装 gulp、tbrowserify、vinyl-source-stream、ttsify 我的npm路径是 :"/usr/local/lib/node_modules/"然后 我们 在 .laya 文件夹下 找到 compile.js 然我们自己在这个目录下 新建一个 文件 名字是 ”gulpfile.js“ ...
来源: Laya_社区 发布时间: 20181221
...) 改为 "owner" in tChild,set中的log被输出。 引擎1.7.5beta. // if (tChild.hasOwnProperty("owner")) { // tChild["owner"] = comp; // } if ("owner" in tChild) { tChild["owner"] = comp; } 附件 : --> myLaya.rar 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170601
...function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { var touches:Array = e.touches; if (touches) { xx = moveX - touches[0].stageX; hero....
来源: Laya_社区 发布时间: 20210203
...el:Laya.Component) { console.log("GetViewHeight:"+panel.height); if(panel.height>0) { return panel.height } if(!panel.parent) { return WINSIZE.height } let parent=panel.parent as Laya.Component; return GetViewHeight(parent)-panel.top-panel.bottom; }
来源: Laya_社区 发布时间: 20180814
...this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (mCurrIndex >= aniNum) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } } new Skeleton_MultiTexture();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import ...
来源: Laya2.0_示例 发布时间: 20260303
... required bytes sex = 3; //角色性别 // } if(Msg== null){ Msg = ProtoManager.Instance.getProtoObj(protoFileName).lookup(msgName); } trace("protoFileName=="+protoFileName+" msgName=="+msgNa...
来源: Laya_社区 发布时间: 20180314
...邀请: 与内容相关的链接 提交 2 个回复 anghuo 赞同来自: if (cb.name == "musicset") { cb.selected ? SoundManager.setMusicVolume(0) : SoundManager.setMusicVolume(0.5); } else if (cb.name == "sou...
来源: Laya_社区 发布时间: 20170718