大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
... i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.play("hongse_daiji", true); } })); //飞碟 this.genSpine("res/spine/ludo_feidie.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => { //...
来源: Laya_社区 发布时间: 20220530
...kin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: CheckBox): void { checkBox.label = checkBox.selected ? "已...
来源: Laya2.0_示例 发布时间: 20251209
... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...
来源: Laya3.0_文档 发布时间: 20251010
...; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1; for (let x = 0; x < this.outHandPoker.length; x++) { for (let j = 0; j < this....
来源: Laya_社区 发布时间: 20180626
...; //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("...
来源: Laya_社区 发布时间: 20190426
...kin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: CheckBox): void { checkBox.label = checkBox.selected ? "已...
来源: Laya_示例 发布时间: 20251209
...使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { ...
来源: Laya_社区 发布时间: 20171201
..."; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } } } new laya.HelloLayabox(); ```  可以看到3种方法的对文本处理的不同,每种处理都有各自的优缺点,性能比最高的还是hidden。 除了通过对文本...
来源: Laya2.0_文档 发布时间: 20210715
... ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.re...
来源: Laya_社区 发布时间: 20170627
...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...
来源: Laya2.0_文档 发布时间: 20210715