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

Consume menu fix #40108

Merged
merged 3 commits into from
May 4, 2020
Merged

Consume menu fix #40108

merged 3 commits into from
May 4, 2020

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented May 3, 2020

Summary

SUMMARY: Bugfixes "Adjust consume menu code to have same behavior as previous"

Purpose of change

The consume menu was cluttered with things you couldn't eat. Additionally, when clearing those out the indentation could confuse users, sothat was disabled for the consume menu.

Describe the solution

First, refactored comestible_inventory_preset slightly to no longer have the special logic to get items in a container, as those items are already populated correctly.
Then, add a new protected member to inventory_selector_preset called _indent that allows one to set constructors of any child class of inventory_selector to disable the indentation.

Note: This also fixes a bug that disallowed you to drink liquids in the consume menu.

Testing

BEFORE:
image
AFTER:
image

@KorGgenT KorGgenT added Info / User Interface Game - player communication, menus, etc. <Bugfix> This is a fix for a bug (or closes open issue) labels May 3, 2020
@ZhilkinSerg ZhilkinSerg merged commit 54afa14 into CleverRaven:master May 4, 2020
@KorGgenT KorGgenT deleted the consume-menu-fix 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
<Bugfix> This is a fix for a bug (or closes open issue) Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants