大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
...ics; } onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { l...
来源: Laya2.0_示例 发布时间: 20241118
...var line = 0; //所有的红点数据索引都增加 if (this.redHotStatus.length > 0) { for (let i = 0; i { //更新list数据源 this.refreshList.array = _arr; this.refreshList.scrollTo(line); //将选中索引设定为该索引 this.refreshList.selectedIndex = index; //恢复滚动条到原位 th...
来源: Laya2.0_示例 发布时间: 20241118
... return btn; } private onLoaded(){ for (let index = 0; index < this.btnArr.length; index++) { this.createButton(this.btnArr[index],this.nameArr[index],this._onclick,index); } this._canvas = window.document.getElementById("layaCanvas") as HTMLCanvasElement; this.aimSp = new Sprite(); this.aimSp.size(...
来源: Laya2.0_示例 发布时间: 20241118