UI Classes
pavlicekdominik opened this issue · 0 comments
pavlicekdominik commented
UInventoryUI
Properties:
InventorySlots
- Type: TArray<UInventorySlotUI*>
- Description: A dynamic array containing all inventory slot UI elements.
Usage and Logic Integration:
- Initialization: Initializes all inventory slots and binds them to their corresponding events.
- Event Handling: Listens to inventory-related events to update the UI accordingly.
- Adding/Removing Items: Adjusts inventory slots when items are added or removed, possibly triggering animations or updates.
UInventorySlotUI
Properties:
ItemDisplay
- Type: UInventoryItemUI*
- Description: The UI representation of the item within the slot.
Usage and Logic Integration:
- Initialization: Binds the item display to the corresponding slot data.
- Updating Slot Display: Updates the item display based on changes in inventory data.
UInventoryItemUI
Properties:
ItemData
- Type: FInventoryItemData
- Description: Data structure containing all necessary item information.
Usage and Logic Integration:
- Display Information: Presents item data, such as icons and quantities.
- Interaction: Handles user interaction events such as click, drag, etc.
UInventoryItemTooltipUI
Properties:
ItemDetails
- Type: FInventoryItemData
- Description: Detailed information about the item for tooltip display.
Usage and Logic Integration:
- Display Tooltip: Shows detailed item information on hover or selection.
UInventoryCategoryUI
Properties:
CategoryData
- Type: FInventoryCategoryData
- Description: Data representing a category of items.
Usage and Logic Integration:
- Display Category: Shows the category name and filters the displayed items when selected.
UInventoryActionUI
Properties:
ActionData
- Type: FInventoryActionData
- Description: Data defining an action that can be taken with an item, such as 'Use' or 'Discard'.
Usage and Logic Integration:
- Perform Action: Executes the corresponding action when a user interacts with the UI element.
UEquipmentUI
Properties:
EquipmentSlots
- Type: TArray<UEquipmentSlotUI*>
- Description: Array containing equipment slot UI elements.
Usage and Logic Integration:
- Initialization: Sets up all equipment slots and binds event listeners for updates.
- Event Handling: Responds to equipment-related events to refresh the UI.
UEquipmentSlotUI
Properties:
EquipmentItem
- Type: UInventoryItemUI*
- Description: UI representation of the equipped item.
Usage and Logic Integration:
- Initialization: Binds an equipped item to the slot and listens for changes.
- Updating Equipment Display: Alters the display when an item is equipped or unequipped.