大约有 201 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0046 秒)
...? g_uiScroll = new UIScroll(610,127); g_uiScroll.pos(70,30); scollbg.addChild(g_uiScroll); m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll); 2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20171122
... var bigSprite = new sprite(); var smalla = new sprite(); bigSprite.addchild(smalla); var smallb = new sprite(); bigSprite.addchild(smallb); var smallc = new sprite(); bigSprite.addchild(smallc); 意思是一个大的sprite:bigSprite 里面包含三个小的sprite:smalla ,smallb ...
来源: Laya_社区 发布时间: 20160808
...修改a对象的显示对象层级并移动a对象到目标点 Laya.stage.addChild(a); a.pos(globalStartPoint.x,globalStartPoint.y); Laya.tween.to(a,{x:globalEndPoint.x,globalEndPoint.y},300);第三步:将a对象的显示对象层级修改为a_end对象同层级 a_end.parent.addChild(a); a.pos(a_e...
来源: Laya_社区 发布时间: 20180502
...景图。 box = new Sprite(); //把这容器添加到舞台。 Laya.stage.addChild(box); //创建背景1 bg1 = new Sprite(); //加载并显示背景图1 bg1.loadImage("res/background.png"); //把背景1添加到容器 box box.addChild(bg1); //创建背景2 bg2 = new Sprite(); //加载并显示背景...
来源: Laya_社区 发布时间: 20160810
...500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLICK,this,onMouseClick); testPan.width = 90; testPan.height = 100; var mcSp:Sprite = new Sprite(); mcSp.graphics.d...
来源: Laya_社区 发布时间: 20161124
...bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthogra...
来源: Laya_社区 发布时间: 20180503
...曲线 _view.graphics.drawCurves(0,0, points, "#ff0000", 15); Laya.stage.addChild(_view); _view.size(80, 100); _view.on(Event.CLICK, this, __clickHandler); } private function __clickHandler():void { trace(_view.stage.mouseX + "---" + _view.stage.mouseY); /*获取所画曲线鼠标点击处的像素...
来源: Laya_社区 发布时间: 20180319
...况下,转换出来的坐标不正确 _scene3d = new Scene(); Laya.stage.addChild(_scene3d); _camera3d = new Camera(0, 0.1, 300); _scene3d.addChild(_camera3d); _camera3d.transform.translate(new Vector3(0, 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera3d.tra...
来源: Laya_社区 发布时间: 20161226
...Info.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __o...
来源: Laya_社区 发布时间: 20180308
....WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0,...
来源: Laya_社区 发布时间: 20190520