Implemented layout editing functionality with selection UI: Features: - New layout selector dialog when pressing Super+Shift+E - Lists all existing custom layouts with zone counts - "Create New Layout" option for new layouts - Click any layout to edit it in the zone editor - Existing zones pre-populated when editing - Updates existing layout when saving (shows "updated" message) - ESC key or Cancel button to close selector Implementation details: - Added editingLayoutId and editingLayoutName properties to track edit mode - Modified startEditor() to accept optional layoutId and layoutData parameters - Created showLayoutSelector() method to display layout selection UI - Created _createZoneActorsFromData() to pre-populate zones when editing - Updated _saveLayout() to update existing layout vs create new - Changed keybinding to call showLayoutSelector() instead of startEditor() - Added _closeLayoutSelector() for cleanup - Deep copy of zones array to avoid reference issues User experience: - Press Super+Shift+E to open layout selector - Choose existing layout to edit or create new - Edit zones (move, resize, add, delete) - Save updates existing layout or creates new - Clear visual feedback for edit vs create mode Fixes TODO item #5. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
44 KiB
44 KiB