fix
This commit is contained in:
@@ -321,12 +321,14 @@ class Updater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function update(?_):Void {
|
public function update(?_):Void {
|
||||||
try {
|
|
||||||
while (invalidated.length > 0) {
|
while (invalidated.length > 0) {
|
||||||
invalidated.shift().update();
|
var v = null;
|
||||||
}
|
try {
|
||||||
} catch (error:Dynamic) {
|
v = invalidated.shift();
|
||||||
L.e("UPDATE", "", error);
|
v.update();
|
||||||
|
} catch (error:Dynamic) {
|
||||||
|
L.e("Update", v + "", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class ProgressSkin implements ISkin<Sprite, ProgressView> {
|
|||||||
graphics.beginFill(backColor);
|
graphics.beginFill(backColor);
|
||||||
graphics.drawRect(0, 0, view.width, view.height);
|
graphics.drawRect(0, 0, view.width, view.height);
|
||||||
graphics.beginFill(foreColor);
|
graphics.beginFill(foreColor);
|
||||||
graphics.drawRect(0, 0, view.width * (view.value / view.max), view.height);
|
graphics.drawRect(0, 0, view.width * (view.max > 0 ? view.value / view.max : 0), view.height);
|
||||||
graphics.endFill();
|
graphics.endFill();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user