Quick Bar Component¶
Overview¶
UMIPQuickBarComponent manages the quick slots (hotbar): use item or ability by index, key released handling, drag-and-drop (OnDropped), add/remove slot entries. It creates UMIPQuickBarSlotInstance for items (from FMIPItemEntry) or abilities (from FGameplayTag), binds to player inventory widget creation and item add/remove, and delegates to UMIPPlayerServerIMC for use-item server RPC. UMIPEnhancedInputComponent calls TryUseQuickSlot / OnQuickSlotKeyReleased when the player presses quick slot keys.
Key traits:
- Attachment: PlayerController (client).
- API: TryUseQuickSlot(InQuickSlotIndex), OnQuickSlotKeyReleased(InQuickSlotIndex), OnDropped(Payload, InQuickBarSlotWidget), AddNewQuickBarSlotEntry(InQuickBarSlotInstance), FindAndRemoveQuickBarSlotInstance(InQuickBarIndex), GetQuickBarEntry(QuickBarSlotIndex).
- Delegates: QuickBarEntryChangedDelegate, OnTryUsingQuickSlotDelegate, OnQuickSlotKeyReleasedDelegate.
All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.
Key Classes & Files¶
| Class | File |
|---|---|
UMIPQuickBarComponent |
Public/QuickBar/MIPQuickBarComponent.h |
Integration¶
- UMIPEnhancedInputComponent – quick slot pressed/released/held → TryUseQuickSlot, OnQuickSlotKeyReleased.
- UMIPPlayerServerIMC – UseItemOnServerByItemPrimaryTag or similar for item use; quick bar holds item/ability reference per slot.
- UMIPClientWidgetsManagerComponent – quick bar container widget; slot widgets for drag-drop.