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

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

631. laya.ui.CheckBox_API3.0 [ 28%]

...ya.ui.CheckBox; import Handler=laya.utils.Handler; class CheckBox_Example{ constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,this.onLoadComplete));//加载资源。 } private onLoadComple...

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

632. laya.ui.ColorPicker_API3.0 [ 28%]

...orPicker; import Handler = laya.utils.Handler; class ColorPicker_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this, this.onLoadComplete));//加载...

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

633. laya.ui.View_API3.0 [ 28%]

...所以在3.0里请忽略这个继承。 Hierarchy Scene View Dialog Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet activ...

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

634. laya.ui.HSlider_API3.0 [ 28%]

...lider = laya.ui.HSlider; class HSlider_Example { private hSlider: HSlider; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(thi...

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

635. laya.ui.ViewStack_API3.0 [ 28%]

...,用于视图的显示等设置处理。 Hierarchy Box ViewStack Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColo...

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

636. laya.ui.Clip_API3.0 [ 28%]

...ort Handler = laya.utils.Handler; class Clip_Example { private clip: Clip; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { this.clip = new Clip("resource/ui/clip_num.png", 10, ...

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

637. laya.ui.ComboBox_API3.0 [ 28%]

...ui.ComboBox; import Handler = laya.utils.Handler; class ComboBox_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this, this.onLoadComplete));//加载...

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

638. laya.ui.Label_API3.0 [ 28%]

...示列表。 } example import Label = laya.ui.Label; class Label_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var label: Label = new Label();//创建一个 Label ...

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

639. laya.ui.Tab_API3.0 [ 28%]

...ab = laya.ui.Tab; import Handler = laya.utils.Handler; class Tab_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, this.onLoadComplete));//加载...

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

640. laya.ui.Image_API3.0 [ 28%]

...此 image 对象添加到显示列表。 } example class Image_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/...

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