ohzi-core 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,15 +2,16 @@ import { ViewContext } from '../view_components/ViewContext';
|
|
|
2
2
|
|
|
3
3
|
class ActionEvent
|
|
4
4
|
{
|
|
5
|
-
constructor(name, method)
|
|
5
|
+
constructor(name, method, args)
|
|
6
6
|
{
|
|
7
7
|
this.name = name;
|
|
8
8
|
this.method = method;
|
|
9
|
+
this.args = args;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
trigger()
|
|
12
13
|
{
|
|
13
|
-
ViewContext.app[this.name][this.method]();
|
|
14
|
+
ViewContext.app[this.name][this.method](...this.args.split(','));
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -45,7 +45,7 @@ class ActionSequencerBuilder
|
|
|
45
45
|
for (let i = 0; i < triggers.length; i++)
|
|
46
46
|
{
|
|
47
47
|
const t = triggers[i];
|
|
48
|
-
const action_event = new ActionEvent(t.name, t.method);
|
|
48
|
+
const action_event = new ActionEvent(t.name, t.method, t.args);
|
|
49
49
|
sequencer.add_action_event(t.at_time, action_event);
|
|
50
50
|
}
|
|
51
51
|
|