• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)

11. hitArea怎么用 [ 92%]

...ner = new Sprite();         container.graphics.drawRect(0,0,640,1136,'#ff0000');         container.size(640,1136)         Laya.stage.addChild(container);                       var bg2Sprite =  new Sprite();         bg2Sprite.graphics.drawRect(0,0,640,1136,'#ff0000');   ...

来源: Laya_社区 发布时间: 20170223

12. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 92%]

...s(250,200); redBox.autoSize = true; redBox.graphics.drawRect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox....

来源: Laya_社区 发布时间: 20170710

13. 文本-复杂的文本样式 [ 92%]

...= "center"; txt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "#ffffff"; txt.borderColor = "#00ff00" txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHei...

来源: Laya_示例 发布时间: 20251130

14. 文本-复杂的文本样式 [ 92%]

...= "center"; txt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "#ffffff"; txt.borderColor = "#00ff00"; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHe...

来源: Laya2.0_示例 发布时间: 20251130

15. graphics drawPath drawLine 鼠标 画笔 画线 锯齿 [ 90%]

...[ ["moveTo", p.x,p.y], ["lineTo", e.stageX,e.stageY] ],null,{strokeStyle:"#ff0000",lineWidth:15,lineJoin:"round",lineCap:"round"}); //*/ //this.cls.graphics.drawLine(this.startPoint.x,this.startPoint.y,e.stageX,e.stageY,"#ff0000",15); this.startPoint= new Laya.Point(e.stageX,e.stageY); } 鼠标任...

来源: Laya_社区 发布时间: 20220920

16. 类似抠图、挖空效果的实现 [ 90%]

...new Sprite();             red.graphics.drawRect(0, 0, 500, 500, "#ff0000");                         box.addChild(red);                          //绘制一个圆形区域,利用叠加模式,抠除上面红色区域             var circle:Spri...

来源: Laya_社区 发布时间: 20161122

17. laya2.0版本,富文本HTMLDivElement中<p>标签里使用<br />标签时报错,在<span>里也不行 [ 89%]

...也不能旋转 4.最新的2.2.0beta3下载后放到项目中报错laya.effect.js中的laya未定义   附件 : --> htmlDiv.zip 2019-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: /...

来源: Laya_社区 发布时间: 20190815

18. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 89%]

...Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar=[[150,160],[10,80],[150,0],[300,80]]; this.text.text="房号:1000000\n底分:222222\n玩法:看牌抢庄" this.jushu = new Text()...

来源: Laya_社区 发布时间: 20170920

19. LayaAir引擎与原生Flash的差异文档说明! [ 88%]

...: 1、静态遮罩 var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask2、动态...

来源: Laya_社区 发布时间: 20170207

20. 关于富文本解析问题 [ 87%]

...关于富文本解析问题 以下这段代码   &lt;span style="color:#00ff00"&gt; 我在 &lt;font color='#00BFFF'&gt;芜湖&lt;/font&gt; 击杀 &lt;font color='#ff0000'&gt; 世界BOSS&lt;/font&gt; &lt;font color='#ff0000'&gt; 大司马&lt;/font&gt; ,掉落珍貴的  &lt;font size="14"&gt;红...

来源: Laya_社区 发布时间: 20180404