Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
Terraria-like inventory system.This asset have the following systems: storage, load, inventory, item data, custom mouse cursor.You can create your own items, storages + ui to them, custom cursor.Also you can add hotkeys like shift+click to equip etc.Everything else is described in readme file on GitHub.
Thanks for using my system
!!! FONT IN THIS PROJECT WORKS ONLY FOR ENGISH LANGUAGE IF YOU WANT USE OTHER LANGUAGES USE DIFFERENT FONT !!!
Font was taken from this site https://caffinate.itch.io/abaddon
!!! IF YOU ADD NEW UI FOR CHEST OR EVERYTHING ADD NODE PUT DISPLAY SCRIPT ON IT THAN EVERY ROW PUT ON ITS OWN NODE (EVEN IF ITS ONLY ONE ROW) OR CODE WOULDN'T WORK !!! For example go to res://ui/storages/small_chest/SmallChestDisplay.tscn
Project have showcase scene res://showcase/Showcase.tscn
If you want add drop item go to res://PlayerShowcase.gd this code have this fucntion already and you only need to write it
How to add inventory to your project: 0) Drag and drop everything from folder to your project exept showcase folder
- Put all scripts in preload_scripts and data foulders in Project/ProjectSettings/AutoLoad (Dont change names of scripts or it woundn't work)
- Make 5 new Actions in Project/ProjectSettings/InputMap 2.1) E (E key) 2.2) EXIT (Escape key) 2.3) WheelUp (Device 0, Wheel Up) 2.4) WheelDown (Device 0, Wheel Down) 2.5) Shift (Shift key)
- Copy all code from PlayerShowcase.gd to your main player code and delete PlayerShowcase.gd
- Add to your main scene in game UIHolder.tscn If everything done right you should have working inventory in your game
How add new item:
- Do to data folder
- Open file Items.json (not visible in godot)
- Add new id and add everything you want to it ( item at least needs to have everything that 0 item have)
- Add texture to it here res://items/inventory_textures/ and name it item(item_id)_texture.png
- Dont forger to add name in res://data/language_data/languages.csv
- If needed add it to existing inventory in res://data/Storages.json
How to make custom cursor
- Change this file res://ui/inventory_displays/textures/cursor.png or this scene res://ui/inventory_displays/mouse/Mouse.tscn
How to make your own storage:
- Copy everything from res://storages/small_chest/ChestObj.gd and change sprite_type, storage_type, ui_type to your own
- In res://storages/small_chest/ChestObj.gd you will see, how you need to put your files 2.1) 'res://storages/%s/sprites/%sSprFrames.tres' % [storage_type,sprite_type] etc
- Add storage size in res://data/StorageData.gd
How to make new slot type: 0) Textrure of slot is here res://ui/inventory_displays/textures/empty_slot.png
- Go to res://ui/inventory_slot/InventorySlot.gd
- Add new type and add functionality in content_manipulation
- Add hot keys in _on_button_up()
How to add bag:
- Create item and add to it tags [storage, bag] and property storage type
- In res://data/Storages.json add inventory if needed
- Add new storage size in res://data/StorageData.gd if its needed
Terraria-like inventory system.
This asset have the following systems: storage, load, inventory, item data, custom mouse cursor.
You can create your own items, storages + ui to them, custom cursor.
Also you can add hotkeys like shift+click to equip etc.
Everything else is described in readme file on GitHub.
Reviews
Quick Information
Terraria-like inventory system.This asset have the following systems: storage, load, inventory, item data, custom mouse cursor.You can create your own items, storages + ui to them, custom cursor.Also you can add hotkeys like shift+click to equip etc.Everything else is described in readme file on GitHub.