大约有 753 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(549) Laya2.0_文档(76) Laya3.0_文档(31) Laya3.0_api(24) laya_api(23) Laya2.0_api(21) Laya2.0_示例(15) Laya_示例(14)
...完整的代码: ```typescript //初始化引擎 Laya.init(100,100); var skins = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,onUIAssetsLoaded)); function onUIAssetsLoaded(){ var btn = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按...
来源: Laya2.0_文档 发布时间: 20210714
...ideo:Laya.Video; constructor() { //初始化引擎 Laya.init(100,100); var skins:any = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐...
来源: Laya2.0_文档 发布时间: 20210715
... Main { public function Main() { //初始化引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //...
来源: Laya2.0_文档 发布时间: 20210715
...ideo:Laya.Video; constructor() { //初始化引擎 Laya.init(100,100); var skins:any = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐...
来源: Laya3.0_文档 发布时间: 20251010
...gAAbgGIBjAI4BOAbgGIBjAM4WyX8DACmu8Uz0WffUAAAAAElFTkSuQmCC'; this._image.skin = PNG_LOADING; 2018-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 玩一玩的问题,需要联系...
来源: Laya_社区 发布时间: 20181031
...小的前面。 > - FillText组件在2.8版本之前只能添加在没有skin填充的空显示节点下,2.8开始,可以添加到任意UI节点下。 ### 二、位图显示文本组件 位图显示文本,是一种基于位图的文本,虽然显示的是文本的内容,其本质还是位...
来源: Laya2.0_文档 发布时间: 20210715
...ml:1 d @ gamePage.html:1 j.onmessage @ gamePage.html:1 2code.js:44963 lose skin images/btn_pause.png VM1768:1 [warn]Retry to load: images/background.png console.warn @ VM1768:1 __proto._endLoad @ code.js:13304 onLoaded @ code.js:13291 (anonymous) @ code.js:13283 __proto.run @ code.js:706 __proto.eve...
来源: Laya_社区 发布时间: 20180531
...width / 2, 0 ); this._doll_img.pos( this.width / 2, y_sp ); this._doll_img.skin = doll_item.img; /** 初始化变量 */ this._to_remove = 0; // 设置终点 // tofix: this.x = BaseUtils.rand_number( this._fly_site.x, this._fly_site.x + this._fly_site.w ); this.y = BaseUtils.rand_number( this._fl...
来源: Laya_社区 发布时间: 20180515
...; 这是转换后的base64 然后我把这个base64数据赋值给图片的skin,然后加载失败了,无法显示图片 2017-09-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 你...
来源: Laya_社区 发布时间: 20170922
...mg = new Laya.Image(); img.size(110, 145); // 设置图片显示大小 img.skin = Laya.Browser.window.URL.createObjectURL(new Blob([uint8Array], { type: 'image/png' })); img.centerX = 0; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(img); } else { console.log("收...
来源: Laya3.0_文档 发布时间: 20251010