-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and remove individual hands (#1230)
* allow old view inventory to avoid crashing * Add type to slots and resize slots * make divisor a prefab * Add basis for new inventory * Add new inventory to human and inventory view to canvas * Add alternative inventory container * Make alternative dynamic UI work * remove handsview and put highlight in hands script * require inventoryalt component * fix completely container UI interactions * fix everything * separate inventory into inventory and containerviewer this alleviates a bit the role of the inventory. Inventory should only handles what's on the player or hold by them. Opened Containers by the player should be displayed using another script, dedicated to that. * add doc, add method to InventoryView * adds doc * rename Inventory to HUmanInventory this prevents the conflit with Inventory namespace * a bit of decoupling and renaming * make hands set up after inventory to avoid timing issues * fix weird hand highlight bug * sync loadout * prefab update with some bugs * fix slots type and count hand slots * kinda fix highlight hands colors * remove old hand prefabs * add bag slot and fix hand distance * fix order of slots * add clothing slots and containers * add trucker hat and sunglasses * add cloth displayers for glasses * fix a bit some patch * add hat display * add some doc * factorise some code * fix value in container type to have non overlapping bits * update human prefab * Add some clothes items * make pair slots individual, fix container type * add display for other type of clothes * small fix * add inventory slot container * remove useless using * fix container on jumpsuit * make slot remove when container removed * add and remove slots and containers in inventory * update hack * fix exception on item display * show item present in slot * update human prefab * sync clothing display * remove warning about parent transform * allows to remove container in UI of clients * slightly reduce the mesh bug * Add bunch of traits for clothing * add backpack item * modify a bit slots * remove separator and improve methods to select slots * adding id slot and inventory * remove shoes * rename stuff, document HumanInventory * rename, document inventoryview * rename, document containerviewer * doc an name change in clothesDisplayer * small rename * fix build clothes displaying weirdly * add support for bag and face mask * add headset item and support * remove inventory slot * fix hand slots * Revert "remove inventory slot" This reverts commit 07d3b0e. * fix glove left and right * fix slot position in horizontal layout * remove inventoryslot container * only container with display as slot in the UI * clicking on wrong containers no longer drop item * add some doc and tags * PDa is no longer considered clothing * fixing hand containers from push and fixing PDA container * making containerViewer private * change to dynamic list of displayed clothes * partly fix some handling positions * fix pda spawning multiple times * correctly set up viewer only for owner * remove useless PDA and methods * move accessor * remove inventory container on disabled * add spawning with clothes * fixing forgotten change * update assistant loadout * add headset to items, fix loadout * fix sec jumpsuit * fix return too soon * fix jumpsuit * fix pocket jumpsuit * add and remove containers methods * removing and adding slots now works properly When a gameobject container is disabled and was part of the inventory, the container slot linked to it disappear. Similar when adding a container. * onenable add container * fix slot size of items sprite * fixing item missing exceptions * fix grid * put jumpsuit on item layer * clean and doc * first commit * fix some interaction stuff * fix pickup interaction * fix hands * add some fix and properly remove hand * some doc * more doc * add assetdatabase for bodyparts * add hands as items * assetdatabase bodyparts adding follow up * small fix to hands selection * add hand command * condition fix * cleanup and permission check * add doc * fix handcommand * remove useless method in hand command * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * rename delegate and event * Update Assets/Scripts/SS3D/Systems/Inventory/Containers/Hand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/Inventory/Containers/InventoryView.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/Inventory/Containers/Hand.cs Co-authored-by: Iamteapot <[email protected]> * Update Assets/Scripts/SS3D/Systems/IngameConsoleSystem/Commands/AddHandCommand.cs Co-authored-by: Iamteapot <[email protected]> * update variables name * fix missing ref * fix all interactions * add a comment to hand file --------- Co-authored-by: Iamteapot <[email protected]>
- Loading branch information
1 parent
5b605a3
commit 28e5a23
Showing
45 changed files
with
1,695 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3} | ||
m_Name: BodyParts | ||
m_EditorClassIdentifier: | ||
m_GroupName: BodyParts | ||
m_Data: | ||
m_SerializedData: [] | ||
m_GUID: ff965427dd1889046a3e238d5cb96512 | ||
m_SerializeEntries: | ||
- m_GUID: 35dfc7c3f708a5b48a206b4a44e7ab49 | ||
m_Address: Assets/Content/WorldObjects/Entities/Humanoids/Human/HumanBodyParts/HumanHandLeft.prefab | ||
m_ReadOnly: 0 | ||
m_SerializedLabels: [] | ||
- m_GUID: 7f5954f009d06b2439ca637b43920440 | ||
m_Address: Assets/Content/WorldObjects/Entities/Humanoids/Human/HumanBodyParts/HumanHandRight.prefab | ||
m_ReadOnly: 0 | ||
m_SerializedLabels: [] | ||
m_ReadOnly: 0 | ||
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2} | ||
m_SchemaSet: | ||
m_Schemas: | ||
- {fileID: 11400000, guid: 4de7234b6744e474581238ba31893e14, type: 2} | ||
- {fileID: 11400000, guid: 007c51ffa6d371a4aacdc075169132b2, type: 2} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
Assets/Content/Addressables/AssetGroups/Schemas/BodyParts_BundledAssetGroupSchema.asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3} | ||
m_Name: BodyParts_BundledAssetGroupSchema | ||
m_EditorClassIdentifier: | ||
m_Group: {fileID: 11400000, guid: ee54898534212cd4a97b528a9d620c75, type: 2} | ||
m_InternalBundleIdMode: 1 | ||
m_Compression: 1 | ||
m_IncludeAddressInCatalog: 1 | ||
m_IncludeGUIDInCatalog: 1 | ||
m_IncludeLabelsInCatalog: 1 | ||
m_InternalIdNamingMode: 0 | ||
m_CacheClearBehavior: 0 | ||
m_IncludeInBuild: 1 | ||
m_BundledAssetProviderType: | ||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null | ||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider | ||
m_ForceUniqueProvider: 0 | ||
m_UseAssetBundleCache: 1 | ||
m_UseAssetBundleCrc: 1 | ||
m_UseAssetBundleCrcForCachedBundles: 1 | ||
m_UseUWRForLocalBundles: 0 | ||
m_Timeout: 0 | ||
m_ChunkedTransfer: 0 | ||
m_RedirectLimit: -1 | ||
m_RetryCount: 0 | ||
m_BuildPath: | ||
m_Id: 56790a984472fbe4a809c1ab1b0e4c79 | ||
m_LoadPath: | ||
m_Id: 8abc09617b79e8b4994b07cc672cbbe5 | ||
m_BundleMode: 0 | ||
m_AssetBundleProviderType: | ||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null | ||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider | ||
m_BundleNaming: 0 | ||
m_AssetLoadMode: 0 |
8 changes: 8 additions & 0 deletions
8
Assets/Content/Addressables/AssetGroups/Schemas/BodyParts_BundledAssetGroupSchema.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Assets/Content/Addressables/AssetGroups/Schemas/BodyParts_ContentUpdateGroupSchema.asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3} | ||
m_Name: BodyParts_ContentUpdateGroupSchema | ||
m_EditorClassIdentifier: | ||
m_Group: {fileID: 11400000, guid: ee54898534212cd4a97b528a9d620c75, type: 2} | ||
m_StaticContent: 0 |
8 changes: 8 additions & 0 deletions
8
...ts/Content/Addressables/AssetGroups/Schemas/BodyParts_ContentUpdateGroupSchema.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+565 Bytes
(120%)
Assets/Content/Addressables/Windows/addressables_content_state.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 3c9b6c8ad6324c838c1743c2a2e2abc4, type: 3} | ||
m_Name: BodyParts | ||
m_EditorClassIdentifier: | ||
EnumNamespaceName: SS3D.Data.Enums | ||
EnumName: BodyPartsIds | ||
AssetGroup: {fileID: 11400000, guid: ee54898534212cd4a97b528a9d620c75, type: 2} | ||
Assets: | ||
- {fileID: 5774385816057912484, guid: 35dfc7c3f708a5b48a206b4a44e7ab49, type: 3} | ||
- {fileID: 5774385816057912484, guid: 7f5954f009d06b2439ca637b43920440, type: 3} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.