-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Restore details of byproducts/container contents to the crafting gui #56632
Merged
dseguin
merged 4 commits into
CleverRaven:master
from
ZeroInternalReflection:Crafting_GUI_Restore_51496
Apr 19, 2022
Merged
Restore details of byproducts/container contents to the crafting gui #56632
dseguin
merged 4 commits into
CleverRaven:master
from
ZeroInternalReflection:Crafting_GUI_Restore_51496
Apr 19, 2022
Conversation
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 information was originally added to the crafting gui in PR#51496. However, a subsequent unrelated change removed the lines that actually displayed it.
github-actions
bot
added
[C++]
Changes (can be) made in C++. Previously named `Code`
Info / User Interface
Game - player communication, menus, etc.
astyled
astyled PR, label is assigned by github actions
json-styled
JSON lint passed, label assigned by github actions
labels
Apr 6, 2022
Thanks for fixing this! I think the lines were reverted during a rebase or something. Totally my mistake :P |
Double "Result" line just doesn't look that good |
github-actions
bot
added
the
BasicBuildPassed
This PR builds correctly, label assigned by github actions
label
Apr 6, 2022
Recipes with multiple byproducts (e.g. heavy cream) only had one "Byproduct" header. Adding a header for each iteminfo section allows the user to more easily find the details they're looking for. Several strings that needed to be translated were not being flagged with _(), and several strings that did not need to be translated (e.g. _("<bold>") were being flagged for translation.
With the new formatting, this function, which was a wrapper for readability around adding to an std::vector<iteminfo>, was no longer used or useful.
github-actions
bot
removed
the
BasicBuildPassed
This PR builds correctly, label assigned by github actions
label
Apr 8, 2022
github-actions
bot
added
the
BasicBuildPassed
This PR builds correctly, label assigned by github actions
label
Apr 13, 2022
dseguin
approved these changes
Apr 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
astyled
astyled PR, label is assigned by github actions
BasicBuildPassed
This PR builds correctly, label assigned by github actions
<Bugfix>
This is a fix for a bug (or closes open issue)
[C++]
Changes (can be) made in C++. Previously named `Code`
Info / User Interface
Game - player communication, menus, etc.
json-styled
JSON lint passed, label assigned by github actions
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Interface "Restore details of byproducts and container contents to the crafting UI"
Purpose of change
Pull request #51496 added display of information on byproducts and details of items in containers to the results pane of the crafting GUI. However, a subsequent PR working on a different part of the crafting UI (#52685) overwrote the line that actually displayed this information. Since most of the required code is still present and issue #56279 suggests that this is still an area of confusion for players, it makes sense to restore this functionality.
Describe the solution
See #51496 for full discussion of implementation.
Describe alternatives you've considered
See #51496 for discussion of alternatives.
Testing
Tested display of the results pane in a variety of window sizes on a computer monitor.
Did not test with any other physical screen size.
Did not test in any language other than English.
Also tested jumping to an item's recipe to ensure that the relevant code removed was not key to #52685.
Additional context
Appearance of items with no container/byproducts:
Appearance of items with byproducts in addition to the primary result:
Appearance of items with results in containers:
Appearance of items with byproducts and primary results in containers:
Appearance of batch crafting: