Slot UI & Tooltips¶
SlotUI is the visual representation of a single inventory slot. It handles displaying icons, stack counts, durability bars, triggering tooltips, and quick-move operations.
Node Structure¶
If you are building a custom slot scene, it must contain the following child nodes (or you must update the NodePath exports in the script):
| Node Name | Type | Purpose |
|---|---|---|
Icon |
TextureRect |
Displays the item's 2D icon. |
CountLabel |
Label |
Displays the stack count (hidden if count is 1). |
Placeholder |
TextureRect |
Shown when the slot is empty. |
DurabilityBar |
Control |
container for the durability fill. |
DurabilityFill |
ColorRect |
actual bar that shrinks and changes color. |
Quick Move Operations¶
SlotUI now handles quick-move operations directly:
Shift + Left Click¶
Transfers the entire stack to another open inventory panel.
Right Click¶
Transfers a single item to another open inventory panel.
Quick Move Requirements
Quick move only works when two ModularInventoryPanel instances are visible simultaneously. system searches for other visible panels in the "modular_inventory_panel" group and transfers items to the first one found that isn't the source inventory.