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 Inventory Slot class #158

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

UI Inventory Slot class #158

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

Comments

@pavlicekdominik
Copy link
Member

UInventorySlotUI
Implements: IInventorySlotUI

Properties:

  • ItemIcon: UTexture2D* - A texture reference for the item's icon.
  • ItemCount: int32 - The number of items in this slot if stackable.

Methods:

  • SetItem(FInventoryItem ItemData): Displays the item in the slot using the provided data.
  • ClearItem(): Clears the item display and data from the slot.
  • IsSlotEmpty() -> bool: Returns true if the slot does not contain an item.

Usage and Logic Integration:

  • Manages the display and state of an individual inventory slot.
  • Should react to events like setting an item or clearing it, updating the UI accordingly.
  • The IsSlotEmpty method can be used to check the slot status for logic decisions.
@pavlicekdominik pavlicekdominik self-assigned this 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