From 3305d63e02ee6fc0ad65a3d90d9aa8e1396c7604 Mon Sep 17 00:00:00 2001 From: Phazorknight <70389309+Phazorknight@users.noreply.github.com> Date: Fri, 3 Jan 2025 07:44:48 -0800 Subject: [PATCH] New: BackpackComponent BackpackComponent: - This component is used to extend/change the player inventory size (for grid based inventories). - The InventoryBag example item is added to the Lobby demo scene to show how this works. Note: Shrinking the player inventory can lead to unexpected behavior/errors, so use with caution. --- addons/cogito/Assets/Models/Kenney/bag.glb | Bin 0 -> 5940 bytes .../Assets/Models/Kenney/bag.glb.import | 36 +++++++ .../Interactions/BackpackComponent.gd | 24 +++++ .../Interactions/BackpackComponent.tscn | 10 ++ .../DemoScenes/COGITO_1_LegacyDemo.tscn | 4 +- addons/cogito/DemoScenes/COGITO_3_Lobby.tscn | 14 ++- .../DemoScenes/COGITO_4_Laboratory.tscn | 4 +- addons/cogito/PackedScenes/inventory_bag.tscn | 25 +++++ addons/cogito/Theme/Cogito_Theme_A.tres | 96 +++++++++--------- 9 files changed, 156 insertions(+), 57 deletions(-) create mode 100644 addons/cogito/Assets/Models/Kenney/bag.glb create mode 100644 addons/cogito/Assets/Models/Kenney/bag.glb.import create mode 100644 addons/cogito/Components/Interactions/BackpackComponent.gd create mode 100644 addons/cogito/Components/Interactions/BackpackComponent.tscn create mode 100644 addons/cogito/PackedScenes/inventory_bag.tscn diff --git a/addons/cogito/Assets/Models/Kenney/bag.glb b/addons/cogito/Assets/Models/Kenney/bag.glb new file mode 100644 index 0000000000000000000000000000000000000000..d31c56f80a4639ae6951df52ee1c0caca8002d1d GIT binary patch literal 5940 zcmb7IYit}>72Xz_2HK=aTS`M9O$VAb;5hs8W8HdpCw?T3A8W54O=CsYcs<@7vOBZP z%=)$1Ny-ldYQzt!wzLHa6``o85-3DLwBCn`pdgCcszR;cPpK%J`Mkla4(4ihk|u{@`PVzS1?Nh*t@^hGFots1{C+RWwpI6*mb#|g$~^;Vx67Kcv3dW4hc$+}o+YhJfiJ2N(KIP?fMBR$L2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