fix: handle MIST movie timer actions and verify skipping
CI / frontend (push) Failing after 18s
CI / backend (push) Failing after 34s

This commit is contained in:
mrleo1nid committed 2026-10-26 22:41:19 +03:00
1 parent 11f87df712
commit 11d769f466
3 files changed
+25 -2

No files matched your search

+6 -1
View File
@@ -2046,7 +2046,12 @@ export class ScreenManager {
Image: shape("image"),
AlphaMask: shape("alphamask"),
};
out.If = (condition: any, yes: any = null, no: any = null) => (truthy(condition) ? yes : no);
out.If = (...a: any[]) => {
const kw = kwOf(a), args = a.filter((value) => !value?.__kw);
const condition = args.length ? args[0] : kw.expression;
return truthy(condition) ? (args.length > 1 ? args[1] : kw.true ?? null)
: (args.length > 2 ? args[2] : kw.false ?? null);
};
out.GetTooltip = () => this.tooltip;
out.StaticValue = (value: number, range = 1) => new BarValue(() => value, () => range);
out.AnimatedValue = out.StaticValue;