大约有 10 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0028 秒)
...ha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth, this.viewHeight, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.scaleMode = Stage.SCALE_NOBO...
来源: Laya2.0_示例 发布时间: 20241118
...(tTexture, arraybuffer, 10); } private parseComplete(): void { for (var i: number = 0; i = tAnimNum) { this.mActionIndex = 0; } for (var i: number = 0, n: number = this.mAnimationArray.length; i = tAnimNum) { mActionIndex = 0; } for (var i:int = 0, n:int = mAnimationArray.length; i < n; i++) { mAnim...
来源: Laya2.0_示例 发布时间: 20241118
...new DOM_Form();class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya....
来源: Laya2.0_示例 发布时间: 20241118
...用于处理单元格上的点击事件等 */ onListMouse(e: Event, index: number): void { console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(...
来源: Laya2.0_示例 发布时间: 20241118
...te(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的数据 var xml:any = Utils.parseXMLFromString(treeData); var tree: Tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"...
来源: Laya2.0_示例 发布时间: 20241118
...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...
来源: Laya2.0_示例 发布时间: 20241118
...st赋值,先获得一个数据源数组 var arr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.rend...
来源: Laya2.0_示例 发布时间: 20200319
...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...
来源: Laya2.0_示例 发布时间: 20241118
...gl.WebGL; public class Physics_Physics_CollisionEvent { private var count: Number = 7; private var sensorCollider: CircleCollider; private var bodys: Array = []; private var touching: Array = []; public function Physics_CollisionEvent() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); ...
来源: Laya2.0_示例 发布时间: 20241118
...bVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio: number = 0.5; const frequencyHz: number = 10.0; let distanceJoint1: DistanceJoint = new DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); ...
来源: Laya2.0_示例 发布时间: 20241118