diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index f627749c..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitattributes b/.gitattributes index 79903de3..29d137a8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ # Normalize EOL for all files that Git considers text files. * text=auto eol=lf -/icons/original_icons export-ignore -/icons/original_icons/** export-ignore \ No newline at end of file +/** export-ignore +/addons !export-ignore +/addons/** !export-ignore \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..efbff89b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Expresso Bits + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index d39701b6..8ddda075 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# β€œicon” Welcome to Expresso Inventory System πŸ‘‹ -![Version](https://img.shields.io/badge/version-0.8.61-blue.svg?cacheSeconds=2592000) +# β€œicon” Welcome to Expresso Inventory System πŸ‘‹ +![Version](https://img.shields.io/badge/version-0.7.62-blue.svg?cacheSeconds=2592000) [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](todo-doc) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](MIT) diff --git a/addons/inventory-system/.gitattributes b/addons/inventory-system/.gitattributes new file mode 100644 index 00000000..79903de3 --- /dev/null +++ b/addons/inventory-system/.gitattributes @@ -0,0 +1,5 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf + +/icons/original_icons export-ignore +/icons/original_icons/** export-ignore \ No newline at end of file diff --git a/addons/inventory-system/.gitignore b/addons/inventory-system/.gitignore new file mode 100644 index 00000000..47091836 --- /dev/null +++ b/addons/inventory-system/.gitignore @@ -0,0 +1,2 @@ +# Godot 4+ specific ignores +.godot/ diff --git a/addons/inventory-system/README.md b/addons/inventory-system/README.md new file mode 100644 index 00000000..d39701b6 --- /dev/null +++ b/addons/inventory-system/README.md @@ -0,0 +1,89 @@ +# β€œicon” Welcome to Expresso Inventory System πŸ‘‹ +![Version](https://img.shields.io/badge/version-0.8.61-blue.svg?cacheSeconds=2592000) +[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](todo-doc) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](MIT) + +![Demo](https://raw.githubusercontent.com/wiki/ExpressoBits/inventory-system/demo.gif) + +See demos in: +Github: https://github.com/expressobits/inventory-system-demos +Godot Asset Lib: https://godotengine.org/asset-library/asset/1895 + + +## Features + +βœ”οΈ Inventory with Slots. + +βœ”οΈ Separate UI inventory logic. + +βœ”οΈ Inventory Handler - which manages inventories. + +βœ”οΈ First Person demo with chests. + +βœ”οΈ Fully commented core and UI code. + +βœ”οΈ Item as Extendable Resource. + +βœ”οΈ Demonstrations of dropped items and item pickup. + +βœ”οΈ Static and dynamic inventory options. + +βœ”οΈ Multiplayer compatible (Including example). + + - [[WIKI] How to test multiplayer demo](https://github.com/expressobits/inventory-system/wiki/How-to-test-multiplayer-demo) + +βœ”οΈ Hotbar. + +βœ”οΈ Craft System. + +βœ”οΈ Item Editor. + +βœ”οΈ Categories. (https://github.com/expressobits/inventory-system/issues/5) + + - [[WIKI] Item Categories](https://github.com/expressobits/inventory-system/wiki/Item-Categories) + +βœ”οΈ Specialized slot category inventory. (https://github.com/expressobits/inventory-system/issues/40) + +βœ”οΈ Autocrafts. (https://github.com/expressobits/inventory-system/issues/34) + +## In Progress + +πŸ”¨ Unconventional inventory. https://github.com/expressobits/inventory-system/issues/32 + +## Planneds + +πŸ“… Inventory with grids like RE4. (https://github.com/expressobits/inventory-system/issues/35) + +## Install +See in [Wiki](https://github.com/ExpressoBits/inventory-system/wiki) + +## Structure +![UML](https://raw.githubusercontent.com/wiki/ExpressoBits/inventory-system/UML.png) + +## Authors + +πŸ‘€ **Rafael Correa** +* Twitter: [@ScriptsEngineer](https://twitter.com/ScriptsEngineer) +* Github: [@scriptsengineer](https://github.com/scriptsengineer) + +## 🀝 Contributing + +Contributions, issues and feature requests are welcome! + +Feel free to check [issues page](https://github.com/ExpressoBits/inventory-system/issues). + +To suggest or discuss some project structure, feel free here [discussions page](https://github.com/expressobits/inventory-system/discussions) + + +## Show your support + +Give a ⭐️ if this project helped you! + +## Assets + +All assets (GUI, Models and textures) from https://kenney.nl/assets + + +## πŸ“ License + +This project is [MIT](MIT) licensed. diff --git a/core/categorized_slot.gd b/addons/inventory-system/core/categorized_slot.gd similarity index 100% rename from core/categorized_slot.gd rename to addons/inventory-system/core/categorized_slot.gd diff --git a/core/dropped_item_2d.gd b/addons/inventory-system/core/dropped_item_2d.gd similarity index 100% rename from core/dropped_item_2d.gd rename to addons/inventory-system/core/dropped_item_2d.gd diff --git a/core/dropped_item_3d.gd b/addons/inventory-system/core/dropped_item_3d.gd similarity index 100% rename from core/dropped_item_3d.gd rename to addons/inventory-system/core/dropped_item_3d.gd diff --git a/core/hand_item_2d.gd b/addons/inventory-system/core/hand_item_2d.gd similarity index 100% rename from core/hand_item_2d.gd rename to addons/inventory-system/core/hand_item_2d.gd diff --git a/core/hand_item_3d.gd b/addons/inventory-system/core/hand_item_3d.gd similarity index 100% rename from core/hand_item_3d.gd rename to addons/inventory-system/core/hand_item_3d.gd diff --git a/core/hotbar.gd b/addons/inventory-system/core/hotbar.gd similarity index 100% rename from core/hotbar.gd rename to addons/inventory-system/core/hotbar.gd diff --git a/core/inventory.gd b/addons/inventory-system/core/inventory.gd similarity index 100% rename from core/inventory.gd rename to addons/inventory-system/core/inventory.gd diff --git a/core/inventory_database.gd b/addons/inventory-system/core/inventory_database.gd similarity index 100% rename from core/inventory_database.gd rename to addons/inventory-system/core/inventory_database.gd diff --git a/core/inventory_handler.gd b/addons/inventory-system/core/inventory_handler.gd similarity index 100% rename from core/inventory_handler.gd rename to addons/inventory-system/core/inventory_handler.gd diff --git a/core/inventory_item.gd b/addons/inventory-system/core/inventory_item.gd similarity index 100% rename from core/inventory_item.gd rename to addons/inventory-system/core/inventory_item.gd diff --git a/core/item_category.gd b/addons/inventory-system/core/item_category.gd similarity index 100% rename from core/item_category.gd rename to addons/inventory-system/core/item_category.gd diff --git a/core/node_inventory_system_base.gd b/addons/inventory-system/core/node_inventory_system_base.gd similarity index 100% rename from core/node_inventory_system_base.gd rename to addons/inventory-system/core/node_inventory_system_base.gd diff --git a/core/slot.gd b/addons/inventory-system/core/slot.gd similarity index 100% rename from core/slot.gd rename to addons/inventory-system/core/slot.gd diff --git a/craft/craft_station.gd b/addons/inventory-system/craft/craft_station.gd similarity index 100% rename from craft/craft_station.gd rename to addons/inventory-system/craft/craft_station.gd diff --git a/craft/craft_station_type.gd b/addons/inventory-system/craft/craft_station_type.gd similarity index 100% rename from craft/craft_station_type.gd rename to addons/inventory-system/craft/craft_station_type.gd diff --git a/craft/crafter.gd b/addons/inventory-system/craft/crafter.gd similarity index 100% rename from craft/crafter.gd rename to addons/inventory-system/craft/crafter.gd diff --git a/craft/recipe.gd b/addons/inventory-system/craft/recipe.gd similarity index 100% rename from craft/recipe.gd rename to addons/inventory-system/craft/recipe.gd diff --git a/editor/.DS_Store b/addons/inventory-system/editor/.DS_Store similarity index 100% rename from editor/.DS_Store rename to addons/inventory-system/editor/.DS_Store diff --git a/editor/base/base_inventory_editor.gd b/addons/inventory-system/editor/base/base_inventory_editor.gd similarity index 100% rename from editor/base/base_inventory_editor.gd rename to addons/inventory-system/editor/base/base_inventory_editor.gd diff --git a/editor/base/inventory_tab_editor.tscn b/addons/inventory-system/editor/base/inventory_tab_editor.tscn similarity index 100% rename from editor/base/inventory_tab_editor.tscn rename to addons/inventory-system/editor/base/inventory_tab_editor.tscn diff --git a/editor/base/item_id_editor.gd b/addons/inventory-system/editor/base/item_id_editor.gd similarity index 100% rename from editor/base/item_id_editor.gd rename to addons/inventory-system/editor/base/item_id_editor.gd diff --git a/editor/base/item_id_editor.tscn b/addons/inventory-system/editor/base/item_id_editor.tscn similarity index 100% rename from editor/base/item_id_editor.tscn rename to addons/inventory-system/editor/base/item_id_editor.tscn diff --git a/editor/categories/categories_editor.gd b/addons/inventory-system/editor/categories/categories_editor.gd similarity index 100% rename from editor/categories/categories_editor.gd rename to addons/inventory-system/editor/categories/categories_editor.gd diff --git a/editor/categories/categories_editor.tscn b/addons/inventory-system/editor/categories/categories_editor.tscn similarity index 100% rename from editor/categories/categories_editor.tscn rename to addons/inventory-system/editor/categories/categories_editor.tscn diff --git a/editor/categories/item_categories_item_list.gd b/addons/inventory-system/editor/categories/item_categories_item_list.gd similarity index 100% rename from editor/categories/item_categories_item_list.gd rename to addons/inventory-system/editor/categories/item_categories_item_list.gd diff --git a/editor/categories/item_categories_item_list.tscn b/addons/inventory-system/editor/categories/item_categories_item_list.tscn similarity index 100% rename from editor/categories/item_categories_item_list.tscn rename to addons/inventory-system/editor/categories/item_categories_item_list.tscn diff --git a/editor/categories/item_category_editor.gd b/addons/inventory-system/editor/categories/item_category_editor.gd similarity index 100% rename from editor/categories/item_category_editor.gd rename to addons/inventory-system/editor/categories/item_category_editor.gd diff --git a/editor/categories/item_category_editor.tscn b/addons/inventory-system/editor/categories/item_category_editor.tscn similarity index 100% rename from editor/categories/item_category_editor.tscn rename to addons/inventory-system/editor/categories/item_category_editor.tscn diff --git a/editor/constants.gd b/addons/inventory-system/editor/constants.gd similarity index 100% rename from editor/constants.gd rename to addons/inventory-system/editor/constants.gd diff --git a/editor/craft_stations/craft_station_type_editor.gd b/addons/inventory-system/editor/craft_stations/craft_station_type_editor.gd similarity index 100% rename from editor/craft_stations/craft_station_type_editor.gd rename to addons/inventory-system/editor/craft_stations/craft_station_type_editor.gd diff --git a/editor/craft_stations/craft_station_type_editor.tscn b/addons/inventory-system/editor/craft_stations/craft_station_type_editor.tscn similarity index 100% rename from editor/craft_stations/craft_station_type_editor.tscn rename to addons/inventory-system/editor/craft_stations/craft_station_type_editor.tscn diff --git a/editor/craft_stations/craft_station_types_item_list.gd b/addons/inventory-system/editor/craft_stations/craft_station_types_item_list.gd similarity index 100% rename from editor/craft_stations/craft_station_types_item_list.gd rename to addons/inventory-system/editor/craft_stations/craft_station_types_item_list.gd diff --git a/editor/craft_stations/craft_station_types_item_list.tscn b/addons/inventory-system/editor/craft_stations/craft_station_types_item_list.tscn similarity index 100% rename from editor/craft_stations/craft_station_types_item_list.tscn rename to addons/inventory-system/editor/craft_stations/craft_station_types_item_list.tscn diff --git a/editor/craft_stations/craft_stations.tscn b/addons/inventory-system/editor/craft_stations/craft_stations.tscn similarity index 100% rename from editor/craft_stations/craft_stations.tscn rename to addons/inventory-system/editor/craft_stations/craft_stations.tscn diff --git a/editor/craft_stations/craft_stations_types_editor.gd b/addons/inventory-system/editor/craft_stations/craft_stations_types_editor.gd similarity index 100% rename from editor/craft_stations/craft_stations_types_editor.gd rename to addons/inventory-system/editor/craft_stations/craft_stations_types_editor.gd diff --git a/editor/inventory-system-inspector.gd b/addons/inventory-system/editor/inventory-system-inspector.gd similarity index 100% rename from editor/inventory-system-inspector.gd rename to addons/inventory-system/editor/inventory-system-inspector.gd diff --git a/editor/inventory_editor.gd b/addons/inventory-system/editor/inventory_editor.gd similarity index 100% rename from editor/inventory_editor.gd rename to addons/inventory-system/editor/inventory_editor.gd diff --git a/editor/inventory_editor.tscn b/addons/inventory-system/editor/inventory_editor.tscn similarity index 100% rename from editor/inventory_editor.tscn rename to addons/inventory-system/editor/inventory_editor.tscn diff --git a/editor/inventory_settings.gd b/addons/inventory-system/editor/inventory_settings.gd similarity index 100% rename from editor/inventory_settings.gd rename to addons/inventory-system/editor/inventory_settings.gd diff --git a/editor/items/base_property.gd b/addons/inventory-system/editor/items/base_property.gd similarity index 100% rename from editor/items/base_property.gd rename to addons/inventory-system/editor/items/base_property.gd diff --git a/editor/items/base_property.tscn b/addons/inventory-system/editor/items/base_property.tscn similarity index 100% rename from editor/items/base_property.tscn rename to addons/inventory-system/editor/items/base_property.tscn diff --git a/editor/items/categories_in_item.gd b/addons/inventory-system/editor/items/categories_in_item.gd similarity index 100% rename from editor/items/categories_in_item.gd rename to addons/inventory-system/editor/items/categories_in_item.gd diff --git a/editor/items/categories_in_item.tscn b/addons/inventory-system/editor/items/categories_in_item.tscn similarity index 100% rename from editor/items/categories_in_item.tscn rename to addons/inventory-system/editor/items/categories_in_item.tscn diff --git a/editor/items/custom_properties.gd b/addons/inventory-system/editor/items/custom_properties.gd similarity index 100% rename from editor/items/custom_properties.gd rename to addons/inventory-system/editor/items/custom_properties.gd diff --git a/editor/items/custom_properties.tscn b/addons/inventory-system/editor/items/custom_properties.tscn similarity index 100% rename from editor/items/custom_properties.tscn rename to addons/inventory-system/editor/items/custom_properties.tscn diff --git a/editor/items/inventory_item_list.gd b/addons/inventory-system/editor/items/inventory_item_list.gd similarity index 100% rename from editor/items/inventory_item_list.gd rename to addons/inventory-system/editor/items/inventory_item_list.gd diff --git a/editor/items/inventory_item_list.tscn b/addons/inventory-system/editor/items/inventory_item_list.tscn similarity index 100% rename from editor/items/inventory_item_list.tscn rename to addons/inventory-system/editor/items/inventory_item_list.tscn diff --git a/editor/items/item_editor.gd b/addons/inventory-system/editor/items/item_editor.gd similarity index 100% rename from editor/items/item_editor.gd rename to addons/inventory-system/editor/items/item_editor.gd diff --git a/editor/items/item_editor.tscn b/addons/inventory-system/editor/items/item_editor.tscn similarity index 100% rename from editor/items/item_editor.tscn rename to addons/inventory-system/editor/items/item_editor.tscn diff --git a/editor/items/items.tscn b/addons/inventory-system/editor/items/items.tscn similarity index 100% rename from editor/items/items.tscn rename to addons/inventory-system/editor/items/items.tscn diff --git a/editor/items/items_editor.gd b/addons/inventory-system/editor/items/items_editor.gd similarity index 100% rename from editor/items/items_editor.gd rename to addons/inventory-system/editor/items/items_editor.gd diff --git a/editor/recipes/ingredient_editor.gd b/addons/inventory-system/editor/recipes/ingredient_editor.gd similarity index 100% rename from editor/recipes/ingredient_editor.gd rename to addons/inventory-system/editor/recipes/ingredient_editor.gd diff --git a/editor/recipes/ingredient_editor.tscn b/addons/inventory-system/editor/recipes/ingredient_editor.tscn similarity index 100% rename from editor/recipes/ingredient_editor.tscn rename to addons/inventory-system/editor/recipes/ingredient_editor.tscn diff --git a/editor/recipes/ingredient_item_in_recipe_item.gd b/addons/inventory-system/editor/recipes/ingredient_item_in_recipe_item.gd similarity index 100% rename from editor/recipes/ingredient_item_in_recipe_item.gd rename to addons/inventory-system/editor/recipes/ingredient_item_in_recipe_item.gd diff --git a/editor/recipes/ingredient_item_in_recipe_item.tscn b/addons/inventory-system/editor/recipes/ingredient_item_in_recipe_item.tscn similarity index 100% rename from editor/recipes/ingredient_item_in_recipe_item.tscn rename to addons/inventory-system/editor/recipes/ingredient_item_in_recipe_item.tscn diff --git a/editor/recipes/inventory_item_list_with_recipes_number.gd b/addons/inventory-system/editor/recipes/inventory_item_list_with_recipes_number.gd similarity index 100% rename from editor/recipes/inventory_item_list_with_recipes_number.gd rename to addons/inventory-system/editor/recipes/inventory_item_list_with_recipes_number.gd diff --git a/editor/recipes/recipe_editor.gd b/addons/inventory-system/editor/recipes/recipe_editor.gd similarity index 100% rename from editor/recipes/recipe_editor.gd rename to addons/inventory-system/editor/recipes/recipe_editor.gd diff --git a/editor/recipes/recipe_editor.tscn b/addons/inventory-system/editor/recipes/recipe_editor.tscn similarity index 100% rename from editor/recipes/recipe_editor.tscn rename to addons/inventory-system/editor/recipes/recipe_editor.tscn diff --git a/editor/recipes/recipe_item_editor.gd b/addons/inventory-system/editor/recipes/recipe_item_editor.gd similarity index 100% rename from editor/recipes/recipe_item_editor.gd rename to addons/inventory-system/editor/recipes/recipe_item_editor.gd diff --git a/editor/recipes/recipe_item_editor.tscn b/addons/inventory-system/editor/recipes/recipe_item_editor.tscn similarity index 100% rename from editor/recipes/recipe_item_editor.tscn rename to addons/inventory-system/editor/recipes/recipe_item_editor.tscn diff --git a/editor/recipes/recipe_item_list_editor.gd b/addons/inventory-system/editor/recipes/recipe_item_list_editor.gd similarity index 100% rename from editor/recipes/recipe_item_list_editor.gd rename to addons/inventory-system/editor/recipes/recipe_item_list_editor.gd diff --git a/editor/recipes/recipe_item_list_editor.tscn b/addons/inventory-system/editor/recipes/recipe_item_list_editor.tscn similarity index 100% rename from editor/recipes/recipe_item_list_editor.tscn rename to addons/inventory-system/editor/recipes/recipe_item_list_editor.tscn diff --git a/editor/recipes/recipes.tscn b/addons/inventory-system/editor/recipes/recipes.tscn similarity index 100% rename from editor/recipes/recipes.tscn rename to addons/inventory-system/editor/recipes/recipes.tscn diff --git a/editor/recipes/recipes_editor.gd b/addons/inventory-system/editor/recipes/recipes_editor.gd similarity index 100% rename from editor/recipes/recipes_editor.gd rename to addons/inventory-system/editor/recipes/recipes_editor.gd diff --git a/editor/slot_selector.gd b/addons/inventory-system/editor/slot_selector.gd similarity index 100% rename from editor/slot_selector.gd rename to addons/inventory-system/editor/slot_selector.gd diff --git a/editor/slot_selector.tscn b/addons/inventory-system/editor/slot_selector.tscn similarity index 100% rename from editor/slot_selector.tscn rename to addons/inventory-system/editor/slot_selector.tscn diff --git a/editor/tab_container_inventory.gd b/addons/inventory-system/editor/tab_container_inventory.gd similarity index 100% rename from editor/tab_container_inventory.gd rename to addons/inventory-system/editor/tab_container_inventory.gd diff --git a/icons/craft_station.svg b/addons/inventory-system/icons/craft_station.svg similarity index 100% rename from icons/craft_station.svg rename to addons/inventory-system/icons/craft_station.svg diff --git a/icons/craft_station.svg.import b/addons/inventory-system/icons/craft_station.svg.import similarity index 100% rename from icons/craft_station.svg.import rename to addons/inventory-system/icons/craft_station.svg.import diff --git a/icons/craft_station_type.svg b/addons/inventory-system/icons/craft_station_type.svg similarity index 100% rename from icons/craft_station_type.svg rename to addons/inventory-system/icons/craft_station_type.svg diff --git a/icons/craft_station_type.svg.import b/addons/inventory-system/icons/craft_station_type.svg.import similarity index 100% rename from icons/craft_station_type.svg.import rename to addons/inventory-system/icons/craft_station_type.svg.import diff --git a/icons/crafter.svg b/addons/inventory-system/icons/crafter.svg similarity index 100% rename from icons/crafter.svg rename to addons/inventory-system/icons/crafter.svg diff --git a/icons/crafter.svg.import b/addons/inventory-system/icons/crafter.svg.import similarity index 100% rename from icons/crafter.svg.import rename to addons/inventory-system/icons/crafter.svg.import diff --git a/icons/dropped_item_2d.svg b/addons/inventory-system/icons/dropped_item_2d.svg similarity index 100% rename from icons/dropped_item_2d.svg rename to addons/inventory-system/icons/dropped_item_2d.svg diff --git a/icons/dropped_item_2d.svg.import b/addons/inventory-system/icons/dropped_item_2d.svg.import similarity index 100% rename from icons/dropped_item_2d.svg.import rename to addons/inventory-system/icons/dropped_item_2d.svg.import diff --git a/icons/dropped_item_3d.svg b/addons/inventory-system/icons/dropped_item_3d.svg similarity index 100% rename from icons/dropped_item_3d.svg rename to addons/inventory-system/icons/dropped_item_3d.svg diff --git a/icons/dropped_item_3d.svg.import b/addons/inventory-system/icons/dropped_item_3d.svg.import similarity index 100% rename from icons/dropped_item_3d.svg.import rename to addons/inventory-system/icons/dropped_item_3d.svg.import diff --git a/icons/hotbar.svg b/addons/inventory-system/icons/hotbar.svg similarity index 100% rename from icons/hotbar.svg rename to addons/inventory-system/icons/hotbar.svg diff --git a/icons/hotbar.svg.import b/addons/inventory-system/icons/hotbar.svg.import similarity index 100% rename from icons/hotbar.svg.import rename to addons/inventory-system/icons/hotbar.svg.import diff --git a/icons/inventory.svg b/addons/inventory-system/icons/inventory.svg similarity index 100% rename from icons/inventory.svg rename to addons/inventory-system/icons/inventory.svg diff --git a/icons/inventory.svg.import b/addons/inventory-system/icons/inventory.svg.import similarity index 100% rename from icons/inventory.svg.import rename to addons/inventory-system/icons/inventory.svg.import diff --git a/icons/inventory_database.svg b/addons/inventory-system/icons/inventory_database.svg similarity index 100% rename from icons/inventory_database.svg rename to addons/inventory-system/icons/inventory_database.svg diff --git a/icons/inventory_database.svg.import b/addons/inventory-system/icons/inventory_database.svg.import similarity index 100% rename from icons/inventory_database.svg.import rename to addons/inventory-system/icons/inventory_database.svg.import diff --git a/icons/inventory_handler.svg b/addons/inventory-system/icons/inventory_handler.svg similarity index 100% rename from icons/inventory_handler.svg rename to addons/inventory-system/icons/inventory_handler.svg diff --git a/icons/inventory_handler.svg.import b/addons/inventory-system/icons/inventory_handler.svg.import similarity index 100% rename from icons/inventory_handler.svg.import rename to addons/inventory-system/icons/inventory_handler.svg.import diff --git a/icons/inventory_item.svg b/addons/inventory-system/icons/inventory_item.svg similarity index 100% rename from icons/inventory_item.svg rename to addons/inventory-system/icons/inventory_item.svg diff --git a/icons/inventory_item.svg.import b/addons/inventory-system/icons/inventory_item.svg.import similarity index 100% rename from icons/inventory_item.svg.import rename to addons/inventory-system/icons/inventory_item.svg.import diff --git a/icons/inventory_main_screen.svg b/addons/inventory-system/icons/inventory_main_screen.svg similarity index 100% rename from icons/inventory_main_screen.svg rename to addons/inventory-system/icons/inventory_main_screen.svg diff --git a/icons/inventory_main_screen.svg.import b/addons/inventory-system/icons/inventory_main_screen.svg.import similarity index 100% rename from icons/inventory_main_screen.svg.import rename to addons/inventory-system/icons/inventory_main_screen.svg.import diff --git a/icons/item_category.svg b/addons/inventory-system/icons/item_category.svg similarity index 100% rename from icons/item_category.svg rename to addons/inventory-system/icons/item_category.svg diff --git a/icons/item_category.svg.import b/addons/inventory-system/icons/item_category.svg.import similarity index 100% rename from icons/item_category.svg.import rename to addons/inventory-system/icons/item_category.svg.import diff --git a/icons/new_craft_station_type.svg b/addons/inventory-system/icons/new_craft_station_type.svg similarity index 100% rename from icons/new_craft_station_type.svg rename to addons/inventory-system/icons/new_craft_station_type.svg diff --git a/icons/new_craft_station_type.svg.import b/addons/inventory-system/icons/new_craft_station_type.svg.import similarity index 100% rename from icons/new_craft_station_type.svg.import rename to addons/inventory-system/icons/new_craft_station_type.svg.import diff --git a/icons/new_inventory_item.svg b/addons/inventory-system/icons/new_inventory_item.svg similarity index 100% rename from icons/new_inventory_item.svg rename to addons/inventory-system/icons/new_inventory_item.svg diff --git a/icons/new_inventory_item.svg.import b/addons/inventory-system/icons/new_inventory_item.svg.import similarity index 100% rename from icons/new_inventory_item.svg.import rename to addons/inventory-system/icons/new_inventory_item.svg.import diff --git a/icons/new_item_category.svg b/addons/inventory-system/icons/new_item_category.svg similarity index 100% rename from icons/new_item_category.svg rename to addons/inventory-system/icons/new_item_category.svg diff --git a/icons/new_item_category.svg.import b/addons/inventory-system/icons/new_item_category.svg.import similarity index 100% rename from icons/new_item_category.svg.import rename to addons/inventory-system/icons/new_item_category.svg.import diff --git a/icons/new_recipe.svg b/addons/inventory-system/icons/new_recipe.svg similarity index 100% rename from icons/new_recipe.svg rename to addons/inventory-system/icons/new_recipe.svg diff --git a/icons/new_recipe.svg.import b/addons/inventory-system/icons/new_recipe.svg.import similarity index 100% rename from icons/new_recipe.svg.import rename to addons/inventory-system/icons/new_recipe.svg.import diff --git a/icons/node_inventory_system_base.svg b/addons/inventory-system/icons/node_inventory_system_base.svg similarity index 100% rename from icons/node_inventory_system_base.svg rename to addons/inventory-system/icons/node_inventory_system_base.svg diff --git a/icons/node_inventory_system_base.svg.import b/addons/inventory-system/icons/node_inventory_system_base.svg.import similarity index 100% rename from icons/node_inventory_system_base.svg.import rename to addons/inventory-system/icons/node_inventory_system_base.svg.import diff --git a/icons/recipe.svg b/addons/inventory-system/icons/recipe.svg similarity index 100% rename from icons/recipe.svg rename to addons/inventory-system/icons/recipe.svg diff --git a/icons/recipe.svg.import b/addons/inventory-system/icons/recipe.svg.import similarity index 100% rename from icons/recipe.svg.import rename to addons/inventory-system/icons/recipe.svg.import diff --git a/inventory-system.gd b/addons/inventory-system/inventory-system.gd similarity index 100% rename from inventory-system.gd rename to addons/inventory-system/inventory-system.gd diff --git a/multiplayer/craft/networked_craft_station.gd b/addons/inventory-system/multiplayer/craft/networked_craft_station.gd similarity index 100% rename from multiplayer/craft/networked_craft_station.gd rename to addons/inventory-system/multiplayer/craft/networked_craft_station.gd diff --git a/multiplayer/craft/networked_crafter.gd b/addons/inventory-system/multiplayer/craft/networked_crafter.gd similarity index 100% rename from multiplayer/craft/networked_crafter.gd rename to addons/inventory-system/multiplayer/craft/networked_crafter.gd diff --git a/multiplayer/dropped_item_spawner.gd b/addons/inventory-system/multiplayer/dropped_item_spawner.gd similarity index 100% rename from multiplayer/dropped_item_spawner.gd rename to addons/inventory-system/multiplayer/dropped_item_spawner.gd diff --git a/multiplayer/networked_handler.gd b/addons/inventory-system/multiplayer/networked_handler.gd similarity index 100% rename from multiplayer/networked_handler.gd rename to addons/inventory-system/multiplayer/networked_handler.gd diff --git a/multiplayer/networked_hotbar.gd b/addons/inventory-system/multiplayer/networked_hotbar.gd similarity index 100% rename from multiplayer/networked_hotbar.gd rename to addons/inventory-system/multiplayer/networked_hotbar.gd diff --git a/multiplayer/networked_inventory.gd b/addons/inventory-system/multiplayer/networked_inventory.gd similarity index 100% rename from multiplayer/networked_inventory.gd rename to addons/inventory-system/multiplayer/networked_inventory.gd diff --git a/addons/inventory-system/plugin.cfg b/addons/inventory-system/plugin.cfg new file mode 100644 index 00000000..1e85b280 --- /dev/null +++ b/addons/inventory-system/plugin.cfg @@ -0,0 +1,8 @@ +[plugin] + +name="Inventory System" +description="Inventory System for Godot 4 +Networked" +author="Expresso Bits" +version="0.8.61" +script="inventory-system.gd" diff --git a/icon.png b/icon.png new file mode 100644 index 00000000..d8dd1376 Binary files /dev/null and b/icon.png differ diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 00000000..8dd0c09d --- /dev/null +++ b/icon.png.import @@ -0,0 +1,3 @@ +[remap] + +importer="keep" diff --git a/icon.svg b/icon.svg new file mode 100644 index 00000000..49ec6c73 --- /dev/null +++ b/icon.svg @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 00000000..f27827c0 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,39 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dqsmdq5t13xfl" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"editor_dark_theme": true, +"has_editor_variant": true, +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=true diff --git a/plugin.cfg b/plugin.cfg index 1e85b280..e69de29b 100644 --- a/plugin.cfg +++ b/plugin.cfg @@ -1,8 +0,0 @@ -[plugin] - -name="Inventory System" -description="Inventory System for Godot 4 -Networked" -author="Expresso Bits" -version="0.8.61" -script="inventory-system.gd" diff --git a/project.godot b/project.godot new file mode 100644 index 00000000..3d223ef7 --- /dev/null +++ b/project.godot @@ -0,0 +1,136 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="inventory-system" +config/features=PackedStringArray("4.0", "Forward Plus") +config/icon="res://icon.png" + +[editor_plugins] + +enabled=PackedStringArray("res://addons/inventory-system/plugin.cfg") + +[input] + +forward_move={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +back_move={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +right_move={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +left_move={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +escape={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +interact={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +toggle_inventory={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":73,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +add_item_a={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194332,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +remove_item_a={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194333,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +add_item_b={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194334,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +remove_item_b={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194335,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_forward={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_backward={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_right={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_left={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_sprint={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_jump={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_crouch={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194326,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +move_fly_mode={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":70,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +toggle_craft_panel={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":67,"key_label":0,"unicode":99,"echo":false,"script":null) +] +} +add_item_c={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194336,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +remove_item_c={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194337,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} + +[native_extensions] + +paths=["res://addons/inventory-system/inventory-system.gdextension"]