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

Major refactoring & use item feature #1

Merged
merged 6 commits into from Mar 8, 2024
Merged

Major refactoring & use item feature #1

merged 6 commits into from Mar 8, 2024

Commits on Mar 7, 2024

  1. Copy the full SHA
    6ec2e45 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    cd6eb6c View commit details
    Browse the repository at this point in the history
  3. Small refactor to code.

    Now all crystal items added (even from starting inventory) are useable (by right clicking it)
    yuzhengwen committed Mar 7, 2024
    Copy the full SHA
    8ac7e91 View commit details
    Browse the repository at this point in the history
  4. Code Refactor

    Added BaseInventoryItem and various interfaces.
    New item class can derive from base item and implement custom logic (e.g. drop, use, equip, etc)
    yuzhengwen committed Mar 7, 2024
    Copy the full SHA
    030bab0 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Major Refactor of UI

    - Removed UI_InventoryItem
    - Added a MouseDragItem object that is enabled when dragging an inventory item
    - Allows for more custom behaviour (e.g. splitting stacks) in future
    yuzhengwen committed Mar 8, 2024
    Copy the full SHA
    403c0ee View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7a3479c View commit details
    Browse the repository at this point in the history