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 Interfaces #156

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

UI Interfaces #156

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

Comments

@pavlicekdominik
Copy link
Member

IInventoryUI

Properties:

  • None

Methods:

  • InitializeInventory: Initializes the inventory with a list of item data.
  • UpdateInventorySlot: Updates a specific inventory slot with new item data.
  • ClearInventorySlot: Clears the item from a specific inventory slot.

Usage and Logic Integration:

  • Inventory UI elements will implement this interface to manage the overall inventory display and updates.

IInventorySlotUI

Properties:

  • None

Methods:

  • SetItem: Sets an item into the inventory slot.
  • ClearItem: Clears the current item from the inventory slot.
  • IsSlotEmpty: Returns a boolean indicating if the slot is currently empty.

Usage and Logic Integration:

  • Inventory slot elements will implement this interface to manage individual slots within the inventory.

IInventoryItemUI

Properties:

  • None

Methods:

  • DisplayItemDetails: Shows the item details in the UI.
  • GetItemData: Retrieves the data for the item currently displayed.

Usage and Logic Integration:

  • Inventory item elements will implement this interface to manage the display of individual item details.

IInventoryItemTooltipUI

Properties:

  • None

Methods:

  • ShowTooltip: Displays a tooltip for an item with detailed information.
  • HideTooltip: Hides the tooltip from the UI.

Usage and Logic Integration:

  • Inventory tooltip elements will implement this interface to manage the display of tooltips for inventory items.

IInventoryCategoryUI

Properties:

  • None

Methods:

  • SetCategory: Sets the category for inventory display.
  • SelectCategory: Marks the category as selected.
  • DeselectCategory: Marks the category as unselected.

Usage and Logic Integration:

  • Inventory category elements will implement this interface to manage the categorization and filtering of inventory items.

IInventoryActionUI

Properties:

  • None

Methods:

  • SetAction: Assigns an action to a UI element.
  • ExecuteAction: Executes the associated action.

Usage and Logic Integration:

  • Inventory action elements will implement this interface to manage actions such as using, equipping, or discarding items.

IEquipmentUI

Properties:

  • None

Methods:

  • InitializeEquipment: Initializes the equipment UI with the provided equipment data.
  • UpdateEquipmentSlot: Updates a specific equipment slot with new item data.
  • ClearEquipmentSlot: Clears the item from a specific equipment slot.

Usage and Logic Integration:

  • Equipment UI elements will implement this interface to manage the overall equipment display and updates.

IEquipmentSlotUI

Properties:

  • None

Methods:

  • EquipItem: Equips an item into the specified slot.
  • UnequipItem: Removes an item from the slot.
  • GetEquippedItemData: Retrieves the data for the item currently equipped in the slot.

Usage and Logic Integration:

  • Equipment slot elements will implement this interface to manage individual slots within the equipment UI.
@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