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

item inventory ui stacks items #40114

Merged

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented May 4, 2020

Summary

SUMMARY: Interface "Nested items that are not count_by_charges stack in menus"

Purpose of change

Stacking items really reduces the screen space required for something like this:
image

Fixes #40122
Closes #40136
(the title of that issue isn't really a bug, it fixes the one bug they listed)

Describe the solution

when adding an item to an inventory_column, if the item is a contained item and it shares a parent with another item in the inventory column, the entry in that column is added to instead of adding a new entry.

Testing

image
Additionally, made sure the multidrop menu works properly.

@KorGgenT KorGgenT added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` labels May 4, 2020
@KorGgenT
Copy link
Member Author

KorGgenT commented May 4, 2020

image

@JerryLin1
Copy link
Contributor

This closes #40136 as well

@KorGgenT
Copy link
Member Author

KorGgenT commented May 4, 2020

i'm having a hard time seeing what test is actually failing with all the !mayfail. so i'm going to try to fix those tests in different PRs and see if that helps?

@kevingranade kevingranade merged commit ab5a5bc into CleverRaven:master May 5, 2020
@KorGgenT KorGgenT deleted the inventory-ui-selector-stacking branch August 13, 2020 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
3 participants