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

add categorize toggle to inventory #40143

Merged

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented May 4, 2020

Summary

SUMMARY: Features "Adds toggle key in inventory to show categorized items"

Purpose of change

i've been hearing a lot from people about how they want the categorized view instead of everything being shown under what item it's contained in, so i added a toggle button in the main inventory screen.

Describe the solution

Adjusts the inventory columns when hitting the toggle so the own_inv-column is used, and adds it via add_entry so categories are applied. pressing the toggle again will put it back to how it was.

Testing

Have a decently sized inventory and press the toggle button.

Additional context

screenshots to follow when this comes out of draft.

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

KorGgenT commented May 4, 2020

inv

@KorGgenT KorGgenT marked this pull request as ready for review May 4, 2020 17:20
@CodeBandit
Copy link
Contributor

I hope this gets merged asap, UI clarity is a big deal

@kevingranade
Copy link
Member

One nit, the "old" way of displaying this should be the default, the new way of drawing the inventory is useful for shuffling items around, but the goal is for that to be rarely necessary.

@KorGgenT
Copy link
Member Author

KorGgenT commented May 5, 2020

ah. i'll have to do some shuffling of the initialization of the menu then.

@KorGgenT KorGgenT force-pushed the add-categorize-toggle-to-inventory branch from b925e5e to 3596c02 Compare May 5, 2020 16:30
@KorGgenT
Copy link
Member Author

KorGgenT commented May 5, 2020

image
just did a rebase, works great with the stack thing.

@kevingranade kevingranade merged commit 3fc82b4 into CleverRaven:master May 6, 2020
@KorGgenT KorGgenT deleted the add-categorize-toggle-to-inventory 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. Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants