大约有 264 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0040 秒)
Laya_社区(200) Laya2.0_示例(20) Laya_示例(19) Laya2.0_文档(13) Laya3.0_api(5) Laya3.0_文档(3) laya_api(2) Laya2.0_api(2)
... Laya.stage.addChild(spe); spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333"); spe.on(Event.MOUSE_DOWN, spe, onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOU...
来源: Laya_社区 发布时间: 20170407
...码有什么问题? let s: Laya.Sprite = new Laya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的...
来源: Laya_社区 发布时间: 20180828
...tePanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff); this.addChild(panel); let box:laya.physics.BoxCollider = panel.addComponent(laya.physics.BoxCollider); box.height = 20; box.width = 100; let rigid:Laya.RigidBody = panel.addComponent(Laya.Rigi...
来源: Laya_社区 发布时间: 20190428
...下,我们看下什么问题! var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Browser.window.setInterval(function():void { sp.x+=5; },100); 2017-06-02 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20170523
...micro/bg.png"); var mask = new Sprite(); mask.alpha = 0.3; mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); mask.on(Laya.Event.CLICK,this,chick); function chick(){ mask.destroy(); gameContainer.destroy(); } gameContainer.mask=mask; Laya.stage.addChild(gameContain...
来源: Laya_社区 发布时间: 20200603
...GL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya.stage.addChild(sp); html=new HTMLDivElement(); html.innerHTML="<span>哈哈哈哈哈</span>"; Laya.stage.addChild(html); html.on(Event.MOUSE_DOWN,this,onHtmlDown); } ...
来源: Laya_社区 发布时间: 20170905
...ntainer); maskArea = new Sprite(); maskArea.alpha = 0.3; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#0ef604"); guideContainer.addChild(maskArea); //EventManager.add(MyEvent.PLAYER_MOVE,this,playerMoveFun); playerMoveFun(); //EventManager.add(MyEvent.MYRESIZE,thi...
来源: Laya_社区 发布时间: 20171213
...init = function(){ //黑色背景 this.bg = new Sprite(); this.bg.graphics.drawRect(0,0,Config.GameWidth,Config.GameHeight,"#000000"); this.addChild(this.bg); //loading文本 this.txt = new Text(); this.txt.color = "#ffffff"; this.txt.fontSize = 30; this.txt.text = "Loading"; this.txt.width = Config...
来源: Laya_社区 发布时间: 20160803
...= 40; var button:Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2 , 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private function parseComplete(fac:Templet):void { //创建模式...
来源: Laya_社区 发布时间: 20170406
...0; var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } //private musicString:string = "./sounds/心跳的证明.mp3"; pr...
来源: Laya_社区 发布时间: 20190421