大约有 152 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0091 秒)
...el_Example { public function Label_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var label:Label = new Label();//创建一个 Label 类的实例对象 label 。...
来源: Laya3.0_api 发布时间: 20231115
... 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
...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
...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
...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
...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Stage setSelfBounds(bound:Rectangle):void 设置对象bounds大小,如果有设置,则不再通过getBounds计算,合理使用能提高性能。 Sprite size(width:Number, height:Number):Sprite...
来源: Laya2.0_api 发布时间: 20190513
...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
...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Parameters screenWidth: number 屏幕宽度。 screenHeight: number 屏幕高度。 Returns void setScreenSizeForScene setScreenSizeForScene(screenWidth: number, screenHeight: number, _screenMode: str...
来源: Laya3.0_api 发布时间: 20231115