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

@@ -37,7 +37,6 @@ export class Checklist {
this.updateRow(this.Rows.CAMERAUNITYSTREAM, status.CAMERAUNITYSTREAM);
this.updateRow(this.Rows.UNITYBUILD, status.UNITYBUILD);
this.updateRow(this.Rows.REPLAYFUNCTION, status.REPLAYFUNCTION);
console.log('Updated checklist:', status);
}
updateRow(row: HTMLDivElement, state: StateEntry) {

View File

@@ -0,0 +1,19 @@
import { Main } from './main';
export class Lighting {
private _Main: Main;
gainInput: HTMLInputElement = document.querySelector(
'.ntsh_lightingsettings-gain',
);
exposureInput: HTMLInputElement = document.querySelector(
'.ntsh_lightingsettings-exposure',
);
whiteBalanceInput: HTMLInputElement = document.querySelector(
'.ntsh_lightingsettings-whitebalance',
);
constructor(Main: Main) {
this._Main = Main;
}
}

View File

@@ -5,6 +5,8 @@ import { Calibration } from './calibration';
import { ce, MorphComponent, MorphFeature } from 'morphux';
import { OutOfServiceMode } from './outOfServiceMode';
import { Timer } from './timer';
import { Lighting } from './lighting';
import { Sound } from './sound';
const socket = io('/');
@@ -14,6 +16,8 @@ export class Main {
Calibration = new Calibration(this);
OutOfServiceMode = new OutOfServiceMode(this);
Timer = new Timer(this);
Lighting = new Lighting(this);
Sound = new Sound(this);
socket = socket;

View File

@@ -0,0 +1,22 @@
import { Main } from './main';
export class Sound {
private _Main: Main;
volumeInput: HTMLInputElement = document.querySelector(
'.ntsh_soundsettings-volume',
);
eqLowInput: HTMLInputElement = document.querySelector(
'.ntsh_soundsettings-eqlow',
);
eqMidInput: HTMLInputElement = document.querySelector(
'.ntsh_soundsettings-eqmid',
);
eqHighInput: HTMLInputElement = document.querySelector(
'.ntsh_soundsettings-eqhigh',
);
constructor(Main: Main) {
this._Main = Main;
}
}