大约有 310 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(147) Laya2.0_文档(45) Laya_示例(35) Laya2.0_示例(32) Laya3.0_文档(17) Laya3.0_api(16) Laya2.0_api(11) laya_api(7)
... this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1); } y 如果 y+=this._charSize.height/2; 就是中划线 可以自己加个变量 控制 例如 linethrough 如果是 true的时候 y+=this._charSize.height/2; false 就...
来源: Laya_社区 发布时间: 20171019
...false, false]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event....
来源: Laya_社区 发布时间: 20200410
...i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190531
...一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.tra...
来源: Laya_社区 发布时间: 20181015
...此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):DrawCurvesCmd 绘制一系列曲线。 Graphics d...
来源: Laya2.0_api 发布时间: 20190513
...); //设置文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一些其他的字体样式,粗体、斜...
来源: Laya2.0_文档 发布时间: 20210714
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height...
来源: Laya_示例 发布时间: 20251130
...| -------------------------------- | | text | 文本内容字符串。 | | color | 文本的颜色值。默认为黑色。 | | bold | 文本是否为粗体字显示。 | | font | 文本的字体名称。 | | fontSize | 文本的字体大小。 | | align | 文本的水平对齐方式。可选值有le...
来源: Laya2.0_文档 发布时间: 20210714
...-03-27 13:14 var Text = new HTMLDivElement(); barWrap.addChild(Text); Text.color = "#fff"; Text.style.fontSize = 24; Text.innerHTML = "子弹命中率:<span style='color: #ee452c'>50</span>\/100 50%"; Text.pos(480, 20); 我 innerHTML 里的内容太长时会换行...
来源: Laya_社区 发布时间: 20170324
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height...
来源: Laya_示例 发布时间: 20251130