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

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

51. laya.ui.CheckBox [ 72%]

...方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,默认该标签位于 CheckBox 右侧。 CheckBox 使用 dataSource赋值时的的默认属性是:selected。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined...

来源: laya_api 发布时间: 20170929

52. laya.display.Text [ 72%]

...Dispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定的字体,则用系统默认的字体渲染文字,从而导致显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)...

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

53. laya.display.Graphics_API3.0 [ 72%]

... laya/display/Graphics.ts:332 在画布上绘制“被填充且镶边的”文本。 Parameters text: string | WordText 在画布上输出的文本。 x: number 开始绘制文本的 x 坐标位置(相对于画布)。 y: number 开始绘制文本的 y 坐标位置(相对于画布)。 font: s...

来源: Laya3.0_api 发布时间: 20231115

54. 屏幕适配-屏幕适配 [ 71%]

...ew Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); this.txt.fontSize = 30; this.txt.on("click", this, this.onTxtClick); Laya.stage.addChild(this.t...

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

55. laya.ui.Button [ 71%]

...io Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 可以是单态,两态和三态,默认三态(up,over,down)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : ...

来源: laya_api 发布时间: 20170929

56. laya.ui.UIGroup [ 71%]

... 项对象们的存放数组。 UIGroup  labelBold : Boolean 表示按钮文本标签是否为粗体字。 UIGroup  labelColors : StringUIGroup  labelFont : String 表示按钮文本标签的字体名称,以字符串形式表示。 UIGroup  labelPadding : String 表示按钮文本标签的...

来源: laya_api 发布时间: 20170929

57. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...on组件 按钮(Button)组件是最常用的组件之一,可以显示文本标签、图标或者两者同时显示。在LayaAir IDE里的按钮图片(皮肤)资源命名通常是以btn为前缀。Button 组件的属性接口介绍请参考 Button API。 1.1 创建Button组件 使用LayaAir...

来源: Laya3.0_文档 发布时间: 20251010

58. label在IDE、浏览器、app看到的文字位置不一致 [ 71%]

...复 cuixueying 赞同来自: 你试下华文行楷看下,或者设置下文本的上对齐,因为不同的浏览器下不同的文字类型的兼容性不同,会导致对齐偏下的问题! 2017-09-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

59. laya.ani.GraphicsAni_API3.0 [ 70%]

... laya/display/Graphics.ts:332 在画布上绘制“被填充且镶边的”文本。 Parameters text: string | WordText 在画布上输出的文本。 x: number 开始绘制文本的 x 坐标位置(相对于画布)。 y: number 开始绘制文本的 y 坐标位置(相对于画布)。 font: s...

来源: Laya3.0_api 发布时间: 20231115

60. laya.ui.Radio [ 70%]

... : String图标x,y偏移,格式:100,100Button label : String 按钮的文本内容。 Button labelAlign : String标签对齐模式,默认为居中对齐。Button labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button labelColors : String 表示按钮各个状态下的文...

来源: laya_api 发布时间: 20170929