diff --git a/client/src/components/ControlPanel.jsx b/client/src/components/ControlPanel.jsx index bc105d5..6ed0763 100644 --- a/client/src/components/ControlPanel.jsx +++ b/client/src/components/ControlPanel.jsx @@ -487,17 +487,86 @@ function TurtleDetails({ turtle }) { + {/* Equipment & Inventory Actions */} +
+

Equipment & Inventory

+
+ + + + + + + + +
+
+ {turtle.inventory && turtle.inventory.length > 0 && (
-

Inventory ({turtle.inventoryCount || turtle.inventory.length}/16)

+

Inventory ({turtle.inventoryCount || turtle.inventory.length}/16) — Slot: {turtle.selectedSlot || 1}

{Array.from({ length: 16 }, (_, slotIndex) => { const item = turtle.inventory[slotIndex]; + const isSelected = (turtle.selectedSlot || 1) === (slotIndex + 1); return (
handleSlotClick(slotIndex)} + style={isSelected ? { outline: '2px solid #60a5fa', outlineOffset: '-2px' } : {}} > {item ? ( <>