Skip to content

Inventory

Valk edited this page Oct 10, 2024 · 8 revisions

If the video does not load please try refreshing the page. The following video is old and does not represent all the current features.

2024-10-05.18-57-43.mp4

Features

  • Support for both static and animated items
  • Items are animated on all inventory actions
  • Items are loaded from JSON data
  • Items are moved, stacked or swapped based on the context
  • Internal inventory logic separate from UI logic
  • Item sprites are automatically resized to fit the inventory slot sizes
  • Support for custom inventory slots such as "main hand" / "off hand" / "chestplate slot"
  • Inventory tween animations are played when opening / closing inventories
  • Item categories / rarities / defining max item stacks / sword damage info / etc
  • Item info popup displayed when hovering over an item (or this information is displayed somewhere else I do not know)
  • Saving and loading inventory data
  • Item search bar and filters
  • Picking up items in the world
  • Multiplayer support

Controls

  • I to open player inventory
  • E to open chest inventory
  • Left Click pickup / place
  • Right Click pickup / place one item
  • Shift Left Click transfer to other inventory
  • Shift Right Click pickup half stack
  • Drag Left Click to continuously pickup
  • Drag Right Click to continuously place one item
  • Drag Shift Left Click to continuously transfer to other inventory
  • Double Click pickup all items of the same type
  • 1 2 3 4 5 6 7 8 9 0 to move item stack to a player hotbar slot
  • Shift + ? to sort all items in all open inventories
  • Shift + ? to take all items from other inventory
  • Shift + ? to quick stack items from the player inventory to nearby chests
  • Shift + ? to full stack items from the player inventory to nearby chests
  • Q drop one item in world
  • Shift + Q drop item stack in world

All features from Inventory 2023 will eventually be implemented into Template.

Scene for testing this is located in res://Sandbox/Inventory/InventorySandbox.tscn

If you want to help develop the features of the new inventory please contact me over Discord, my username is valky5

Clone this wiki locally