大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0010 秒)
...ddChild(this.ape1); this.ape1.loadImage(monkey2Path); // 设置轴心点为中心 this.ape1.pivot(55, 72); this.ape1.pos(Laya.stage.width / 2 - gap, Laya.stage.height / 2); // 不设置轴心点默认为左上角 this.ape2 = new Sprite(); Laya.stage.addChild(this.ape2); this.ape2.loadImage(monkey2Pa...
来源: Laya2.0_示例 发布时间: 20251130
...s/ui/button-5.png", "res/ui/button-6.png" ]; // 计算将Button至于舞台中心的偏移量 xOffset = (Laya.stage.width - HORIZONTAL_SPACING * (COLUMNS - 1) - BUTTON_WIDTH) / 2; yOffset = (Laya.stage.height - VERTICAL_SPACING * (skins.length / COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(sk...
来源: Laya2.0_示例 发布时间: 20251130
...8"; this.createApes(); } private createApes(): void { // 每只猩猩距离中心点150像素 var layoutRadius: number = 150; var radianUnit: number = Math.PI / 2; this.apesCtn = new Sprite(); Laya.stage.addChild(this.apesCtn); // 添加4张猩猩图片 for (var i: number = 0; i < 4; i++) { var ape:...
来源: Laya2.0_示例 发布时间: 20251130