mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Retain "Record" button's pressed state when close and reopen dialog
This commit is contained in:
parent
45ca8438fa
commit
ff42715a15
2 changed files with 11 additions and 0 deletions
|
@ -154,6 +154,12 @@ function onScriptEventReceived(data) {
|
|||
case FINISH_ON_OPEN_ACTION:
|
||||
elFinishOnOpen.checked = message.value;
|
||||
break;
|
||||
case START_RECORDING_ACTION:
|
||||
isRecording = message.value;
|
||||
if (isRecording) {
|
||||
elRecordButton.classList.add("pressed");
|
||||
}
|
||||
break;
|
||||
case RECORDINGS_BEING_PLAYED_ACTION:
|
||||
recordingsBeingPlayed = JSON.parse(message.value);
|
||||
updateRecordings();
|
||||
|
|
|
@ -424,6 +424,11 @@
|
|||
action: NUMBER_OF_PLAYERS_ACTION,
|
||||
value: Player.numberOfPlayers()
|
||||
}));
|
||||
tablet.emitScriptEvent(JSON.stringify({
|
||||
type: EVENT_BRIDGE_TYPE,
|
||||
action: START_RECORDING_ACTION,
|
||||
value: !Recorder.isIdle()
|
||||
}));
|
||||
break;
|
||||
case STOP_PLAYING_RECORDING_ACTION:
|
||||
// Stop the specified player.
|
||||
|
|
Loading…
Reference in a new issue