Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Classes #155

Open
pavlicekdominik opened this issue Nov 4, 2023 · 0 comments
Open

UI Classes #155

pavlicekdominik opened this issue Nov 4, 2023 · 0 comments
Assignees
Milestone

Comments

@pavlicekdominik
Copy link
Member

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.
@pavlicekdominik pavlicekdominik self-assigned this Nov 4, 2023
@pavlicekdominik pavlicekdominik converted this from a draft issue Nov 4, 2023
@pavlicekdominik pavlicekdominik added this to the 1.0.0.X milestone Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant