Skip to content

Commit

Permalink
adds configurable lil-gui root folder state
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Jan 10, 2025
1 parent a855767 commit bb4afc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/gui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function setupGui(
container: HTMLElement,
tables: DataTables,
customLayoutProps: Partial<LayoutProperties> = {},
customCostWeights: Partial<CostWeights> = {}
customCostWeights: Partial<CostWeights> = {},
openControls = true
) {
container.innerHTML = HTML_TEMPLATE;

Expand Down Expand Up @@ -54,6 +55,9 @@ export function setupGui(
generalProps.patient ??= patients[0];

const gui = new GUI({ container: jellyfishGui });
if (!openControls) {
gui.close();
}
gui.onChange(saveSettings);

const isGuiOpen = () => !gui._closed;
Expand Down

0 comments on commit bb4afc8

Please sign in to comment.