More work on UI

This commit is contained in:
2026-03-13 14:36:11 +01:00
parent c4eedfff1e
commit 1ce7dfa057
24 changed files with 262 additions and 27 deletions

View File

@@ -194,6 +194,13 @@ var UnityWebSocket = /** @class */ (function () {
catch (error) {
return;
}
// writeFileSync(
// join(
// this._Main.dataPath,
// `tempdebug-${message.type}-${new Date().getTime()}.json`,
// ),
// JSON.stringify(message, null, 4),
// );
switch (message.type) {
case 'heartbeat_data':
this.parameters.timelineWatching =
@@ -225,6 +232,11 @@ var UnityWebSocket = /** @class */ (function () {
this.updateStatus();
this.broadcastState();
break;
case 'timeline_update':
var playbackReady = message.value == 1;
this._Main.Status.update(Status_1.StatusType.ReplayFunction, playbackReady ? Status_1.State.Green : Status_1.State.Yellow, playbackReady ? 'Playback ready' : 'Playback not ready');
console.log('timeline_update', message);
break;
case 'response_camera_frame':
this._Main.WebServer.Calibration.writeCalibrationImage(message.imageBase64);
break;
@@ -289,7 +301,7 @@ var UnityWebSocket = /** @class */ (function () {
this.restartRequested = false;
this.disconnected = false;
this.stopFetchClocks();
this.setInfo('Connecting...', null, 'CONNECTING');
this.setInfo("Connecting to ".concat(this._Main.Config.unity.webSocket.ip, ":").concat(this._Main.Config.unity.webSocket.port, "..."), null, 'CONNECTING');
return [4 /*yield*/, (0, Utils_1.delay)(1000)];
case 1:
_a.sent();