Collective moment Diversion time in seconds
This commit is contained in:
parent
e66f3dddac
commit
1e76c44862
2 changed files with 7 additions and 7 deletions
|
@ -912,7 +912,7 @@ class Diversion(object):
|
||||||
# only when changing chapter
|
# only when changing chapter
|
||||||
return
|
return
|
||||||
|
|
||||||
window_open_second = float(self.params['start_minute']) * 60
|
window_open_second = float(self.params['start_second'])
|
||||||
window_close_second = window_open_second + float(self.params['window'])
|
window_close_second = window_open_second + float(self.params['window'])
|
||||||
|
|
||||||
now = story.hugvey.command.timer.getElapsed()
|
now = story.hugvey.command.timer.getElapsed()
|
||||||
|
|
|
@ -418,7 +418,7 @@ class Graph {
|
||||||
div['params']['regex'] = "can you repeat that\\?";
|
div['params']['regex'] = "can you repeat that\\?";
|
||||||
}
|
}
|
||||||
else if(type == 'collective_moment') {
|
else if(type == 'collective_moment') {
|
||||||
div['params']['start_minute'] = 20; // minute to start
|
div['params']['start_second'] = 20 * 60; // second to start
|
||||||
div['params']['window'] = 60; // how long to wait, in seconds
|
div['params']['window'] = 60; // how long to wait, in seconds
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -673,15 +673,15 @@ class Graph {
|
||||||
'click': (e) => this.deleteDiversion(div)
|
'click': (e) => this.deleteDiversion(div)
|
||||||
}
|
}
|
||||||
}, 'Delete diversion'),
|
}, 'Delete diversion'),
|
||||||
crel('label', 'Start time (minute)',
|
crel('label', 'Start time (seconds)',
|
||||||
crel('input', {
|
crel('input', {
|
||||||
'type': 'number',
|
'type': 'number',
|
||||||
'max': 59,
|
// 'max': 59,
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'value': div['params']['start_minute'],
|
'value': div['params']['start_second'],
|
||||||
'placeholder': 'time (minute)',
|
'placeholder': 'time in loop (seconds)',
|
||||||
'on': {
|
'on': {
|
||||||
'change': (e) => div['params']['start_minute'] = e.target.value
|
'change': (e) => div['params']['start_second'] = e.target.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue