大约有 146 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0034 秒)
...or = "#232628"; this.createApes(); } private createApes(): void { var gap: number = 300; this.sp1 = new Sprite(); this.sp1.loadImage("../../res/apes/monkey2.png", 0, 0); this.sp1.pos((Laya.stage.width - gap) / 2, Laya.stage.height / 2); //设置轴心点为中心 this.sp1.pivot(55, 72); Laya.stage.a...
来源: Laya_示例 发布时间: 20241117
...de:any = xml.firstChild; var nodes:Array = rootNode.childNodes; for (var i:number = 0; i item aitem bsomethis..."; var xmlValue:String = "item aitem bsomethings..."; proessXML(xmlValueContainsError); trace("\n"); proessXML(xmlValue); } // 使用xml private function proessXML(source:String):void { tr...
来源: Laya2.0_示例 发布时间: 20241117
...or = "#232628"; this.createApes(); } private createApes(): void { var gap: number = 300; this.sp1 = new Sprite(); this.sp1.loadImage("res/apes/monkey2.png", 0, 0); this.sp1.pos((Laya.stage.width - gap) / 2, Laya.stage.height / 2); //设置轴心点为中心 this.sp1.pivot(55, 72); Laya.stage.addChil...
来源: Laya2.0_示例 发布时间: 20241117
...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...
来源: Laya_示例 发布时间: 20241117
...[];//创建一个数组,用于存贮列表的数据信息。 for (var i: number = 0; i < 20; i++) { arr.push({ label: "item" + i }); } var list: List = new List();//创建一个 List 类的实例对象 list 。 list.itemRender = Item;//设置 list 的单元格渲染器。 list.repeatX = 1;//设...
来源: Laya3.0_api 发布时间: 20231115
...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...
来源: Laya2.0_示例 发布时间: 20241117
..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...
来源: Laya_示例 发布时间: 20241117
...meshSprite: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; for (var i: number = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat: Laya.StandardMaterial = meshSprite.meshRender.sharedMaterials[i] as Laya.StandardMaterial; mat.disableLight(); } } for (var i: number = 0; i < spir...
来源: Laya_示例 发布时间: 20241117
..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...
来源: Laya2.0_示例 发布时间: 20241117
...序入口 class GameMain{ private tMap:Laya.TiledMap; private scaleValue:number = 0; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建Tiled...
来源: Laya2.0_文档 发布时间: 20210715