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

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

41. layaAir遮罩问题 [ 80%]

...yaAir遮罩问题 用_headMask.graphics.drawPath(0, 0, Path, {fillStyle: "#ff00ff"}); 画了个100*100的圆角矩形结果遮罩层变成120*120了 附件 : --> HeadImage2.rar 2017-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

42. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 80%]

...his._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOU...

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

43. 点击区域问题 [ 79%]

...Child(sp); sp.x = 250; sp.y = 300; sp.graphics.drawRect(-50,-100,100,100,"#ff0000"); sp.hitArea = new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xfff...

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

44. HTMLDivElement 设置字体 [ 79%]

...l.innerHTML = "<span style='font-weight:bold; font:24px SimHei' color='#ff0000'>欢迎你的加入</span>"             +"<span style='font-weight:bold; font:24px Arial' color='#ff0000'>欢迎你的加入</span>";             this.addChild(html);   201...

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

45. UI-Label [ 79%]

...stage.bgColor = "#232628"; setup(); })(); function setup() { createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLab...

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

46. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 79%]

...e.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58, 100, 78, 0, 97, -100, 117...

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

47. laya.display.cmd.StrokeTextCmd [ 79%]

...perties PropertyDefined By  color : String 定义文本颜色,比如"#ff0000"。 StrokeTextCmd  font : String 定义字体和字号,比如"20px Arial"。 StrokeTextCmd  lineWidth : Number 线条宽度。 StrokeTextCmd  text : String 在画布上输出的文本。 StrokeTextCmd  textAl...

来源: Laya2.0_api 发布时间: 20190513

48. 自己写了个label继承官方的label,出现了问题,求指导~ [ 79%]

...bel(); var textFormat:TextFormat = new TextFormat("Microsoft YaHei", 50, "#FF00FF", true, true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; label.ly = 100; Laya.stage.addChild(label); //-------------------...

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

49. 文本-下划线 [ 79%]

...xts() { createText('left', 1, null, 100, 10); createText('center', 2, "#00BFFF", 155, 150); createText('right', 3, "#FF7F50", 210, 290); } function createText(align, underlineWidth, underlineColor, x, y) { var txt = new Text(); txt.text = "Layabox\n是HTML5引擎技术提供商\n与优秀的游戏...

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

50. UI-Label [ 79%]

...ya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos...

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