大约有 169 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0080 秒)
Laya_社区(119) Laya3.0_api(26) Laya2.0_文档(9) Laya3.0_文档(7) Laya2.0_api(3) Laya_示例(2) Laya2.0_示例(2) laya_api(1)
... Tab_Example { public function Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void ...
来源: Laya3.0_api 发布时间: 20231115
...ge_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并...
来源: Laya3.0_api 发布时间: 20231115
...g_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onL...
来源: Laya3.0_api 发布时间: 20231115
...le { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vsc...
来源: Laya3.0_api 发布时间: 20231115
...xample { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoa...
来源: Laya3.0_api 发布时间: 20231115
...rtJump isSupportJump(): boolean Defined in laya/ui/AdvImage.ts:72 当前小游戏环境是否支持游戏跳转功能 Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from AnimationBase.loadImage Defined in laya/display/Sprite.ts:1520 加载并显示一个图片...
来源: Laya3.0_api 发布时间: 20231102
...Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():voi...
来源: Laya3.0_api 发布时间: 20231115
...t miniGameTxt(value: string): void Defined in laya/display/Input.ts:429 小游戏专用(解决键盘输入框内容和游戏输入框内容不同步的bug) Parameters value: string Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Funct...
来源: Laya3.0_api 发布时间: 20231115
...= 0; arrow.y = 5; addChild(arrow); } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var res = ["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png",...
来源: Laya3.0_api 发布时间: 20231115