Ответсообщение недоступно
⚡️[HollowEngine:dev] 1 new commit(s)
7cc81f9 Add slot UI system for inventory and item containers:
Implements a complete slot system for managing item containers in UI screens, including:
- Client-side slot prediction and state management (ClientSlots, SlotInteraction)
- Server-side slot container and synchronization (SlotContainer, SlotContainers)
- Declarative slot layout system with zones and quick-move routing (SlotZones, SlotLayout)
- Gesture handling for clicks, drags, and item distribution (SlotClick)
- Slot sources abstraction for various item storage backends (ContainerSource, EquipmentSource, NpcInventorySource)
- Item stacking operations shared across UI and script code (SlotOperations)
- Composable UI widgets for displaying slots (Slots, Slot, SlotGrid, PlayerInventory)
- Item tooltip rendering and vanilla item decorations support
- Network packets for layout and state synchronization (SlotLayoutPacket, SlotSyncPacket, SlotIntentPacket)
Both client and server run identical click logic so predictions are guaranteed accurate. Custom filters that cannot be evaluated client-side mark the layout unpredictable, causing the client to await server confirmation instead of guessing.
Includes comprehensive unit tests for click behavior, zone declarations, and stacking operations. by HollowHorizon. - view commit.