From 2c3b95563251874c03871a304d448e1923a99171 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 18 Apr 2026 19:49:56 +0200 Subject: [PATCH] Add terrain section to App.tsx --- src/app/App.tsx | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index a242c725..4f13c2b1 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -11867,6 +11867,80 @@ export function App({ store, initialStatusMessage }: AppProps) { )} +
+
Terrain
+ {terrainList.length === 0 ? ( +
+ Use Add > Terrain to create the first authored terrain. +
+ ) : ( +
+ {terrainList.map((terrain, terrainIndex) => { + const label = getTerrainLabel(terrain, terrainIndex); + const authoredStateSummary = + formatAuthoredObjectStateSummary(terrain); + const isActiveSelection = isSelectionActiveId( + editorState.selection, + editorState.activeSelectionId, + terrain.id + ); + + return ( +
+
+ + +
+
+ {[ + authoredStateSummary, + `${terrain.sampleCountX} x ${terrain.sampleCountZ} samples`, + `${terrain.cellSize}m cells` + ] + .filter((part): part is string => part !== null) + .join(" | ")} +
+
+ ); + })} +
+ )} +
+
Paths
{pathList.length === 0 ? (