Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty slots in inventory #15

Closed
AlexBnew opened this issue Jan 27, 2023 · 3 comments
Closed

Allow empty slots in inventory #15

AlexBnew opened this issue Jan 27, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@AlexBnew
Copy link

Hello, the problem is described in the picture.
Is it possible to implement the option to resize the Inventory Component Array with empty slots? I don't know if this is a plugin problem or a similar task can be solved already, but I don't understand the functionality of the plugin and how it works to do it

coment

@AlexBnew
Copy link
Author

The main reason why it is not possible to make empty slots for recording is that an empty slot has Quantity=1, and if Quantity=0, then Unreal Crush

@lucoiso lucoiso self-assigned this Jan 28, 2023
@lucoiso lucoiso added the enhancement New feature or request label Jan 28, 2023
@lucoiso lucoiso changed the title Some Problem with creating other style of Inventory Allow empty slots in inventory Jan 28, 2023
lucoiso added a commit that referenced this issue Jan 28, 2023
@lucoiso
Copy link
Owner

lucoiso commented Jan 28, 2023

Hello @AlexBnew ! Thanks for the info! : )

I've started working in this feature and already sent a commit with a new property in the InventoryComponent: bAllowEmptySlots

This option will allow the component to replace items with quantity <= 0 with an empty item info:

const FElementusItemInfo FElementusItemInfo::EmptyItemInfo(FPrimaryElementusItemId(), -1);

@AlexBnew
Copy link
Author

Hello, yes, I have already found a way to make the necessary inventory without changes in the plugin. Therefore, I just want to add that it would be nice to make more detailed documentation - how the functions work, how the components in the plugin work and why they are needed
Thank you for your work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants