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¶
| 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 & Drag Operations¶
SlotUI handles mouse interactions directly:
Shift + Left Click¶
Transfers the entire stack to another open inventory panel.
Right Click¶
Starts a drag operation picking up exactly 1 item. If you drop it on another slot, it places 1 item. If you drop it in the world, it drops 1 item to the 3D world.