dash hud tint

This commit is contained in:
2025-11-07 18:08:09 +02:00
parent 48c7ea2e2a
commit 87a8e07aa3
6 changed files with 89 additions and 52 deletions
+3 -2
View File
@@ -26,8 +26,8 @@ class MotionEngine {
return target;
}
// a = {o-object, a-action, t-time, f-finish event, d-delay, m-mode, r-repeat,
// rd-repeat the delay, rf-reset on finish}
// a = {o-object, a-attributes, t-time, f-finish event, d-delay, m-mode, r-repeat,
// rd-repeat the delay, rf-reset on finish, u-on update}
this.add = function (a) {
a = Array.isArray(a) ? a : [a];
a.forEach(e => {
@@ -84,6 +84,7 @@ class MotionEngine {
}
}
calcValues(e.o, e.a, e.iv, e.ct / e.t, e.m || 'value');
e.u?.();
if (e.ct == e.t && e.r) {
e.ct = e.m == 'offset' ? undefined : 0;
if (e.rd) {