fix: handle MIST movie timer actions and verify skipping
This commit is contained in:
1 parent
11f87df712
commit
11d769f466
3 files changed
+25
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user