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

大约有 64 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0080 秒)

1. laya.display.Stage_API3.0 [ 100%]

...Height designHeight: number = 0 Defined in laya/display/Stage.ts:122 设计高度(初始化时设置的高度Laya.init(width,height)) designWidth designWidth: number = 0 Defined in laya/display/Stage.ts:120 设计宽度(初始化时设置的宽度Laya.init(width,height)) focus focus: Node De...

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

2. laya.display.Text_API3.0 [ 94%]

....width = 300;//设置 text 的宽度。 text.height = 200;//设置 text高度text.italic = true;//设置 text 的文本显示为斜体。 text.borderColor = "#fff000";//设置 text 的文本边框颜色。 Laya.stage.addChild(text);//将 text 添加到显示列表。 } } } example Text_Examp...

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

3. laya.ui.Label_API3.0 [ 90%]

...dth = 300;//设置 label 的宽度。 label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到我心里话。");//创建一个 Label 类的实例对象 passwordLabel 。 pa...

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

4. laya.ui.TextInput_API3.0 [ 89%]

...设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["re...

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

5. laya.ui.TextArea_API3.0 [ 89%]

...;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loa...

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

6. laya.ui.ProgressBar_API3.0 [ 89%]

... progressBar 的宽度。 progressBar.height = 50;//设置 progressBar 的高度。 progressBar.sizeGrid = "5,10,5,10";//设置 progressBar 的网格信息。 progressBar.changeHandler = new Handler(this, onChange);//设置 progressBar 的value值改变时执行的处理器。 Laya.stage.addChild(pr...

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

7. laya.ui.Image_API3.0 [ 89%]

... = 150;//设置 bg 对象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 Image 类的实例对象 image ,并传入它的皮肤。 image.x = 100;//设置 ...

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

8. laya.ui.Clip_API3.0 [ 88%]

...横向分割每个切片的宽度 clipWidth 、竖向分割每个切片的高度 clipHeight , 从左向右,从上到下,分割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其他UI组件均不支持异步加载...

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

9. laya.display.Input_API3.0 [ 88%]

...om Text.displayHeight Defined in laya/display/Sprite.ts:563 对象的显示高度(以像素为单位)。 Returns number displayWidth get displayWidth(): number Inherited from Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number d...

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

10. laya.ui.Tree_API3.0 [ 88%]

....width = 200;//设置 tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right =...

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