附件重新上传了一遍,麻烦看一下这个附件
主要就是让进度条等于0
var w: number = 642;
var h: number = 12;
var g: Laya.Graphics = this._mask.graphics;
g.clear();
if (w == 0 || h == 0)
return;
var points: any[] = [];
points.push(0, h);
points.push(0, 0);
points.push(this._index, 0);
points.push(this._index, h);
// points.push(0, h);
g.drawPoly(0, 0, points, "#FFFFFF");
this._fguiPro.value = Math.floor(this._index / w * 100);
this._index += 8; //移动到这里if (this._index >= 642)
{
this._index = 0;
}