diff --git a/app/page.tsx b/app/page.tsx
index 57cbeed..d8de060 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -134,6 +134,20 @@ const mockMenuItems: MenuItem[] = [
},
],
},
+ {
+ id: "layout",
+ label: "Layout",
+ icon: ,
+ isExpanded: true,
+ children: [
+ {
+ id: "center-only-bottom",
+ label: "Bottom panel under center only",
+ isChecked: false,
+ onClick: () => console.log("Center-only bottom panel toggled"),
+ },
+ ],
+ },
{
id: "hidden-item",
label: "This should be hidden",
@@ -247,6 +261,7 @@ export default function VisualNovelEditor() {
const [leftPanelWidth, setLeftPanelWidth] = useState(300)
const [rightPanelWidth, setRightPanelWidth] = useState(300)
const [bottomPanelHeight, setBottomPanelHeight] = useState(200)
+ const [centerOnlyBottomPanel, setCenterOnlyBottomPanel] = useState(false)
// Track when panels are transitioning to enable/disable transitions
const [leftPanelTransitioning, setLeftPanelTransitioning] = useState(false)
@@ -297,6 +312,22 @@ export default function VisualNovelEditor() {
}
const handleMenuItemClick = (item: MenuItem) => {
+ if (item.id === "center-only-bottom") {
+ setCenterOnlyBottomPanel((current) => !current)
+ setMenuItems((items) =>
+ items.map((menuItem) =>
+ menuItem.id === "layout"
+ ? {
+ ...menuItem,
+ children: menuItem.children?.map((child) =>
+ child.id === "center-only-bottom" ? { ...child, isChecked: !centerOnlyBottomPanel } : child,
+ ),
+ }
+ : menuItem,
+ ),
+ )
+ return
+ }
console.log("Menu item clicked:", item.label)
}
@@ -345,16 +376,22 @@ export default function VisualNovelEditor() {
{/* Top Section - Left, Main, Right Panels */}
{/* Left Panel - Node Tree */}
{/* Main Panel */}
-
+
{/* Action Buttons */}
{selectedNode && selectedNode.actions.length > 0 && (
@@ -436,8 +476,10 @@ export default function VisualNovelEditor() {
{/* Right Panel - Info */}
-
- {/* Bottom Panel - Object Properties (Full Width) */}
+ {/* Bottom Panel - Object Properties */}
+
)