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

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

71. Text的中划线(删除线) [ 83%]

...         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

72. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 83%]

...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

73. 渲染性能实例问题 [ 82%]

...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

74. 用Transform和直接设置xy坐标的效果不一致 [ 82%]

...一致的。 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

75. laya.display.Graphics [ 82%]

...此对象。 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

76. 文本基础样式(JavaScript-LayaAir基础篇(JS)-文本) [ 82%]

...); //设置文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一些其他的字体样式,粗体、斜...

来源: Laya2.0_文档 发布时间: 20210714

77. 文本-字数限制 [ 81%]

...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

78. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 81%]

...| -------------------------------- | | text | 文本内容字符串。 | | color | 文本的颜色值。默认为黑色。 | | bold | 文本是否为粗体字显示。 | | font | 文本的字体名称。 | | fontSize | 文本的字体大小。 | | align | 文本的水平对齐方式。可选值有le...

来源: Laya2.0_文档 发布时间: 20210714

79. 使用 HTMLDivElement 时,如果有文字和数字同时存在的话,会对不齐,且会换行 [ 81%]

...-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

80. 文本-单行输入 [ 81%]

...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