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

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

1321. laya.ui.HSlider_API3.0 [ 23%]

...戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hSlider = new HSlider();//创建一个 HS...

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

1322. laya.ui.VSlider_API3.0 [ 23%]

...戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { vSlider = new VSlider();//创建一个 VS...

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

1323. laya.ui.Image_API3.0 [ 23%]

...戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,用于...

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

1324. laya.ui.Dialog_API3.0 [ 22%]

...、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实...

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

1325. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 22%]

... ![图11-2](img/11-2.png) (图11-2) 特别说明一下,背景屏幕颜色为黑色的是画布默认背景色,是stage背景色。通过`Laya.stage.bgColor`可以改变默认的画布背景色。在noscale模式下的白屏背景那是浏览器默认的,说明画布就那么大,画布...

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

1326. 【简单跑酷--JS版】---Lv.6 终篇 [ 20%]

...据我们的UI来分析一下 其实两个能量条都是一样的 只是颜色一样 那我们可以只写一个HP.js 来实现两个能量条的功能,我们创建一个Hp.js  代码如下  (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = n...

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

1327. laya.display.Stage_API3.0 [ 19%]

...r(value: string): void Defined in laya/display/Stage.ts:675 舞台的背景颜色,默认为黑色,null为透明。 Returns string Defined in laya/display/Stage.ts:679 舞台的背景颜色,默认为黑色,null为透明。 Parameters value: string Returns void blendMode get blendMode(): strin...

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

1328. laya.ui.ScaleBox_API3.0 [ 19%]

...tring): void Inherited from Box.bgColor Defined in laya/ui/Box.ts:25 背景颜色 Returns string Inherited from Box.bgColor Defined in laya/ui/Box.ts:29 背景颜色 Parameters value: string Returns void blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMo...

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

1329. laya.ui.Box_API3.0 [ 19%]

...string set bgColor(value: string): void Defined in laya/ui/Box.ts:25 背景颜色 Returns string Defined in laya/ui/Box.ts:29 背景颜色 Parameters value: string Returns void blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMode Defined in laya/display/...

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

1330. laya.ui.LayoutBox_API3.0 [ 19%]

...tring): void Inherited from Box.bgColor Defined in laya/ui/Box.ts:25 背景颜色 Returns string Inherited from Box.bgColor Defined in laya/ui/Box.ts:29 背景颜色 Parameters value: string Returns void blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMo...

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