大约有 226 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
Laya_社区(171) Laya2.0_示例(20) Laya_示例(18) Laya2.0_文档(9) Laya3.0_api(3) Laya3.0_文档(3) laya_api(1) Laya2.0_api(1)
...rite, Event = Laya.Event; let coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRect.on(Even...
来源: Laya2.0_示例 发布时间: 20241118
... var blue:Sprite = new Sprite(); blue.graphics.drawRect(0, 0, 500, 500, "#004080"); blue.pos(150, 150); blue.size(500, 500); blue.on("click", this, onClick); Laya.stage.addChild(blue); ...
来源: Laya_社区 发布时间: 20161122
...ar h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (stageWd) * 0.5 , (stageHt - h) * 0.5-43, "25px SimHei", "#FFFFFF", "center"); //dialog_mc.addChild(btn); Laya.stage.add...
来源: Laya_社区 发布时间: 20170120
...景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠...
来源: Laya_示例 发布时间: 20241118
...cs:Graphics=new Graphics(); graphics.save(); graphics.alpha(0.5); graphics.drawRect(0,0,200,100,"#FF0000"); graphics.restore(); sp.graphics=graphics; Laya.stage.addChild(sp);实现graphics填充透明,请先对graphics进行save(),然后设置填充透明度值,其次绘制矢量图形,最后...
来源: Laya_社区 发布时间: 20161130
...guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionArea); // ...
来源: Laya2.0_示例 发布时间: 20241118
...wser.clientHeight/2); Laya.stage.addChild(this.aimSp); this.aimSp.graphics.drawRect(0,0,this.aimSp.width,this.aimSp.height,"#333333"); this.monkeyTexture = Laya.loader.getRes("res/apes/monkey3.png"); this.aimSp.graphics.drawTexture(this.monkeyTexture,0,0,this.monkeyTexture.width,this.monkeyTexture.h...
来源: Laya2.0_示例 发布时间: 20241118
...ing888 • 2017-03-30 11:20 var containr = new Sprite(); containr.graphics.drawRect(0,0,200,200,'#ff0000') containr.size(200,200); containr.pivot(100,100); containr.x = 200 containr.y = 200 senceLayer.addChild(containr); var rect = new Rectangle(0,0,200,200); containr.scrollRect = rect; var itemCont...
来源: Laya_社区 发布时间: 20170329
... top_rect.size(100, 100); top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1); Laya.stage.addChild(top_rect); let rect_bottom: Laya.Sprite = new Laya.Sprite(); rect_bottom.x = 0; rect_b...
来源: Laya_社区 发布时间: 20190730
...黄色区域 this.graphics.save(); this.graphics.alpha(0.5); this.graphics.drawRect(-40, -110, 80, 110, "#ffcc00"); this.graphics.restore(); //再画一个红色小半透明区域 this.graphics.save(); this.graphics.alpha(0.7); this.graphics.drawRect(40, -110, 80, 110, "#ff0000"); this.graphics.rest...
来源: Laya_社区 发布时间: 20161228