大约有 412 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)
Laya_社区(286) Laya2.0_api(75) Laya3.0_文档(23) Laya2.0_文档(19) laya_api(3) Laya3.0_api(2) Laya2.0_示例(2) Laya_示例(2)
...; } } private function TestScrollImage():Image{ var img:Image = new Image("comp/image.png"); img.scrollRect = new Rectangle(0,0,100,100); return img; } private function SetPathArr(ar:Array,path:Sprite):void{ var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i...
来源: Laya_社区 发布时间: 20171129
...提示“再次点击后退键退出游戏”,如果去掉这个提示 comp下的button.png第一次点击进入另一个界面,再在这个界面下点击时点击事件不生效? 碰撞检测 和 sprite问题【js】 初次加载场景正确,返回后只加载第一个场景 viewportPointT...
来源: Laya_社区 发布时间: 20201017
...代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = funct...
来源: Laya3.0_文档 发布时间: 20230303
...this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类型 /...
来源: Laya3.0_文档 发布时间: 20230629
...g”。 例如:现在我们将图3-5中原来的小图 img_head2.png 和 comp 目录下的 image.png 在项目中通过图集的方式显示出来,示例代码如下: let resArr: Array<any> = [ { url: "resources/atlas/Atlas.atlas", type: Laya.Loader.ATLAS }, { url: "resources/atlas/Atlas...
来源: Laya3.0_文档 发布时间: 20240926
... private beginLoad():void{ Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd:1, ...
来源: Laya_社区 发布时间: 20180529
... ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210715
...wake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn.labelSize = 20; //文本标签字体大小 this.btn.label...
来源: Laya3.0_文档 发布时间: 20231019
... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210714
... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210714