大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
...ioGroup_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/radio.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var radioGroup:RadioGro...
来源: Laya3.0_api 发布时间: 20231115
...nLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20170725
....init(1136, 640, WebGL); Laya.stage.bgColor = "#ffffff"; //以500毫秒的时间间隔播放颜色切换的矩形 Laya.timer.loop(500, this, createRect); })(); fu...
来源: Laya_社区 发布时间: 20170510
... var aDia:aDialog = new aDialog("登陆"); aDia.popup(true); Laya.stage.addChild(aDia); }) 附件 : --> 2017-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: Laya.stage.add...
来源: Laya_社区 发布时间: 20171217
...omboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...
来源: Laya3.0_api 发布时间: 20231115
第二次截屏不完整的问题 this.ui.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas().toDataURL() 第一次截图正常, 第二次截图就只有左下角一小块 同一个界面反复界面反复截图是没问题,界面重新创建之后就有问题了 附件 : --> 20...
来源: Laya_社区 发布时间: 20180803
...ion 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 { var tab:Tab = new Tab();/...
来源: Laya3.0_api 发布时间: 20231115
..."); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani...
来源: Laya_社区 发布时间: 20170329
...deo.pos(0,0); video.load("https://game.ruanmengkeji.com/ ... 6quot;); Laya.stage.addChild(video) 在一个界面中加入如上代码 video 没有显示 点击空白 this.videoElement.play is not a function TypeError: this.videoElement.play is not a function 2019-03-12 添加评论 免...
来源: Laya_社区 发布时间: 20190312
...loadedMap"]; Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show(0,0); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.scaleMode = "fixedwidth"; console.log("iswebgl:", Laya.Render.isWebGL); } public Load() { Laya.loader.load(NewTest.url, null, null, null, 0, true); } publi...
来源: Laya_社区 发布时间: 20181018