removed hard coded shader start up
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m27s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
Aiden
2026-05-30 20:57:01 +10:00
parent 0f3db3ba1b
commit 067c606092
13 changed files with 62 additions and 20 deletions

View File

@@ -50,6 +50,19 @@ function TextField({ config, label, path, setConfig }) {
);
}
function OptionalTextField({ config, label, path, placeholder, setConfig }) {
return (
<Field label={label}>
<input
type="text"
value={readPath(config, path) ?? ""}
placeholder={placeholder}
onChange={(event) => setConfig((current) => writePath(current, path, event.target.value))}
/>
</Field>
);
}
function InputDeviceField({
config,
manualOpen,
@@ -397,7 +410,13 @@ export function ConfigEditor({ onClose }) {
<h4>Runtime</h4>
<div className="config-fields config-fields--wide">
<TextField config={draft} label="Shader library" path="shaderLibrary" setConfig={setDraft} />
<TextField config={draft} label="Startup shader" path="runtimeShaderId" setConfig={setDraft} />
<OptionalTextField
config={draft}
label="Startup shader"
path="runtimeShaderId"
placeholder="restore saved stack"
setConfig={setDraft}
/>
<NumberField config={draft} label="Server port" min={1} path="serverPort" setConfig={setDraft} />
<NumberField config={draft} label="Temporal cap" min={0} path="maxTemporalHistoryFrames" setConfig={setDraft} />
<ToggleField config={draft} label="Auto reload" path="autoReload" setConfig={setDraft} />